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