1bdcd8170SKalle Valo /* 2bdcd8170SKalle Valo * Copyright (c) 2011 Atheros Communications Inc. 3bdcd8170SKalle Valo * 4bdcd8170SKalle Valo * Permission to use, copy, modify, and/or distribute this software for any 5bdcd8170SKalle Valo * purpose with or without fee is hereby granted, provided that the above 6bdcd8170SKalle Valo * copyright notice and this permission notice appear in all copies. 7bdcd8170SKalle Valo * 8bdcd8170SKalle Valo * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9bdcd8170SKalle Valo * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10bdcd8170SKalle Valo * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11bdcd8170SKalle Valo * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12bdcd8170SKalle Valo * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13bdcd8170SKalle Valo * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14bdcd8170SKalle Valo * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15bdcd8170SKalle Valo */ 16bdcd8170SKalle Valo 17bdcd8170SKalle Valo #ifndef ATH6KL_CFG80211_H 18bdcd8170SKalle Valo #define ATH6KL_CFG80211_H 19bdcd8170SKalle Valo 2052d81a68SKalle Valo enum ath6kl_cfg_suspend_mode { 2152d81a68SKalle Valo ATH6KL_CFG_SUSPEND_DEEPSLEEP, 22b4b2a0b1SKalle Valo ATH6KL_CFG_SUSPEND_CUTPOWER, 2352d81a68SKalle Valo }; 2452d81a68SKalle Valo 258dafb70eSVasanthakumar Thiagarajan struct net_device *ath6kl_interface_add(struct ath6kl *ar, char *name, 26334234b5SVasanthakumar Thiagarajan enum nl80211_iftype type, 2755055976SVasanthakumar Thiagarajan u8 fw_vif_idx, u8 nw_type); 288dafb70eSVasanthakumar Thiagarajan int ath6kl_register_ieee80211_hw(struct ath6kl *ar); 298dafb70eSVasanthakumar Thiagarajan struct ath6kl *ath6kl_core_alloc(struct device *dev); 308dafb70eSVasanthakumar Thiagarajan void ath6kl_deinit_ieee80211_hw(struct ath6kl *ar); 31bdcd8170SKalle Valo 321c17d313SKalle Valo void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted); 33bdcd8170SKalle Valo 34240d2799SVasanthakumar Thiagarajan void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel, 35bdcd8170SKalle Valo u8 *bssid, u16 listen_intvl, 36bdcd8170SKalle Valo u16 beacon_intvl, 37bdcd8170SKalle Valo enum network_type nw_type, 38bdcd8170SKalle Valo u8 beacon_ie_len, u8 assoc_req_len, 39bdcd8170SKalle Valo u8 assoc_resp_len, u8 *assoc_info); 40bdcd8170SKalle Valo 41240d2799SVasanthakumar Thiagarajan void ath6kl_cfg80211_disconnect_event(struct ath6kl_vif *vif, u8 reason, 42bdcd8170SKalle Valo u8 *bssid, u8 assoc_resp_len, 43bdcd8170SKalle Valo u8 *assoc_info, u16 proto_reason); 44bdcd8170SKalle Valo 45240d2799SVasanthakumar Thiagarajan void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, 46bdcd8170SKalle Valo bool ismcast); 47bdcd8170SKalle Valo 4852d81a68SKalle Valo int ath6kl_cfg80211_suspend(struct ath6kl *ar, 490f60e9f4SRaja Mani enum ath6kl_cfg_suspend_mode mode, 500f60e9f4SRaja Mani struct cfg80211_wowlan *wow); 510f60e9f4SRaja Mani 5252d81a68SKalle Valo int ath6kl_cfg80211_resume(struct ath6kl *ar); 5352d81a68SKalle Valo 54ec4b7f60SKalle Valo void ath6kl_cfg80211_stop(struct ath6kl *ar); 55ec4b7f60SKalle Valo 56bdcd8170SKalle Valo #endif /* ATH6KL_CFG80211_H */ 57