core.h 15 KB

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