core.h 15 KB

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