agg-rx.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * HT handling
  4. *
  5. * Copyright 2003, Jouni Malinen <jkmaline@cc.hut.fi>
  6. * Copyright 2002-2005, Instant802 Networks, Inc.
  7. * Copyright 2005-2006, Devicescape Software, Inc.
  8. * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
  9. * Copyright 2007, Michael Wu <flamingice@sourmilk.net>
  10. * Copyright 2007-2010, Intel Corporation
  11. * Copyright(c) 2015-2017 Intel Deutschland GmbH
  12. * Copyright (C) 2018-2025 Intel Corporation
  13. */
  14. /**
  15. * DOC: RX A-MPDU aggregation
  16. *
  17. * Aggregation on the RX side requires only implementing the
  18. * @ampdu_action callback that is invoked to start/stop any
  19. * block-ack sessions for RX aggregation.
  20. *
  21. * When RX aggregation is started by the peer, the driver is
  22. * notified via @ampdu_action function, with the
  23. * %IEEE80211_AMPDU_RX_START action, and may reject the request
  24. * in which case a negative response is sent to the peer, if it
  25. * accepts it a positive response is sent.
  26. *
  27. * While the session is active, the device/driver are required
  28. * to de-aggregate frames and pass them up one by one to mac80211,
  29. * which will handle the reorder buffer.
  30. *
  31. * When the aggregation session is stopped again by the peer or
  32. * ourselves, the driver's @ampdu_action function will be called
  33. * with the action %IEEE80211_AMPDU_RX_STOP. In this case, the
  34. * call must not fail.
  35. */
  36. #include <linux/ieee80211.h>
  37. #include <linux/slab.h>
  38. #include <linux/export.h>
  39. #include <net/mac80211.h>
  40. #include "ieee80211_i.h"
  41. #include "driver-ops.h"
  42. static void ieee80211_free_tid_rx(struct rcu_head *h)
  43. {
  44. struct tid_ampdu_rx *tid_rx =
  45. container_of(h, struct tid_ampdu_rx, rcu_head);
  46. int i;
  47. for (i = 0; i < tid_rx->buf_size; i++)
  48. __skb_queue_purge(&tid_rx->reorder_buf[i]);
  49. kfree(tid_rx->reorder_buf);
  50. kfree(tid_rx->reorder_time);
  51. kfree(tid_rx);
  52. }
  53. void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,
  54. u16 initiator, u16 reason, bool tx)
  55. {
  56. struct ieee80211_local *local = sta->local;
  57. struct tid_ampdu_rx *tid_rx;
  58. struct ieee80211_ampdu_params params = {
  59. .sta = &sta->sta,
  60. .action = IEEE80211_AMPDU_RX_STOP,
  61. .tid = tid,
  62. .amsdu = false,
  63. .timeout = 0,
  64. .ssn = 0,
  65. };
  66. lockdep_assert_wiphy(sta->local->hw.wiphy);
  67. tid_rx = rcu_dereference_protected(sta->ampdu_mlme.tid_rx[tid],
  68. lockdep_is_held(&sta->local->hw.wiphy->mtx));
  69. if (!test_bit(tid, sta->ampdu_mlme.agg_session_valid))
  70. return;
  71. RCU_INIT_POINTER(sta->ampdu_mlme.tid_rx[tid], NULL);
  72. __clear_bit(tid, sta->ampdu_mlme.agg_session_valid);
  73. ht_dbg(sta->sdata,
  74. "Rx BA session stop requested for %pM tid %u %s reason: %d\n",
  75. sta->sta.addr, tid,
  76. initiator == WLAN_BACK_RECIPIENT ? "recipient" : "initiator",
  77. (int)reason);
  78. if (drv_ampdu_action(local, sta->sdata, &params))
  79. sdata_info(sta->sdata,
  80. "HW problem - can not stop rx aggregation for %pM tid %d\n",
  81. sta->sta.addr, tid);
  82. /* check if this is a self generated aggregation halt */
  83. if (initiator == WLAN_BACK_RECIPIENT && tx)
  84. ieee80211_send_delba(sta->sdata, sta->sta.addr,
  85. tid, WLAN_BACK_RECIPIENT, reason);
  86. /*
  87. * return here in case tid_rx is not assigned - which will happen if
  88. * IEEE80211_HW_SUPPORTS_REORDERING_BUFFER is set.
  89. */
  90. if (!tid_rx)
  91. return;
  92. timer_delete_sync(&tid_rx->session_timer);
  93. /* make sure ieee80211_sta_reorder_release() doesn't re-arm the timer */
  94. spin_lock_bh(&tid_rx->reorder_lock);
  95. tid_rx->removed = true;
  96. spin_unlock_bh(&tid_rx->reorder_lock);
  97. timer_delete_sync(&tid_rx->reorder_timer);
  98. call_rcu(&tid_rx->rcu_head, ieee80211_free_tid_rx);
  99. }
  100. void ieee80211_stop_rx_ba_session(struct ieee80211_vif *vif, u16 ba_rx_bitmap,
  101. const u8 *addr)
  102. {
  103. struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
  104. struct sta_info *sta;
  105. int i;
  106. rcu_read_lock();
  107. sta = sta_info_get_bss(sdata, addr);
  108. if (!sta) {
  109. rcu_read_unlock();
  110. return;
  111. }
  112. for (i = 0; i < IEEE80211_NUM_TIDS; i++)
  113. if (ba_rx_bitmap & BIT(i))
  114. set_bit(i, sta->ampdu_mlme.tid_rx_stop_requested);
  115. wiphy_work_queue(sta->local->hw.wiphy, &sta->ampdu_mlme.work);
  116. rcu_read_unlock();
  117. }
  118. EXPORT_SYMBOL(ieee80211_stop_rx_ba_session);
  119. /*
  120. * After accepting the AddBA Request we activated a timer,
  121. * resetting it after each frame that arrives from the originator.
  122. */
  123. static void sta_rx_agg_session_timer_expired(struct timer_list *t)
  124. {
  125. struct tid_ampdu_rx *tid_rx = timer_container_of(tid_rx, t,
  126. session_timer);
  127. struct sta_info *sta = tid_rx->sta;
  128. u8 tid = tid_rx->tid;
  129. unsigned long timeout;
  130. timeout = tid_rx->last_rx + TU_TO_JIFFIES(tid_rx->timeout);
  131. if (time_is_after_jiffies(timeout)) {
  132. mod_timer(&tid_rx->session_timer, timeout);
  133. return;
  134. }
  135. ht_dbg(sta->sdata, "RX session timer expired on %pM tid %d\n",
  136. sta->sta.addr, tid);
  137. set_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired);
  138. wiphy_work_queue(sta->local->hw.wiphy, &sta->ampdu_mlme.work);
  139. }
  140. static void sta_rx_agg_reorder_timer_expired(struct timer_list *t)
  141. {
  142. struct tid_ampdu_rx *tid_rx = timer_container_of(tid_rx, t,
  143. reorder_timer);
  144. rcu_read_lock();
  145. ieee80211_release_reorder_timeout(tid_rx->sta, tid_rx->tid);
  146. rcu_read_unlock();
  147. }
  148. void ieee80211_add_addbaext(struct sk_buff *skb,
  149. const u8 req_addba_ext_data,
  150. u16 buf_size)
  151. {
  152. struct ieee80211_addba_ext_ie *addba_ext;
  153. u8 *pos;
  154. pos = skb_put_zero(skb, 2 + sizeof(struct ieee80211_addba_ext_ie));
  155. *pos++ = WLAN_EID_ADDBA_EXT;
  156. *pos++ = sizeof(struct ieee80211_addba_ext_ie);
  157. addba_ext = (struct ieee80211_addba_ext_ie *)pos;
  158. addba_ext->data = IEEE80211_ADDBA_EXT_NO_FRAG;
  159. if (req_addba_ext_data)
  160. addba_ext->data &= req_addba_ext_data;
  161. addba_ext->data |=
  162. u8_encode_bits(buf_size >> IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT,
  163. IEEE80211_ADDBA_EXT_BUF_SIZE_MASK);
  164. }
  165. u8 ieee80211_retrieve_addba_ext_data(struct sta_info *sta,
  166. const void *elem_data, ssize_t elem_len,
  167. u16 *buf_size)
  168. {
  169. struct ieee802_11_elems *elems;
  170. u8 buf_size_1k, data = 0;
  171. if (!sta->sta.deflink.he_cap.has_he)
  172. return 0;
  173. if (elem_len <= 0)
  174. return 0;
  175. elems = ieee802_11_parse_elems(elem_data, elem_len,
  176. IEEE80211_FTYPE_MGMT |
  177. IEEE80211_STYPE_ACTION,
  178. NULL);
  179. if (!elems || elems->parse_error || !elems->addba_ext_ie)
  180. goto free;
  181. data = elems->addba_ext_ie->data;
  182. if (buf_size &&
  183. (sta->sta.valid_links || sta->sta.deflink.eht_cap.has_eht)) {
  184. buf_size_1k = u8_get_bits(elems->addba_ext_ie->data,
  185. IEEE80211_ADDBA_EXT_BUF_SIZE_MASK);
  186. *buf_size |= (u16)buf_size_1k <<
  187. IEEE80211_ADDBA_EXT_BUF_SIZE_SHIFT;
  188. }
  189. free:
  190. kfree(elems);
  191. return data;
  192. }
  193. static void ieee80211_send_addba_resp(struct sta_info *sta, u8 *da, u16 tid,
  194. u8 dialog_token, u16 status, u16 policy,
  195. u16 buf_size, u16 timeout,
  196. const u8 req_addba_ext_data)
  197. {
  198. struct ieee80211_sub_if_data *sdata = sta->sdata;
  199. struct ieee80211_local *local = sdata->local;
  200. struct sk_buff *skb;
  201. struct ieee80211_mgmt *mgmt;
  202. bool amsdu = ieee80211_hw_check(&local->hw, SUPPORTS_AMSDU_IN_AMPDU);
  203. u16 capab;
  204. skb = dev_alloc_skb(sizeof(*mgmt) +
  205. 2 + sizeof(struct ieee80211_addba_ext_ie) +
  206. local->hw.extra_tx_headroom);
  207. if (!skb)
  208. return;
  209. skb_reserve(skb, local->hw.extra_tx_headroom);
  210. mgmt = ieee80211_mgmt_ba(skb, da, sdata);
  211. skb_put(skb, 1 + sizeof(mgmt->u.action.u.addba_resp));
  212. mgmt->u.action.category = WLAN_CATEGORY_BACK;
  213. mgmt->u.action.u.addba_resp.action_code = WLAN_ACTION_ADDBA_RESP;
  214. mgmt->u.action.u.addba_resp.dialog_token = dialog_token;
  215. capab = u16_encode_bits(amsdu, IEEE80211_ADDBA_PARAM_AMSDU_MASK);
  216. capab |= u16_encode_bits(policy, IEEE80211_ADDBA_PARAM_POLICY_MASK);
  217. capab |= u16_encode_bits(tid, IEEE80211_ADDBA_PARAM_TID_MASK);
  218. capab |= u16_encode_bits(buf_size, IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK);
  219. mgmt->u.action.u.addba_resp.capab = cpu_to_le16(capab);
  220. mgmt->u.action.u.addba_resp.timeout = cpu_to_le16(timeout);
  221. mgmt->u.action.u.addba_resp.status = cpu_to_le16(status);
  222. if (sta->sta.valid_links || sta->sta.deflink.he_cap.has_he)
  223. ieee80211_add_addbaext(skb, req_addba_ext_data, buf_size);
  224. ieee80211_tx_skb(sdata, skb);
  225. }
  226. void __ieee80211_start_rx_ba_session(struct sta_info *sta,
  227. u8 dialog_token, u16 timeout,
  228. u16 start_seq_num, u16 ba_policy, u16 tid,
  229. u16 buf_size, bool tx, bool auto_seq,
  230. const u8 addba_ext_data)
  231. {
  232. struct ieee80211_local *local = sta->sdata->local;
  233. struct tid_ampdu_rx *tid_agg_rx;
  234. struct ieee80211_ampdu_params params = {
  235. .sta = &sta->sta,
  236. .action = IEEE80211_AMPDU_RX_START,
  237. .tid = tid,
  238. .amsdu = false,
  239. .timeout = timeout,
  240. .ssn = start_seq_num,
  241. };
  242. int i, ret = -EOPNOTSUPP;
  243. u16 status = WLAN_STATUS_REQUEST_DECLINED;
  244. u16 max_buf_size;
  245. lockdep_assert_wiphy(sta->local->hw.wiphy);
  246. if (tid >= IEEE80211_FIRST_TSPEC_TSID) {
  247. ht_dbg(sta->sdata,
  248. "STA %pM requests BA session on unsupported tid %d\n",
  249. sta->sta.addr, tid);
  250. goto end;
  251. }
  252. if (!sta->sta.valid_links &&
  253. !sta->sta.deflink.ht_cap.ht_supported &&
  254. !sta->sta.deflink.he_cap.has_he &&
  255. !sta->sta.deflink.s1g_cap.s1g) {
  256. ht_dbg(sta->sdata,
  257. "STA %pM erroneously requests BA session on tid %d w/o HT\n",
  258. sta->sta.addr, tid);
  259. /* send a response anyway, it's an error case if we get here */
  260. goto end;
  261. }
  262. if (test_sta_flag(sta, WLAN_STA_BLOCK_BA)) {
  263. ht_dbg(sta->sdata,
  264. "Suspend in progress - Denying ADDBA request (%pM tid %d)\n",
  265. sta->sta.addr, tid);
  266. goto end;
  267. }
  268. if (sta->sta.valid_links || sta->sta.deflink.eht_cap.has_eht)
  269. max_buf_size = IEEE80211_MAX_AMPDU_BUF_EHT;
  270. else if (sta->sta.deflink.he_cap.has_he)
  271. max_buf_size = IEEE80211_MAX_AMPDU_BUF_HE;
  272. else
  273. max_buf_size = IEEE80211_MAX_AMPDU_BUF_HT;
  274. /* sanity check for incoming parameters:
  275. * check if configuration can support the BA policy
  276. * and if buffer size does not exceeds max value */
  277. /* XXX: check own ht delayed BA capability?? */
  278. if (((ba_policy != 1) &&
  279. (sta->sta.valid_links ||
  280. !(sta->sta.deflink.ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA) ||
  281. !(sta->sta.deflink.s1g_cap.cap[3] & S1G_CAP3_HT_DELAYED_BA))) ||
  282. (buf_size > max_buf_size)) {
  283. status = WLAN_STATUS_INVALID_QOS_PARAM;
  284. ht_dbg_ratelimited(sta->sdata,
  285. "AddBA Req with bad params from %pM on tid %u. policy %d, buffer size %d\n",
  286. sta->sta.addr, tid, ba_policy, buf_size);
  287. goto end;
  288. }
  289. /* determine default buffer size */
  290. if (buf_size == 0)
  291. buf_size = max_buf_size;
  292. /* make sure the size doesn't exceed the maximum supported by the hw */
  293. if (buf_size > sta->sta.max_rx_aggregation_subframes)
  294. buf_size = sta->sta.max_rx_aggregation_subframes;
  295. params.buf_size = buf_size;
  296. ht_dbg(sta->sdata, "AddBA Req buf_size=%d for %pM\n",
  297. buf_size, sta->sta.addr);
  298. if (test_bit(tid, sta->ampdu_mlme.agg_session_valid)) {
  299. if (sta->ampdu_mlme.tid_rx_token[tid] == dialog_token) {
  300. struct tid_ampdu_rx *tid_rx;
  301. ht_dbg_ratelimited(sta->sdata,
  302. "updated AddBA Req from %pM on tid %u\n",
  303. sta->sta.addr, tid);
  304. /* We have no API to update the timeout value in the
  305. * driver so reject the timeout update if the timeout
  306. * changed. If it did not change, i.e., no real update,
  307. * just reply with success.
  308. */
  309. rcu_read_lock();
  310. tid_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[tid]);
  311. if (tid_rx && tid_rx->timeout == timeout)
  312. status = WLAN_STATUS_SUCCESS;
  313. else
  314. status = WLAN_STATUS_REQUEST_DECLINED;
  315. rcu_read_unlock();
  316. goto end;
  317. }
  318. ht_dbg_ratelimited(sta->sdata,
  319. "unexpected AddBA Req from %pM on tid %u\n",
  320. sta->sta.addr, tid);
  321. /* delete existing Rx BA session on the same tid */
  322. __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT,
  323. WLAN_STATUS_UNSPECIFIED_QOS,
  324. false);
  325. }
  326. if (ieee80211_hw_check(&local->hw, SUPPORTS_REORDERING_BUFFER)) {
  327. ret = drv_ampdu_action(local, sta->sdata, &params);
  328. ht_dbg(sta->sdata,
  329. "Rx A-MPDU request on %pM tid %d result %d\n",
  330. sta->sta.addr, tid, ret);
  331. if (!ret)
  332. status = WLAN_STATUS_SUCCESS;
  333. goto end;
  334. }
  335. /* prepare A-MPDU MLME for Rx aggregation */
  336. tid_agg_rx = kzalloc_obj(*tid_agg_rx);
  337. if (!tid_agg_rx)
  338. goto end;
  339. spin_lock_init(&tid_agg_rx->reorder_lock);
  340. /* rx timer */
  341. timer_setup(&tid_agg_rx->session_timer,
  342. sta_rx_agg_session_timer_expired, TIMER_DEFERRABLE);
  343. /* rx reorder timer */
  344. timer_setup(&tid_agg_rx->reorder_timer,
  345. sta_rx_agg_reorder_timer_expired, 0);
  346. /* prepare reordering buffer */
  347. tid_agg_rx->reorder_buf =
  348. kzalloc_objs(struct sk_buff_head, buf_size);
  349. tid_agg_rx->reorder_time =
  350. kcalloc(buf_size, sizeof(unsigned long), GFP_KERNEL);
  351. if (!tid_agg_rx->reorder_buf || !tid_agg_rx->reorder_time) {
  352. kfree(tid_agg_rx->reorder_buf);
  353. kfree(tid_agg_rx->reorder_time);
  354. kfree(tid_agg_rx);
  355. goto end;
  356. }
  357. for (i = 0; i < buf_size; i++)
  358. __skb_queue_head_init(&tid_agg_rx->reorder_buf[i]);
  359. ret = drv_ampdu_action(local, sta->sdata, &params);
  360. ht_dbg(sta->sdata, "Rx A-MPDU request on %pM tid %d result %d\n",
  361. sta->sta.addr, tid, ret);
  362. if (ret) {
  363. kfree(tid_agg_rx->reorder_buf);
  364. kfree(tid_agg_rx->reorder_time);
  365. kfree(tid_agg_rx);
  366. goto end;
  367. }
  368. /* update data */
  369. tid_agg_rx->ssn = start_seq_num;
  370. tid_agg_rx->head_seq_num = start_seq_num;
  371. tid_agg_rx->buf_size = buf_size;
  372. tid_agg_rx->timeout = timeout;
  373. tid_agg_rx->stored_mpdu_num = 0;
  374. tid_agg_rx->auto_seq = auto_seq;
  375. tid_agg_rx->started = false;
  376. tid_agg_rx->reorder_buf_filtered = 0;
  377. tid_agg_rx->tid = tid;
  378. tid_agg_rx->sta = sta;
  379. status = WLAN_STATUS_SUCCESS;
  380. /* activate it for RX */
  381. rcu_assign_pointer(sta->ampdu_mlme.tid_rx[tid], tid_agg_rx);
  382. if (timeout) {
  383. mod_timer(&tid_agg_rx->session_timer, TU_TO_EXP_TIME(timeout));
  384. tid_agg_rx->last_rx = jiffies;
  385. }
  386. end:
  387. if (status == WLAN_STATUS_SUCCESS) {
  388. __set_bit(tid, sta->ampdu_mlme.agg_session_valid);
  389. __clear_bit(tid, sta->ampdu_mlme.unexpected_agg);
  390. sta->ampdu_mlme.tid_rx_token[tid] = dialog_token;
  391. }
  392. if (tx)
  393. ieee80211_send_addba_resp(sta, sta->sta.addr, tid,
  394. dialog_token, status, 1, buf_size,
  395. timeout, addba_ext_data);
  396. }
  397. void ieee80211_process_addba_request(struct ieee80211_local *local,
  398. struct sta_info *sta,
  399. struct ieee80211_mgmt *mgmt,
  400. size_t len)
  401. {
  402. u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num;
  403. u8 dialog_token, addba_ext_data;
  404. /* extract session parameters from addba request frame */
  405. dialog_token = mgmt->u.action.u.addba_req.dialog_token;
  406. timeout = le16_to_cpu(mgmt->u.action.u.addba_req.timeout);
  407. start_seq_num =
  408. le16_to_cpu(mgmt->u.action.u.addba_req.start_seq_num) >> 4;
  409. capab = le16_to_cpu(mgmt->u.action.u.addba_req.capab);
  410. ba_policy = (capab & IEEE80211_ADDBA_PARAM_POLICY_MASK) >> 1;
  411. tid = (capab & IEEE80211_ADDBA_PARAM_TID_MASK) >> 2;
  412. buf_size = (capab & IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK) >> 6;
  413. addba_ext_data =
  414. ieee80211_retrieve_addba_ext_data(sta,
  415. mgmt->u.action.u.addba_req.variable,
  416. len -
  417. offsetof(typeof(*mgmt),
  418. u.action.u.addba_req.variable),
  419. &buf_size);
  420. __ieee80211_start_rx_ba_session(sta, dialog_token, timeout,
  421. start_seq_num, ba_policy, tid,
  422. buf_size, true, false, addba_ext_data);
  423. }
  424. void ieee80211_manage_rx_ba_offl(struct ieee80211_vif *vif,
  425. const u8 *addr, unsigned int tid)
  426. {
  427. struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
  428. struct sta_info *sta;
  429. rcu_read_lock();
  430. sta = sta_info_get_bss(sdata, addr);
  431. if (!sta)
  432. goto unlock;
  433. set_bit(tid, sta->ampdu_mlme.tid_rx_manage_offl);
  434. wiphy_work_queue(sta->local->hw.wiphy, &sta->ampdu_mlme.work);
  435. unlock:
  436. rcu_read_unlock();
  437. }
  438. EXPORT_SYMBOL(ieee80211_manage_rx_ba_offl);
  439. void ieee80211_rx_ba_timer_expired(struct ieee80211_vif *vif,
  440. const u8 *addr, unsigned int tid)
  441. {
  442. struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
  443. struct sta_info *sta;
  444. rcu_read_lock();
  445. sta = sta_info_get_bss(sdata, addr);
  446. if (!sta)
  447. goto unlock;
  448. set_bit(tid, sta->ampdu_mlme.tid_rx_timer_expired);
  449. wiphy_work_queue(sta->local->hw.wiphy, &sta->ampdu_mlme.work);
  450. unlock:
  451. rcu_read_unlock();
  452. }
  453. EXPORT_SYMBOL(ieee80211_rx_ba_timer_expired);