core.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /*
  2. * Copyright (c) 2010-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. #ifndef CORE_H
  17. #define CORE_H
  18. #include <linux/etherdevice.h>
  19. #include <linux/rtnetlink.h>
  20. #include <linux/firmware.h>
  21. #include <linux/sched.h>
  22. #include <net/cfg80211.h>
  23. #include "htc.h"
  24. #include "wmi.h"
  25. #include "bmi.h"
  26. #define MAX_ATH6KL 1
  27. #define ATH6KL_MAX_RX_BUFFERS 16
  28. #define ATH6KL_BUFFER_SIZE 1664
  29. #define ATH6KL_MAX_AMSDU_RX_BUFFERS 4
  30. #define ATH6KL_AMSDU_REFILL_THRESHOLD 3
  31. #define ATH6KL_AMSDU_BUFFER_SIZE (WMI_MAX_AMSDU_RX_DATA_FRAME_LENGTH + 128)
  32. #define MAX_MSDU_SUBFRAME_PAYLOAD_LEN 1508
  33. #define MIN_MSDU_SUBFRAME_PAYLOAD_LEN 46
  34. #define USER_SAVEDKEYS_STAT_INIT 0
  35. #define USER_SAVEDKEYS_STAT_RUN 1
  36. #define ATH6KL_TX_TIMEOUT 10
  37. #define ATH6KL_MAX_ENDPOINTS 4
  38. #define MAX_NODE_NUM 15
  39. /* Extra bytes for htc header alignment */
  40. #define ATH6KL_HTC_ALIGN_BYTES 3
  41. /* MAX_HI_COOKIE_NUM are reserved for high priority traffic */
  42. #define MAX_DEF_COOKIE_NUM 180
  43. #define MAX_HI_COOKIE_NUM 18 /* 10% of MAX_COOKIE_NUM */
  44. #define MAX_COOKIE_NUM (MAX_DEF_COOKIE_NUM + MAX_HI_COOKIE_NUM)
  45. #define MAX_DEFAULT_SEND_QUEUE_DEPTH (MAX_DEF_COOKIE_NUM / WMM_NUM_AC)
  46. #define DISCON_TIMER_INTVAL 10000 /* in msec */
  47. #define A_DEFAULT_LISTEN_INTERVAL 100
  48. #define A_MAX_WOW_LISTEN_INTERVAL 1000
  49. /* AR6003 1.0 definitions */
  50. #define AR6003_REV1_VERSION 0x300002ba
  51. /* AR6003 2.0 definitions */
  52. #define AR6003_REV2_VERSION 0x30000384
  53. #define AR6003_REV2_PATCH_DOWNLOAD_ADDRESS 0x57e910
  54. #define AR6003_REV2_OTP_FILE "ath6k/AR6003/hw2.0/otp.bin.z77"
  55. #define AR6003_REV2_FIRMWARE_FILE "ath6k/AR6003/hw2.0/athwlan.bin.z77"
  56. #define AR6003_REV2_TCMD_FIRMWARE_FILE "ath6k/AR6003/hw2.0/athtcmd_ram.bin"
  57. #define AR6003_REV2_PATCH_FILE "ath6k/AR6003/hw2.0/data.patch.bin"
  58. #define AR6003_REV2_BOARD_DATA_FILE "ath6k/AR6003/hw2.0/bdata.bin"
  59. #define AR6003_REV2_DEFAULT_BOARD_DATA_FILE "ath6k/AR6003/hw2.0/bdata.SD31.bin"
  60. /* AR6003 3.0 definitions */
  61. #define AR6003_REV3_VERSION 0x30000582
  62. #define AR6003_REV3_OTP_FILE "ath6k/AR6003/hw2.1.1/otp.bin"
  63. #define AR6003_REV3_FIRMWARE_FILE "ath6k/AR6003/hw2.1.1/athwlan.bin"
  64. #define AR6003_REV3_TCMD_FIRMWARE_FILE "ath6k/AR6003/hw2.1.1/athtcmd_ram.bin"
  65. #define AR6003_REV3_PATCH_FILE "ath6k/AR6003/hw2.1.1/data.patch.bin"
  66. #define AR6003_REV3_BOARD_DATA_FILE "ath6k/AR6003/hw2.1.1/bdata.bin"
  67. #define AR6003_REV3_DEFAULT_BOARD_DATA_FILE \
  68. "ath6k/AR6003/hw2.1.1/bdata.SD31.bin"
  69. /* AR6004 1.0 definitions */
  70. #define AR6004_REV1_VERSION 0x30000623
  71. #define AR6004_REV1_FIRMWARE_FILE "ath6k/AR6004/hw6.1/fw.ram.bin"
  72. #define AR6004_REV1_BOARD_DATA_FILE "ath6k/AR6004/hw6.1/bdata.bin"
  73. #define AR6004_REV1_DEFAULT_BOARD_DATA_FILE "ath6k/AR6004/hw6.1/bdata.DB132.bin"
  74. #define AR6004_REV1_EPPING_FIRMWARE_FILE "ath6k/AR6004/hw6.1/endpointping.bin"
  75. /* Per STA data, used in AP mode */
  76. #define STA_PS_AWAKE BIT(0)
  77. #define STA_PS_SLEEP BIT(1)
  78. #define STA_PS_POLLED BIT(2)
  79. /* HTC TX packet tagging definitions */
  80. #define ATH6KL_CONTROL_PKT_TAG HTC_TX_PACKET_TAG_USER_DEFINED
  81. #define ATH6KL_DATA_PKT_TAG (ATH6KL_CONTROL_PKT_TAG + 1)
  82. #define AR6003_CUST_DATA_SIZE 16
  83. #define AGGR_WIN_IDX(x, y) ((x) % (y))
  84. #define AGGR_INCR_IDX(x, y) AGGR_WIN_IDX(((x) + 1), (y))
  85. #define AGGR_DCRM_IDX(x, y) AGGR_WIN_IDX(((x) - 1), (y))
  86. #define ATH6KL_MAX_SEQ_NO 0xFFF
  87. #define ATH6KL_NEXT_SEQ_NO(x) (((x) + 1) & ATH6KL_MAX_SEQ_NO)
  88. #define NUM_OF_TIDS 8
  89. #define AGGR_SZ_DEFAULT 8
  90. #define AGGR_WIN_SZ_MIN 2
  91. #define AGGR_WIN_SZ_MAX 8
  92. #define TID_WINDOW_SZ(_x) ((_x) << 1)
  93. #define AGGR_NUM_OF_FREE_NETBUFS 16
  94. #define AGGR_RX_TIMEOUT 400 /* in ms */
  95. #define WMI_TIMEOUT (2 * HZ)
  96. #define MBOX_YIELD_LIMIT 99
  97. /* configuration lags */
  98. /*
  99. * ATH6KL_CONF_IGNORE_ERP_BARKER: Ignore the barker premable in
  100. * ERP IE of beacon to determine the short premable support when
  101. * sending (Re)Assoc req.
  102. * ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN: Don't send the power
  103. * module state transition failure events which happen during
  104. * scan, to the host.
  105. */
  106. #define ATH6KL_CONF_IGNORE_ERP_BARKER BIT(0)
  107. #define ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN BIT(1)
  108. #define ATH6KL_CONF_ENABLE_11N BIT(2)
  109. #define ATH6KL_CONF_ENABLE_TX_BURST BIT(3)
  110. enum wlan_low_pwr_state {
  111. WLAN_POWER_STATE_ON,
  112. WLAN_POWER_STATE_CUT_PWR,
  113. WLAN_POWER_STATE_DEEP_SLEEP,
  114. WLAN_POWER_STATE_WOW
  115. };
  116. enum sme_state {
  117. SME_DISCONNECTED,
  118. SME_CONNECTING,
  119. SME_CONNECTED
  120. };
  121. struct skb_hold_q {
  122. struct sk_buff *skb;
  123. bool is_amsdu;
  124. u16 seq_no;
  125. };
  126. struct rxtid {
  127. bool aggr;
  128. bool progress;
  129. bool timer_mon;
  130. u16 win_sz;
  131. u16 seq_next;
  132. u32 hold_q_sz;
  133. struct skb_hold_q *hold_q;
  134. struct sk_buff_head q;
  135. spinlock_t lock;
  136. };
  137. struct rxtid_stats {
  138. u32 num_into_aggr;
  139. u32 num_dups;
  140. u32 num_oow;
  141. u32 num_mpdu;
  142. u32 num_amsdu;
  143. u32 num_delivered;
  144. u32 num_timeouts;
  145. u32 num_hole;
  146. u32 num_bar;
  147. };
  148. struct aggr_info {
  149. u8 aggr_sz;
  150. u8 timer_scheduled;
  151. struct timer_list timer;
  152. struct net_device *dev;
  153. struct rxtid rx_tid[NUM_OF_TIDS];
  154. struct sk_buff_head free_q;
  155. struct rxtid_stats stat[NUM_OF_TIDS];
  156. };
  157. struct ath6kl_wep_key {
  158. u8 key_index;
  159. u8 key_len;
  160. u8 key[64];
  161. };
  162. #define ATH6KL_KEY_SEQ_LEN 8
  163. struct ath6kl_key {
  164. u8 key[WLAN_MAX_KEY_LEN];
  165. u8 key_len;
  166. u8 seq[ATH6KL_KEY_SEQ_LEN];
  167. u8 seq_len;
  168. u32 cipher;
  169. };
  170. struct ath6kl_node_mapping {
  171. u8 mac_addr[ETH_ALEN];
  172. u8 ep_id;
  173. u8 tx_pend;
  174. };
  175. struct ath6kl_cookie {
  176. struct sk_buff *skb;
  177. u32 map_no;
  178. struct htc_packet htc_pkt;
  179. struct ath6kl_cookie *arc_list_next;
  180. };
  181. struct ath6kl_sta {
  182. u16 sta_flags;
  183. u8 mac[ETH_ALEN];
  184. u8 aid;
  185. u8 keymgmt;
  186. u8 ucipher;
  187. u8 auth;
  188. u8 wpa_ie[ATH6KL_MAX_IE];
  189. struct sk_buff_head psq;
  190. spinlock_t psq_lock;
  191. };
  192. struct ath6kl_version {
  193. u32 target_ver;
  194. u32 wlan_ver;
  195. u32 abi_ver;
  196. };
  197. struct ath6kl_bmi {
  198. u32 cmd_credits;
  199. bool done_sent;
  200. u8 *cmd_buf;
  201. };
  202. struct target_stats {
  203. u64 tx_pkt;
  204. u64 tx_byte;
  205. u64 tx_ucast_pkt;
  206. u64 tx_ucast_byte;
  207. u64 tx_mcast_pkt;
  208. u64 tx_mcast_byte;
  209. u64 tx_bcast_pkt;
  210. u64 tx_bcast_byte;
  211. u64 tx_rts_success_cnt;
  212. u64 tx_pkt_per_ac[4];
  213. u64 tx_err;
  214. u64 tx_fail_cnt;
  215. u64 tx_retry_cnt;
  216. u64 tx_mult_retry_cnt;
  217. u64 tx_rts_fail_cnt;
  218. u64 rx_pkt;
  219. u64 rx_byte;
  220. u64 rx_ucast_pkt;
  221. u64 rx_ucast_byte;
  222. u64 rx_mcast_pkt;
  223. u64 rx_mcast_byte;
  224. u64 rx_bcast_pkt;
  225. u64 rx_bcast_byte;
  226. u64 rx_frgment_pkt;
  227. u64 rx_err;
  228. u64 rx_crc_err;
  229. u64 rx_key_cache_miss;
  230. u64 rx_decrypt_err;
  231. u64 rx_dupl_frame;
  232. u64 tkip_local_mic_fail;
  233. u64 tkip_cnter_measures_invoked;
  234. u64 tkip_replays;
  235. u64 tkip_fmt_err;
  236. u64 ccmp_fmt_err;
  237. u64 ccmp_replays;
  238. u64 pwr_save_fail_cnt;
  239. u64 cs_bmiss_cnt;
  240. u64 cs_low_rssi_cnt;
  241. u64 cs_connect_cnt;
  242. u64 cs_discon_cnt;
  243. s32 tx_ucast_rate;
  244. s32 rx_ucast_rate;
  245. u32 lq_val;
  246. u32 wow_pkt_dropped;
  247. u16 wow_evt_discarded;
  248. s16 noise_floor_calib;
  249. s16 cs_rssi;
  250. s16 cs_ave_beacon_rssi;
  251. u8 cs_ave_beacon_snr;
  252. u8 cs_last_roam_msec;
  253. u8 cs_snr;
  254. u8 wow_host_pkt_wakeups;
  255. u8 wow_host_evt_wakeups;
  256. u32 arp_received;
  257. u32 arp_matched;
  258. u32 arp_replied;
  259. };
  260. struct ath6kl_mbox_info {
  261. u32 htc_addr;
  262. u32 htc_ext_addr;
  263. u32 htc_ext_sz;
  264. u32 block_size;
  265. u32 gmbox_addr;
  266. u32 gmbox_sz;
  267. };
  268. /*
  269. * 802.11i defines an extended IV for use with non-WEP ciphers.
  270. * When the EXTIV bit is set in the key id byte an additional
  271. * 4 bytes immediately follow the IV for TKIP. For CCMP the
  272. * EXTIV bit is likewise set but the 8 bytes represent the
  273. * CCMP header rather than IV+extended-IV.
  274. */
  275. #define ATH6KL_KEYBUF_SIZE 16
  276. #define ATH6KL_MICBUF_SIZE (8+8) /* space for both tx and rx */
  277. #define ATH6KL_KEY_XMIT 0x01
  278. #define ATH6KL_KEY_RECV 0x02
  279. #define ATH6KL_KEY_DEFAULT 0x80 /* default xmit key */
  280. /* Initial group key for AP mode */
  281. struct ath6kl_req_key {
  282. bool valid;
  283. u8 key_index;
  284. int key_type;
  285. u8 key[WLAN_MAX_KEY_LEN];
  286. u8 key_len;
  287. };
  288. /* Flag info */
  289. #define WMI_ENABLED 0
  290. #define WMI_READY 1
  291. #define CONNECTED 2
  292. #define STATS_UPDATE_PEND 3
  293. #define CONNECT_PEND 4
  294. #define WMM_ENABLED 5
  295. #define NETQ_STOPPED 6
  296. #define WMI_CTRL_EP_FULL 7
  297. #define DTIM_EXPIRED 8
  298. #define DESTROY_IN_PROGRESS 9
  299. #define NETDEV_REGISTERED 10
  300. #define SKIP_SCAN 11
  301. #define WLAN_ENABLED 12
  302. #define TESTMODE 13
  303. struct ath6kl {
  304. struct device *dev;
  305. struct net_device *net_dev;
  306. struct ath6kl_bmi bmi;
  307. const struct ath6kl_hif_ops *hif_ops;
  308. struct wmi *wmi;
  309. int tx_pending[ENDPOINT_MAX];
  310. int total_tx_data_pend;
  311. struct htc_target *htc_target;
  312. void *hif_priv;
  313. spinlock_t lock;
  314. struct semaphore sem;
  315. int ssid_len;
  316. u8 ssid[IEEE80211_MAX_SSID_LEN];
  317. u8 next_mode;
  318. u8 nw_type;
  319. u8 dot11_auth_mode;
  320. u8 auth_mode;
  321. u8 prwise_crypto;
  322. u8 prwise_crypto_len;
  323. u8 grp_crypto;
  324. u8 grp_crypto_len;
  325. u8 def_txkey_index;
  326. struct ath6kl_wep_key wep_key_list[WMI_MAX_KEY_INDEX + 1];
  327. u8 bssid[ETH_ALEN];
  328. u8 req_bssid[ETH_ALEN];
  329. u16 ch_hint;
  330. u16 bss_ch;
  331. u16 listen_intvl_b;
  332. u16 listen_intvl_t;
  333. struct ath6kl_version version;
  334. u32 target_type;
  335. u8 tx_pwr;
  336. struct net_device_stats net_stats;
  337. struct target_stats target_stats;
  338. struct ath6kl_node_mapping node_map[MAX_NODE_NUM];
  339. u8 ibss_ps_enable;
  340. u8 node_num;
  341. u8 next_ep_id;
  342. struct ath6kl_cookie *cookie_list;
  343. u32 cookie_count;
  344. enum htc_endpoint_id ac2ep_map[WMM_NUM_AC];
  345. bool ac_stream_active[WMM_NUM_AC];
  346. u8 ac_stream_pri_map[WMM_NUM_AC];
  347. u8 hiac_stream_active_pri;
  348. u8 ep2ac_map[ENDPOINT_MAX];
  349. enum htc_endpoint_id ctrl_ep;
  350. struct htc_credit_state_info credit_state_info;
  351. u32 connect_ctrl_flags;
  352. u32 user_key_ctrl;
  353. u8 usr_bss_filter;
  354. struct ath6kl_sta sta_list[AP_MAX_NUM_STA];
  355. u8 sta_list_index;
  356. struct ath6kl_req_key ap_mode_bkey;
  357. struct sk_buff_head mcastpsq;
  358. spinlock_t mcastpsq_lock;
  359. u8 intra_bss;
  360. struct aggr_info *aggr_cntxt;
  361. struct wmi_ap_mode_stat ap_stats;
  362. u8 ap_country_code[3];
  363. struct list_head amsdu_rx_buffer_queue;
  364. struct timer_list disconnect_timer;
  365. u8 rx_meta_ver;
  366. struct wireless_dev *wdev;
  367. struct cfg80211_scan_request *scan_req;
  368. struct ath6kl_key keys[WMI_MAX_KEY_INDEX + 1];
  369. enum sme_state sme_state;
  370. enum wlan_low_pwr_state wlan_pwr_state;
  371. struct wmi_scan_params_cmd sc_params;
  372. #define AR_MCAST_FILTER_MAC_ADDR_SIZE 4
  373. u8 auto_auth_stage;
  374. struct {
  375. void *rx_report;
  376. size_t rx_report_len;
  377. } tm;
  378. u16 conf_flags;
  379. wait_queue_head_t event_wq;
  380. struct ath6kl_mbox_info mbox_info;
  381. struct ath6kl_cookie cookie_mem[MAX_COOKIE_NUM];
  382. int reconnect_flag;
  383. unsigned long flag;
  384. u8 *fw_board;
  385. size_t fw_board_len;
  386. u8 *fw_otp;
  387. size_t fw_otp_len;
  388. u8 *fw;
  389. size_t fw_len;
  390. u8 *fw_patch;
  391. size_t fw_patch_len;
  392. struct workqueue_struct *ath6kl_wq;
  393. struct ath6kl_node_table scan_table;
  394. struct dentry *debugfs_phy;
  395. u32 send_action_id;
  396. bool probe_req_report;
  397. u16 next_chan;
  398. };
  399. static inline void *ath6kl_priv(struct net_device *dev)
  400. {
  401. return wdev_priv(dev->ieee80211_ptr);
  402. }
  403. static inline void ath6kl_deposit_credit_to_ep(struct htc_credit_state_info
  404. *cred_info,
  405. struct htc_endpoint_credit_dist
  406. *ep_dist, int credits)
  407. {
  408. ep_dist->credits += credits;
  409. ep_dist->cred_assngd += credits;
  410. cred_info->cur_free_credits -= credits;
  411. }
  412. void ath6kl_destroy(struct net_device *dev, unsigned int unregister);
  413. int ath6kl_configure_target(struct ath6kl *ar);
  414. void ath6kl_detect_error(unsigned long ptr);
  415. void disconnect_timer_handler(unsigned long ptr);
  416. void init_netdev(struct net_device *dev);
  417. void ath6kl_cookie_init(struct ath6kl *ar);
  418. void ath6kl_cookie_cleanup(struct ath6kl *ar);
  419. void ath6kl_rx(struct htc_target *target, struct htc_packet *packet);
  420. void ath6kl_tx_complete(void *context, struct list_head *packet_queue);
  421. enum htc_send_full_action ath6kl_tx_queue_full(struct htc_target *target,
  422. struct htc_packet *packet);
  423. void ath6kl_stop_txrx(struct ath6kl *ar);
  424. void ath6kl_cleanup_amsdu_rxbufs(struct ath6kl *ar);
  425. int ath6kl_access_datadiag(struct ath6kl *ar, u32 address,
  426. u8 *data, u32 length, bool read);
  427. int ath6kl_read_reg_diag(struct ath6kl *ar, u32 *address, u32 *data);
  428. void ath6kl_init_profile_info(struct ath6kl *ar);
  429. void ath6kl_tx_data_cleanup(struct ath6kl *ar);
  430. void ath6kl_stop_endpoint(struct net_device *dev, bool keep_profile,
  431. bool get_dbglogs);
  432. struct ath6kl_cookie *ath6kl_alloc_cookie(struct ath6kl *ar);
  433. void ath6kl_free_cookie(struct ath6kl *ar, struct ath6kl_cookie *cookie);
  434. int ath6kl_data_tx(struct sk_buff *skb, struct net_device *dev);
  435. struct aggr_info *aggr_init(struct net_device *dev);
  436. void ath6kl_rx_refill(struct htc_target *target,
  437. enum htc_endpoint_id endpoint);
  438. void ath6kl_refill_amsdu_rxbufs(struct ath6kl *ar, int count);
  439. struct htc_packet *ath6kl_alloc_amsdu_rxbuf(struct htc_target *target,
  440. enum htc_endpoint_id endpoint,
  441. int len);
  442. void aggr_module_destroy(struct aggr_info *aggr_info);
  443. void aggr_reset_state(struct aggr_info *aggr_info);
  444. struct ath6kl_sta *ath6kl_find_sta(struct ath6kl *ar, u8 * node_addr);
  445. struct ath6kl_sta *ath6kl_find_sta_by_aid(struct ath6kl *ar, u8 aid);
  446. void ath6kl_ready_event(void *devt, u8 * datap, u32 sw_ver, u32 abi_ver);
  447. int ath6kl_control_tx(void *devt, struct sk_buff *skb,
  448. enum htc_endpoint_id eid);
  449. void ath6kl_connect_event(struct ath6kl *ar, u16 channel,
  450. u8 *bssid, u16 listen_int,
  451. u16 beacon_int, enum network_type net_type,
  452. u8 beacon_ie_len, u8 assoc_req_len,
  453. u8 assoc_resp_len, u8 *assoc_info);
  454. void ath6kl_disconnect_event(struct ath6kl *ar, u8 reason,
  455. u8 *bssid, u8 assoc_resp_len,
  456. u8 *assoc_info, u16 prot_reason_status);
  457. void ath6kl_tkip_micerr_event(struct ath6kl *ar, u8 keyid, bool ismcast);
  458. void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr);
  459. void ath6kl_scan_complete_evt(struct ath6kl *ar, int status);
  460. void ath6kl_tgt_stats_event(struct ath6kl *ar, u8 *ptr, u32 len);
  461. void ath6kl_indicate_tx_activity(void *devt, u8 traffic_class, bool active);
  462. enum htc_endpoint_id ath6kl_ac2_endpoint_id(void *devt, u8 ac);
  463. void ath6kl_pspoll_event(struct ath6kl *ar, u8 aid);
  464. void ath6kl_dtimexpiry_event(struct ath6kl *ar);
  465. void ath6kl_disconnect(struct ath6kl *ar);
  466. void ath6kl_deep_sleep_enable(struct ath6kl *ar);
  467. void aggr_recv_delba_req_evt(struct ath6kl *ar, u8 tid);
  468. void aggr_recv_addba_req_evt(struct ath6kl *ar, u8 tid, u16 seq_no,
  469. u8 win_sz);
  470. void ath6kl_wakeup_event(void *dev);
  471. void ath6kl_target_failure(struct ath6kl *ar);
  472. void ath6kl_cfg80211_scan_node(struct wiphy *wiphy, struct bss *ni);
  473. #endif /* CORE_H */