18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (c) 2011 Atheros Communications Inc. 38c2ecf20Sopenharmony_ci * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any 68c2ecf20Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above 78c2ecf20Sopenharmony_ci * copyright notice and this permission notice appear in all copies. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 108c2ecf20Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 118c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 128c2ecf20Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 138c2ecf20Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 148c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 158c2ecf20Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#ifndef ATH6KL_CFG80211_H 198c2ecf20Sopenharmony_ci#define ATH6KL_CFG80211_H 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cienum ath6kl_cfg_suspend_mode { 228c2ecf20Sopenharmony_ci ATH6KL_CFG_SUSPEND_DEEPSLEEP, 238c2ecf20Sopenharmony_ci ATH6KL_CFG_SUSPEND_CUTPOWER, 248c2ecf20Sopenharmony_ci ATH6KL_CFG_SUSPEND_WOW, 258c2ecf20Sopenharmony_ci}; 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cistruct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name, 288c2ecf20Sopenharmony_ci unsigned char name_assign_type, 298c2ecf20Sopenharmony_ci enum nl80211_iftype type, 308c2ecf20Sopenharmony_ci u8 fw_vif_idx, u8 nw_type); 318c2ecf20Sopenharmony_civoid ath6kl_cfg80211_ch_switch_notify(struct ath6kl_vif *vif, int freq, 328c2ecf20Sopenharmony_ci enum wmi_phy_mode mode); 338c2ecf20Sopenharmony_civoid ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted); 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_civoid ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel, 368c2ecf20Sopenharmony_ci u8 *bssid, u16 listen_intvl, 378c2ecf20Sopenharmony_ci u16 beacon_intvl, 388c2ecf20Sopenharmony_ci enum network_type nw_type, 398c2ecf20Sopenharmony_ci u8 beacon_ie_len, u8 assoc_req_len, 408c2ecf20Sopenharmony_ci u8 assoc_resp_len, u8 *assoc_info); 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_civoid ath6kl_cfg80211_disconnect_event(struct ath6kl_vif *vif, u8 reason, 438c2ecf20Sopenharmony_ci u8 *bssid, u8 assoc_resp_len, 448c2ecf20Sopenharmony_ci u8 *assoc_info, u16 proto_reason); 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_civoid ath6kl_cfg80211_tkip_micerr_event(struct ath6kl_vif *vif, u8 keyid, 478c2ecf20Sopenharmony_ci bool ismcast); 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciint ath6kl_cfg80211_suspend(struct ath6kl *ar, 508c2ecf20Sopenharmony_ci enum ath6kl_cfg_suspend_mode mode, 518c2ecf20Sopenharmony_ci struct cfg80211_wowlan *wow); 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciint ath6kl_cfg80211_resume(struct ath6kl *ar); 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_civoid ath6kl_cfg80211_vif_cleanup(struct ath6kl_vif *vif); 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_civoid ath6kl_cfg80211_stop(struct ath6kl_vif *vif); 588c2ecf20Sopenharmony_civoid ath6kl_cfg80211_stop_all(struct ath6kl *ar); 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ciint ath6kl_cfg80211_init(struct ath6kl *ar); 618c2ecf20Sopenharmony_civoid ath6kl_cfg80211_cleanup(struct ath6kl *ar); 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_cistruct ath6kl *ath6kl_cfg80211_create(void); 648c2ecf20Sopenharmony_civoid ath6kl_cfg80211_destroy(struct ath6kl *ar); 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci#endif /* ATH6KL_CFG80211_H */ 67