Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2011 Atheros Communications Inc.
0003  * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
0004  *
0005  * Permission to use, copy, modify, and/or distribute this software for any
0006  * purpose with or without fee is hereby granted, provided that the above
0007  * copyright notice and this permission notice appear in all copies.
0008  *
0009  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0010  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0011  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0012  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0013  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0014  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0015  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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 /* ATH6KL_CFG80211_H */