ieee80211_tx.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. /******************************************************************************
  2. Copyright(c) 2003 - 2005 Intel Corporation. All rights reserved.
  3. This program is free software; you can redistribute it and/or modify it
  4. under the terms of version 2 of the GNU General Public License as
  5. published by the Free Software Foundation.
  6. This program is distributed in the hope that it will be useful, but WITHOUT
  7. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  8. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  9. more details.
  10. You should have received a copy of the GNU General Public License along with
  11. this program; if not, write to the Free Software Foundation, Inc., 59
  12. Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  13. The full GNU General Public License is included in this distribution in the
  14. file called LICENSE.
  15. Contact Information:
  16. James P. Ketrenos <ipw2100-admin@linux.intel.com>
  17. Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  18. ******************************************************************************/
  19. #include <linux/compiler.h>
  20. #include <linux/config.h>
  21. #include <linux/errno.h>
  22. #include <linux/if_arp.h>
  23. #include <linux/in6.h>
  24. #include <linux/in.h>
  25. #include <linux/ip.h>
  26. #include <linux/kernel.h>
  27. #include <linux/module.h>
  28. #include <linux/netdevice.h>
  29. #include <linux/proc_fs.h>
  30. #include <linux/skbuff.h>
  31. #include <linux/slab.h>
  32. #include <linux/tcp.h>
  33. #include <linux/types.h>
  34. #include <linux/version.h>
  35. #include <linux/wireless.h>
  36. #include <linux/etherdevice.h>
  37. #include <asm/uaccess.h>
  38. #include <net/ieee80211.h>
  39. /*
  40. 802.11 Data Frame
  41. ,-------------------------------------------------------------------.
  42. Bytes | 2 | 2 | 6 | 6 | 6 | 2 | 0..2312 | 4 |
  43. |------|------|---------|---------|---------|------|---------|------|
  44. Desc. | ctrl | dura | DA/RA | TA | SA | Sequ | Frame | fcs |
  45. | | tion | (BSSID) | | | ence | data | |
  46. `--------------------------------------------------| |------'
  47. Total: 28 non-data bytes `----.----'
  48. |
  49. .- 'Frame data' expands to <---------------------------'
  50. |
  51. V
  52. ,---------------------------------------------------.
  53. Bytes | 1 | 1 | 1 | 3 | 2 | 0-2304 |
  54. |------|------|---------|----------|------|---------|
  55. Desc. | SNAP | SNAP | Control |Eth Tunnel| Type | IP |
  56. | DSAP | SSAP | | | | Packet |
  57. | 0xAA | 0xAA |0x03 (UI)|0x00-00-F8| | |
  58. `-----------------------------------------| |
  59. Total: 8 non-data bytes `----.----'
  60. |
  61. .- 'IP Packet' expands, if WEP enabled, to <--'
  62. |
  63. V
  64. ,-----------------------.
  65. Bytes | 4 | 0-2296 | 4 |
  66. |-----|-----------|-----|
  67. Desc. | IV | Encrypted | ICV |
  68. | | IP Packet | |
  69. `-----------------------'
  70. Total: 8 non-data bytes
  71. 802.3 Ethernet Data Frame
  72. ,-----------------------------------------.
  73. Bytes | 6 | 6 | 2 | Variable | 4 |
  74. |-------|-------|------|-----------|------|
  75. Desc. | Dest. | Source| Type | IP Packet | fcs |
  76. | MAC | MAC | | | |
  77. `-----------------------------------------'
  78. Total: 18 non-data bytes
  79. In the event that fragmentation is required, the incoming payload is split into
  80. N parts of size ieee->fts. The first fragment contains the SNAP header and the
  81. remaining packets are just data.
  82. If encryption is enabled, each fragment payload size is reduced by enough space
  83. to add the prefix and postfix (IV and ICV totalling 8 bytes in the case of WEP)
  84. So if you have 1500 bytes of payload with ieee->fts set to 500 without
  85. encryption it will take 3 frames. With WEP it will take 4 frames as the
  86. payload of each frame is reduced to 492 bytes.
  87. * SKB visualization
  88. *
  89. * ,- skb->data
  90. * |
  91. * | ETHERNET HEADER ,-<-- PAYLOAD
  92. * | | 14 bytes from skb->data
  93. * | 2 bytes for Type --> ,T. | (sizeof ethhdr)
  94. * | | | |
  95. * |,-Dest.--. ,--Src.---. | | |
  96. * | 6 bytes| | 6 bytes | | | |
  97. * v | | | | | |
  98. * 0 | v 1 | v | v 2
  99. * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  100. * ^ | ^ | ^ |
  101. * | | | | | |
  102. * | | | | `T' <---- 2 bytes for Type
  103. * | | | |
  104. * | | '---SNAP--' <-------- 6 bytes for SNAP
  105. * | |
  106. * `-IV--' <-------------------- 4 bytes for IV (WEP)
  107. *
  108. * SNAP HEADER
  109. *
  110. */
  111. static u8 P802_1H_OUI[P80211_OUI_LEN] = { 0x00, 0x00, 0xf8 };
  112. static u8 RFC1042_OUI[P80211_OUI_LEN] = { 0x00, 0x00, 0x00 };
  113. static inline int ieee80211_copy_snap(u8 * data, u16 h_proto)
  114. {
  115. struct ieee80211_snap_hdr *snap;
  116. u8 *oui;
  117. snap = (struct ieee80211_snap_hdr *)data;
  118. snap->dsap = 0xaa;
  119. snap->ssap = 0xaa;
  120. snap->ctrl = 0x03;
  121. if (h_proto == 0x8137 || h_proto == 0x80f3)
  122. oui = P802_1H_OUI;
  123. else
  124. oui = RFC1042_OUI;
  125. snap->oui[0] = oui[0];
  126. snap->oui[1] = oui[1];
  127. snap->oui[2] = oui[2];
  128. *(u16 *) (data + SNAP_SIZE) = htons(h_proto);
  129. return SNAP_SIZE + sizeof(u16);
  130. }
  131. static inline int ieee80211_encrypt_fragment(struct ieee80211_device *ieee,
  132. struct sk_buff *frag, int hdr_len)
  133. {
  134. struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx];
  135. int res;
  136. if (crypt == NULL)
  137. return -1;
  138. /* To encrypt, frame format is:
  139. * IV (4 bytes), clear payload (including SNAP), ICV (4 bytes) */
  140. atomic_inc(&crypt->refcnt);
  141. res = 0;
  142. if (crypt->ops && crypt->ops->encrypt_mpdu)
  143. res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv);
  144. atomic_dec(&crypt->refcnt);
  145. if (res < 0) {
  146. printk(KERN_INFO "%s: Encryption failed: len=%d.\n",
  147. ieee->dev->name, frag->len);
  148. ieee->ieee_stats.tx_discards++;
  149. return -1;
  150. }
  151. return 0;
  152. }
  153. void ieee80211_txb_free(struct ieee80211_txb *txb)
  154. {
  155. int i;
  156. if (unlikely(!txb))
  157. return;
  158. for (i = 0; i < txb->nr_frags; i++)
  159. if (txb->fragments[i])
  160. dev_kfree_skb_any(txb->fragments[i]);
  161. kfree(txb);
  162. }
  163. static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
  164. int headroom, gfp_t gfp_mask)
  165. {
  166. struct ieee80211_txb *txb;
  167. int i;
  168. txb = kmalloc(sizeof(struct ieee80211_txb) + (sizeof(u8 *) * nr_frags),
  169. gfp_mask);
  170. if (!txb)
  171. return NULL;
  172. memset(txb, 0, sizeof(struct ieee80211_txb));
  173. txb->nr_frags = nr_frags;
  174. txb->frag_size = txb_size;
  175. for (i = 0; i < nr_frags; i++) {
  176. txb->fragments[i] = __dev_alloc_skb(txb_size + headroom,
  177. gfp_mask);
  178. if (unlikely(!txb->fragments[i])) {
  179. i--;
  180. break;
  181. }
  182. skb_reserve(txb->fragments[i], headroom);
  183. }
  184. if (unlikely(i != nr_frags)) {
  185. while (i >= 0)
  186. dev_kfree_skb_any(txb->fragments[i--]);
  187. kfree(txb);
  188. return NULL;
  189. }
  190. return txb;
  191. }
  192. /* Incoming skb is converted to a txb which consists of
  193. * a block of 802.11 fragment packets (stored as skbs) */
  194. int ieee80211_xmit(struct sk_buff *skb, struct net_device *dev)
  195. {
  196. struct ieee80211_device *ieee = netdev_priv(dev);
  197. struct ieee80211_txb *txb = NULL;
  198. struct ieee80211_hdr_3addr *frag_hdr;
  199. int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size,
  200. rts_required;
  201. unsigned long flags;
  202. struct net_device_stats *stats = &ieee->stats;
  203. int ether_type, encrypt, host_encrypt, host_encrypt_msdu, host_build_iv;
  204. int bytes, fc, hdr_len;
  205. struct sk_buff *skb_frag;
  206. struct ieee80211_hdr_3addr header = { /* Ensure zero initialized */
  207. .duration_id = 0,
  208. .seq_ctl = 0
  209. };
  210. u8 dest[ETH_ALEN], src[ETH_ALEN];
  211. struct ieee80211_crypt_data *crypt;
  212. int priority = skb->priority;
  213. int snapped = 0;
  214. if (ieee->is_queue_full && (*ieee->is_queue_full) (dev, priority))
  215. return NETDEV_TX_BUSY;
  216. spin_lock_irqsave(&ieee->lock, flags);
  217. /* If there is no driver handler to take the TXB, dont' bother
  218. * creating it... */
  219. if (!ieee->hard_start_xmit) {
  220. printk(KERN_WARNING "%s: No xmit handler.\n", ieee->dev->name);
  221. goto success;
  222. }
  223. if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) {
  224. printk(KERN_WARNING "%s: skb too small (%d).\n",
  225. ieee->dev->name, skb->len);
  226. goto success;
  227. }
  228. ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
  229. crypt = ieee->crypt[ieee->tx_keyidx];
  230. encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) &&
  231. ieee->sec.encrypt;
  232. host_encrypt = ieee->host_encrypt && encrypt && crypt;
  233. host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt;
  234. host_build_iv = ieee->host_build_iv && encrypt && crypt;
  235. if (!encrypt && ieee->ieee802_1x &&
  236. ieee->drop_unencrypted && ether_type != ETH_P_PAE) {
  237. stats->tx_dropped++;
  238. goto success;
  239. }
  240. /* Save source and destination addresses */
  241. memcpy(dest, skb->data, ETH_ALEN);
  242. memcpy(src, skb->data + ETH_ALEN, ETH_ALEN);
  243. /* Advance the SKB to the start of the payload */
  244. skb_pull(skb, sizeof(struct ethhdr));
  245. /* Determine total amount of storage required for TXB packets */
  246. bytes = skb->len + SNAP_SIZE + sizeof(u16);
  247. if (host_encrypt)
  248. fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA |
  249. IEEE80211_FCTL_PROTECTED;
  250. else
  251. fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA;
  252. if (ieee->iw_mode == IW_MODE_INFRA) {
  253. fc |= IEEE80211_FCTL_TODS;
  254. /* To DS: Addr1 = BSSID, Addr2 = SA, Addr3 = DA */
  255. memcpy(header.addr1, ieee->bssid, ETH_ALEN);
  256. memcpy(header.addr2, src, ETH_ALEN);
  257. memcpy(header.addr3, dest, ETH_ALEN);
  258. } else if (ieee->iw_mode == IW_MODE_ADHOC) {
  259. /* not From/To DS: Addr1 = DA, Addr2 = SA, Addr3 = BSSID */
  260. memcpy(header.addr1, dest, ETH_ALEN);
  261. memcpy(header.addr2, src, ETH_ALEN);
  262. memcpy(header.addr3, ieee->bssid, ETH_ALEN);
  263. }
  264. header.frame_ctl = cpu_to_le16(fc);
  265. hdr_len = IEEE80211_3ADDR_LEN;
  266. /* Encrypt msdu first on the whole data packet. */
  267. if ((host_encrypt || host_encrypt_msdu) &&
  268. crypt && crypt->ops && crypt->ops->encrypt_msdu) {
  269. int res = 0;
  270. int len = bytes + hdr_len + crypt->ops->extra_msdu_prefix_len +
  271. crypt->ops->extra_msdu_postfix_len;
  272. struct sk_buff *skb_new = dev_alloc_skb(len);
  273. if (unlikely(!skb_new))
  274. goto failed;
  275. skb_reserve(skb_new, crypt->ops->extra_msdu_prefix_len);
  276. memcpy(skb_put(skb_new, hdr_len), &header, hdr_len);
  277. snapped = 1;
  278. ieee80211_copy_snap(skb_put(skb_new, SNAP_SIZE + sizeof(u16)),
  279. ether_type);
  280. memcpy(skb_put(skb_new, skb->len), skb->data, skb->len);
  281. res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv);
  282. if (res < 0) {
  283. IEEE80211_ERROR("msdu encryption failed\n");
  284. dev_kfree_skb_any(skb_new);
  285. goto failed;
  286. }
  287. dev_kfree_skb_any(skb);
  288. skb = skb_new;
  289. bytes += crypt->ops->extra_msdu_prefix_len +
  290. crypt->ops->extra_msdu_postfix_len;
  291. skb_pull(skb, hdr_len);
  292. }
  293. if (host_encrypt || ieee->host_open_frag) {
  294. /* Determine fragmentation size based on destination (multicast
  295. * and broadcast are not fragmented) */
  296. if (is_multicast_ether_addr(dest) ||
  297. is_broadcast_ether_addr(dest))
  298. frag_size = MAX_FRAG_THRESHOLD;
  299. else
  300. frag_size = ieee->fts;
  301. /* Determine amount of payload per fragment. Regardless of if
  302. * this stack is providing the full 802.11 header, one will
  303. * eventually be affixed to this fragment -- so we must account
  304. * for it when determining the amount of payload space. */
  305. bytes_per_frag = frag_size - IEEE80211_3ADDR_LEN;
  306. if (ieee->config &
  307. (CFG_IEEE80211_COMPUTE_FCS | CFG_IEEE80211_RESERVE_FCS))
  308. bytes_per_frag -= IEEE80211_FCS_LEN;
  309. /* Each fragment may need to have room for encryptiong
  310. * pre/postfix */
  311. if (host_encrypt)
  312. bytes_per_frag -= crypt->ops->extra_mpdu_prefix_len +
  313. crypt->ops->extra_mpdu_postfix_len;
  314. /* Number of fragments is the total
  315. * bytes_per_frag / payload_per_fragment */
  316. nr_frags = bytes / bytes_per_frag;
  317. bytes_last_frag = bytes % bytes_per_frag;
  318. if (bytes_last_frag)
  319. nr_frags++;
  320. else
  321. bytes_last_frag = bytes_per_frag;
  322. } else {
  323. nr_frags = 1;
  324. bytes_per_frag = bytes_last_frag = bytes;
  325. frag_size = bytes + IEEE80211_3ADDR_LEN;
  326. }
  327. rts_required = (frag_size > ieee->rts
  328. && ieee->config & CFG_IEEE80211_RTS);
  329. if (rts_required)
  330. nr_frags++;
  331. /* When we allocate the TXB we allocate enough space for the reserve
  332. * and full fragment bytes (bytes_per_frag doesn't include prefix,
  333. * postfix, header, FCS, etc.) */
  334. txb = ieee80211_alloc_txb(nr_frags, frag_size,
  335. ieee->tx_headroom, GFP_ATOMIC);
  336. if (unlikely(!txb)) {
  337. printk(KERN_WARNING "%s: Could not allocate TXB\n",
  338. ieee->dev->name);
  339. goto failed;
  340. }
  341. txb->encrypted = encrypt;
  342. if (host_encrypt)
  343. txb->payload_size = frag_size * (nr_frags - 1) +
  344. bytes_last_frag;
  345. else
  346. txb->payload_size = bytes;
  347. if (rts_required) {
  348. skb_frag = txb->fragments[0];
  349. frag_hdr =
  350. (struct ieee80211_hdr_3addr *)skb_put(skb_frag, hdr_len);
  351. /*
  352. * Set header frame_ctl to the RTS.
  353. */
  354. header.frame_ctl =
  355. cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS);
  356. memcpy(frag_hdr, &header, hdr_len);
  357. /*
  358. * Restore header frame_ctl to the original data setting.
  359. */
  360. header.frame_ctl = cpu_to_le16(fc);
  361. if (ieee->config &
  362. (CFG_IEEE80211_COMPUTE_FCS | CFG_IEEE80211_RESERVE_FCS))
  363. skb_put(skb_frag, 4);
  364. txb->rts_included = 1;
  365. i = 1;
  366. } else
  367. i = 0;
  368. for (; i < nr_frags; i++) {
  369. skb_frag = txb->fragments[i];
  370. if (host_encrypt || host_build_iv)
  371. skb_reserve(skb_frag,
  372. crypt->ops->extra_mpdu_prefix_len);
  373. frag_hdr =
  374. (struct ieee80211_hdr_3addr *)skb_put(skb_frag, hdr_len);
  375. memcpy(frag_hdr, &header, hdr_len);
  376. /* If this is not the last fragment, then add the MOREFRAGS
  377. * bit to the frame control */
  378. if (i != nr_frags - 1) {
  379. frag_hdr->frame_ctl =
  380. cpu_to_le16(fc | IEEE80211_FCTL_MOREFRAGS);
  381. bytes = bytes_per_frag;
  382. } else {
  383. /* The last fragment takes the remaining length */
  384. bytes = bytes_last_frag;
  385. }
  386. if (i == 0 && !snapped) {
  387. ieee80211_copy_snap(skb_put
  388. (skb_frag, SNAP_SIZE + sizeof(u16)),
  389. ether_type);
  390. bytes -= SNAP_SIZE + sizeof(u16);
  391. }
  392. memcpy(skb_put(skb_frag, bytes), skb->data, bytes);
  393. /* Advance the SKB... */
  394. skb_pull(skb, bytes);
  395. /* Encryption routine will move the header forward in order
  396. * to insert the IV between the header and the payload */
  397. if (host_encrypt)
  398. ieee80211_encrypt_fragment(ieee, skb_frag, hdr_len);
  399. else if (host_build_iv) {
  400. struct ieee80211_crypt_data *crypt;
  401. crypt = ieee->crypt[ieee->tx_keyidx];
  402. atomic_inc(&crypt->refcnt);
  403. if (crypt->ops->build_iv)
  404. crypt->ops->build_iv(skb_frag, hdr_len,
  405. crypt->priv);
  406. atomic_dec(&crypt->refcnt);
  407. }
  408. if (ieee->config &
  409. (CFG_IEEE80211_COMPUTE_FCS | CFG_IEEE80211_RESERVE_FCS))
  410. skb_put(skb_frag, 4);
  411. }
  412. success:
  413. spin_unlock_irqrestore(&ieee->lock, flags);
  414. dev_kfree_skb_any(skb);
  415. if (txb) {
  416. int ret = (*ieee->hard_start_xmit) (txb, dev, priority);
  417. if (ret == 0) {
  418. stats->tx_packets++;
  419. stats->tx_bytes += txb->payload_size;
  420. return 0;
  421. }
  422. if (ret == NETDEV_TX_BUSY) {
  423. printk(KERN_ERR "%s: NETDEV_TX_BUSY returned; "
  424. "driver should report queue full via "
  425. "ieee_device->is_queue_full.\n",
  426. ieee->dev->name);
  427. }
  428. ieee80211_txb_free(txb);
  429. }
  430. return 0;
  431. failed:
  432. spin_unlock_irqrestore(&ieee->lock, flags);
  433. netif_stop_queue(dev);
  434. stats->tx_errors++;
  435. return 1;
  436. }
  437. /* Incoming 802.11 strucure is converted to a TXB
  438. * a block of 802.11 fragment packets (stored as skbs) */
  439. int ieee80211_tx_frame(struct ieee80211_device *ieee,
  440. struct ieee80211_hdr *frame, int len)
  441. {
  442. struct ieee80211_txb *txb = NULL;
  443. unsigned long flags;
  444. struct net_device_stats *stats = &ieee->stats;
  445. struct sk_buff *skb_frag;
  446. int priority = -1;
  447. spin_lock_irqsave(&ieee->lock, flags);
  448. /* If there is no driver handler to take the TXB, dont' bother
  449. * creating it... */
  450. if (!ieee->hard_start_xmit) {
  451. printk(KERN_WARNING "%s: No xmit handler.\n", ieee->dev->name);
  452. goto success;
  453. }
  454. if (unlikely(len < 24)) {
  455. printk(KERN_WARNING "%s: skb too small (%d).\n",
  456. ieee->dev->name, len);
  457. goto success;
  458. }
  459. /* When we allocate the TXB we allocate enough space for the reserve
  460. * and full fragment bytes (bytes_per_frag doesn't include prefix,
  461. * postfix, header, FCS, etc.) */
  462. txb = ieee80211_alloc_txb(1, len, ieee->tx_headroom, GFP_ATOMIC);
  463. if (unlikely(!txb)) {
  464. printk(KERN_WARNING "%s: Could not allocate TXB\n",
  465. ieee->dev->name);
  466. goto failed;
  467. }
  468. txb->encrypted = 0;
  469. txb->payload_size = len;
  470. skb_frag = txb->fragments[0];
  471. memcpy(skb_put(skb_frag, len), frame, len);
  472. if (ieee->config &
  473. (CFG_IEEE80211_COMPUTE_FCS | CFG_IEEE80211_RESERVE_FCS))
  474. skb_put(skb_frag, 4);
  475. success:
  476. spin_unlock_irqrestore(&ieee->lock, flags);
  477. if (txb) {
  478. if ((*ieee->hard_start_xmit) (txb, ieee->dev, priority) == 0) {
  479. stats->tx_packets++;
  480. stats->tx_bytes += txb->payload_size;
  481. return 0;
  482. }
  483. ieee80211_txb_free(txb);
  484. }
  485. return 0;
  486. failed:
  487. spin_unlock_irqrestore(&ieee->lock, flags);
  488. stats->tx_errors++;
  489. return 1;
  490. }
  491. EXPORT_SYMBOL(ieee80211_tx_frame);
  492. EXPORT_SYMBOL(ieee80211_txb_free);