blob: 226a734b049affb1b24a66a1e0cf53ce3b10ae10 [file] [log] [blame]
Kalle Valobdcd8172011-07-18 00:22:30 +03001/*
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
Kalle Valo52d81a62011-11-01 08:44:21 +020020enum ath6kl_cfg_suspend_mode {
21 ATH6KL_CFG_SUSPEND_DEEPSLEEP,
Kalle Valob4b2a0b2011-11-01 08:44:44 +020022 ATH6KL_CFG_SUSPEND_CUTPOWER,
Raja Manidd6c0c62011-11-07 22:52:45 +020023 ATH6KL_CFG_SUSPEND_WOW
Kalle Valo52d81a62011-11-01 08:44:21 +020024};
25
Vasanthakumar Thiagarajan8dafb702011-10-25 19:33:58 +053026struct net_device *ath6kl_interface_add(struct ath6kl *ar, char *name,
Vasanthakumar Thiagarajan334234b2011-10-25 19:34:12 +053027 enum nl80211_iftype type,
Vasanthakumar Thiagarajan55055972011-10-25 19:34:23 +053028 u8 fw_vif_idx, u8 nw_type);
Vasanthakumar Thiagarajan8dafb702011-10-25 19:33:58 +053029int ath6kl_register_ieee80211_hw(struct ath6kl *ar);
30struct ath6kl *ath6kl_core_alloc(struct device *dev);
31void ath6kl_deinit_ieee80211_hw(struct ath6kl *ar);
Kalle Valobdcd8172011-07-18 00:22:30 +030032
Kalle Valo1c17d312011-11-01 08:43:56 +020033void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted);
Kalle Valobdcd8172011-07-18 00:22:30 +030034
Vasanthakumar Thiagarajan240d2792011-10-25 19:34:13 +053035void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel,
Kalle Valobdcd8172011-07-18 00:22:30 +030036 u8 *bssid, u16 listen_intvl,
37 u16 beacon_intvl,
38 enum network_type nw_type,
39 u8 beacon_ie_len, u8 assoc_req_len,
40 u8 assoc_resp_len, u8 *assoc_info);
41
Vasanthakumar Thiagarajan240d2792011-10-25 19:34:13 +053042void ath6kl_cfg80211_disconnect_event(struct ath6kl_vif *vif, u8 reason,
Kalle Valobdcd8172011-07-18 00:22:30 +030043 u8 *bssid, u8 assoc_resp_len,
44 u8 *assoc_info, u16 proto_reason);
45
Vasanthakumar Thiagarajan240d2792011-10-25 19:34:13 +053046void ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid,
Kalle Valobdcd8172011-07-18 00:22:30 +030047 bool ismcast);
48
Kalle Valo52d81a62011-11-01 08:44:21 +020049int ath6kl_cfg80211_suspend(struct ath6kl *ar,
Raja Mani0f60e9f2011-11-07 22:52:45 +020050 enum ath6kl_cfg_suspend_mode mode,
51 struct cfg80211_wowlan *wow);
52
Kalle Valo52d81a62011-11-01 08:44:21 +020053int ath6kl_cfg80211_resume(struct ath6kl *ar);
54
Kalle Valo7125f012011-12-13 14:51:37 +020055void ath6kl_cfg80211_stop(struct ath6kl_vif *vif);
56void ath6kl_cfg80211_stop_all(struct ath6kl *ar);
Kalle Valoec4b7f62011-11-01 08:44:04 +020057
Kalle Valobdcd8172011-07-18 00:22:30 +030058#endif /* ATH6KL_CFG80211_H */