xref: /linux/drivers/net/wireless/ath/ath6kl/cfg80211.h (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1bdcd8170SKalle Valo /*
2bdcd8170SKalle Valo  * Copyright (c) 2011 Atheros Communications Inc.
31b2df407SVasanthakumar Thiagarajan  * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
4bdcd8170SKalle Valo  *
5bdcd8170SKalle Valo  * Permission to use, copy, modify, and/or distribute this software for any
6bdcd8170SKalle Valo  * purpose with or without fee is hereby granted, provided that the above
7bdcd8170SKalle Valo  * copyright notice and this permission notice appear in all copies.
8bdcd8170SKalle Valo  *
9bdcd8170SKalle Valo  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10bdcd8170SKalle Valo  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11bdcd8170SKalle Valo  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12bdcd8170SKalle Valo  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13bdcd8170SKalle Valo  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14bdcd8170SKalle Valo  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15bdcd8170SKalle Valo  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16bdcd8170SKalle Valo  */
17bdcd8170SKalle Valo 
18bdcd8170SKalle Valo #ifndef ATH6KL_CFG80211_H
19bdcd8170SKalle Valo #define ATH6KL_CFG80211_H
20bdcd8170SKalle Valo 
2152d81a68SKalle Valo enum ath6kl_cfg_suspend_mode {
2252d81a68SKalle Valo 	ATH6KL_CFG_SUSPEND_DEEPSLEEP,
23b4b2a0b1SKalle Valo 	ATH6KL_CFG_SUSPEND_CUTPOWER,
2410509f90SKalle Valo 	ATH6KL_CFG_SUSPEND_WOW,
2552d81a68SKalle Valo };
2652d81a68SKalle Valo 
27552bff0cSJohannes Berg struct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name,
28*6bab2e19STom Gundersen 					  unsigned char name_assign_type,
29334234b5SVasanthakumar Thiagarajan 					  enum nl80211_iftype type,
3055055976SVasanthakumar Thiagarajan 					  u8 fw_vif_idx, u8 nw_type);
31c4f7863eSThomas Pedersen void ath6kl_cfg80211_ch_switch_notify(struct ath6kl_vif *vif, int freq,
32c4f7863eSThomas Pedersen 				      enum wmi_phy_mode mode);
331c17d313SKalle Valo void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted);
34bdcd8170SKalle Valo 
35240d2799SVasanthakumar Thiagarajan void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel,
36bdcd8170SKalle Valo 				   u8 *bssid, u16 listen_intvl,
37bdcd8170SKalle Valo 				   u16 beacon_intvl,
38bdcd8170SKalle Valo 				   enum network_type nw_type,
39bdcd8170SKalle Valo 				   u8 beacon_ie_len, u8 assoc_req_len,
40bdcd8170SKalle Valo 				   u8 assoc_resp_len, u8 *assoc_info);
41bdcd8170SKalle Valo 
42240d2799SVasanthakumar Thiagarajan void ath6kl_cfg80211_disconnect_event(struct ath6kl_vif *vif, u8 reason,
43bdcd8170SKalle Valo 				      u8 *bssid, u8 assoc_resp_len,
44bdcd8170SKalle Valo 				      u8 *assoc_info, u16 proto_reason);
45bdcd8170SKalle Valo 
46240d2799SVasanthakumar Thiagarajan void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid,
47bdcd8170SKalle Valo 				     bool ismcast);
48bdcd8170SKalle Valo 
4952d81a68SKalle Valo int ath6kl_cfg80211_suspend(struct ath6kl *ar,
500f60e9f4SRaja Mani 			    enum ath6kl_cfg_suspend_mode mode,
510f60e9f4SRaja Mani 			    struct cfg80211_wowlan *wow);
520f60e9f4SRaja Mani 
5352d81a68SKalle Valo int ath6kl_cfg80211_resume(struct ath6kl *ar);
5452d81a68SKalle Valo 
55c25889e8SKalle Valo void ath6kl_cfg80211_vif_cleanup(struct ath6kl_vif *vif);
56c25889e8SKalle Valo 
577125f01dSKalle Valo void ath6kl_cfg80211_stop(struct ath6kl_vif *vif);
587125f01dSKalle Valo void ath6kl_cfg80211_stop_all(struct ath6kl *ar);
59ec4b7f60SKalle Valo 
6046d33a21SKalle Valo int ath6kl_cfg80211_init(struct ath6kl *ar);
6146d33a21SKalle Valo void ath6kl_cfg80211_cleanup(struct ath6kl *ar);
6246d33a21SKalle Valo 
6345eaa78fSKalle Valo struct ath6kl *ath6kl_cfg80211_create(void);
6445eaa78fSKalle Valo void ath6kl_cfg80211_destroy(struct ath6kl *ar);
6545eaa78fSKalle Valo 
66bdcd8170SKalle Valo #endif /* ATH6KL_CFG80211_H */
67