cfg80211.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (c) 2011 Atheros Communications Inc.
  3. * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef ATH6KL_CFG80211_H
  18. #define ATH6KL_CFG80211_H
  19. enum ath6kl_cfg_suspend_mode {
  20. ATH6KL_CFG_SUSPEND_DEEPSLEEP,
  21. ATH6KL_CFG_SUSPEND_CUTPOWER,
  22. ATH6KL_CFG_SUSPEND_WOW,
  23. };
  24. struct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name,
  25. enum nl80211_iftype type,
  26. u8 fw_vif_idx, u8 nw_type);
  27. void ath6kl_cfg80211_ch_switch_notify(struct ath6kl_vif *vif, int freq,
  28. enum wmi_phy_mode mode);
  29. void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted);
  30. void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel,
  31. u8 *bssid, u16 listen_intvl,
  32. u16 beacon_intvl,
  33. enum network_type nw_type,
  34. u8 beacon_ie_len, u8 assoc_req_len,
  35. u8 assoc_resp_len, u8 *assoc_info);
  36. void ath6kl_cfg80211_disconnect_event(struct ath6kl_vif *vif, u8 reason,
  37. u8 *bssid, u8 assoc_resp_len,
  38. u8 *assoc_info, u16 proto_reason);
  39. void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid,
  40. bool ismcast);
  41. int ath6kl_cfg80211_suspend(struct ath6kl *ar,
  42. enum ath6kl_cfg_suspend_mode mode,
  43. struct cfg80211_wowlan *wow);
  44. int ath6kl_cfg80211_resume(struct ath6kl *ar);
  45. void ath6kl_cfg80211_vif_cleanup(struct ath6kl_vif *vif);
  46. void ath6kl_cfg80211_stop(struct ath6kl_vif *vif);
  47. void ath6kl_cfg80211_stop_all(struct ath6kl *ar);
  48. int ath6kl_cfg80211_init(struct ath6kl *ar);
  49. void ath6kl_cfg80211_cleanup(struct ath6kl *ar);
  50. struct ath6kl *ath6kl_cfg80211_create(void);
  51. void ath6kl_cfg80211_destroy(struct ath6kl *ar);
  52. #endif /* ATH6KL_CFG80211_H */