0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef ATH6KL_CFG80211_H
0019 #define ATH6KL_CFG80211_H
0020
0021 enum ath6kl_cfg_suspend_mode {
0022 ATH6KL_CFG_SUSPEND_DEEPSLEEP,
0023 ATH6KL_CFG_SUSPEND_CUTPOWER,
0024 ATH6KL_CFG_SUSPEND_WOW,
0025 };
0026
0027 struct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name,
0028 unsigned char name_assign_type,
0029 enum nl80211_iftype type,
0030 u8 fw_vif_idx, u8 nw_type);
0031 void ath6kl_cfg80211_ch_switch_notify(struct ath6kl_vif *vif, int freq,
0032 enum wmi_phy_mode mode);
0033 void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted);
0034
0035 void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel,
0036 u8 *bssid, u16 listen_intvl,
0037 u16 beacon_intvl,
0038 enum network_type nw_type,
0039 u8 beacon_ie_len, u8 assoc_req_len,
0040 u8 assoc_resp_len, u8 *assoc_info);
0041
0042 void ath6kl_cfg80211_disconnect_event(struct ath6kl_vif *vif, u8 reason,
0043 u8 *bssid, u8 assoc_resp_len,
0044 u8 *assoc_info, u16 proto_reason);
0045
0046 void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid,
0047 bool ismcast);
0048
0049 int ath6kl_cfg80211_suspend(struct ath6kl *ar,
0050 enum ath6kl_cfg_suspend_mode mode,
0051 struct cfg80211_wowlan *wow);
0052
0053 int ath6kl_cfg80211_resume(struct ath6kl *ar);
0054
0055 void ath6kl_cfg80211_vif_cleanup(struct ath6kl_vif *vif);
0056
0057 void ath6kl_cfg80211_stop(struct ath6kl_vif *vif);
0058 void ath6kl_cfg80211_stop_all(struct ath6kl *ar);
0059
0060 int ath6kl_cfg80211_init(struct ath6kl *ar);
0061 void ath6kl_cfg80211_cleanup(struct ath6kl *ar);
0062
0063 struct ath6kl *ath6kl_cfg80211_create(void);
0064 void ath6kl_cfg80211_destroy(struct ath6kl *ar);
0065
0066 #endif