wpa.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. /*
  2. * Copyright 2002-2004, Instant802 Networks, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #include <linux/netdevice.h>
  9. #include <linux/types.h>
  10. #include <linux/slab.h>
  11. #include <linux/skbuff.h>
  12. #include <linux/compiler.h>
  13. #include <net/mac80211.h>
  14. #include "ieee80211_i.h"
  15. #include "michael.h"
  16. #include "tkip.h"
  17. #include "aes_ccm.h"
  18. #include "wpa.h"
  19. static int ieee80211_get_hdr_info(const struct sk_buff *skb, u8 **sa, u8 **da,
  20. u8 *qos_tid, u8 **data, size_t *data_len)
  21. {
  22. struct ieee80211_hdr *hdr;
  23. size_t hdrlen;
  24. __le16 fc;
  25. hdr = (struct ieee80211_hdr *)skb->data;
  26. fc = hdr->frame_control;
  27. hdrlen = ieee80211_hdrlen(fc);
  28. *sa = ieee80211_get_SA(hdr);
  29. *da = ieee80211_get_DA(hdr);
  30. *data = skb->data + hdrlen;
  31. *data_len = skb->len - hdrlen;
  32. if (ieee80211_is_data_qos(fc))
  33. *qos_tid = (*ieee80211_get_qos_ctl(hdr) & 0x0f) | 0x80;
  34. else
  35. *qos_tid = 0;
  36. return skb->len < hdrlen ? -1 : 0;
  37. }
  38. ieee80211_tx_result
  39. ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx)
  40. {
  41. u8 *data, *sa, *da, *key, *mic, qos_tid, key_offset;
  42. size_t data_len;
  43. u16 fc;
  44. struct sk_buff *skb = tx->skb;
  45. int authenticator;
  46. int wpa_test = 0;
  47. int tail;
  48. fc = tx->fc;
  49. if (!tx->key || tx->key->conf.alg != ALG_TKIP || skb->len < 24 ||
  50. !WLAN_FC_DATA_PRESENT(fc))
  51. return TX_CONTINUE;
  52. if (ieee80211_get_hdr_info(skb, &sa, &da, &qos_tid, &data, &data_len))
  53. return TX_DROP;
  54. if ((tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) &&
  55. !(tx->flags & IEEE80211_TX_FRAGMENTED) &&
  56. !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC) &&
  57. !wpa_test) {
  58. /* hwaccel - with no need for preallocated room for Michael MIC
  59. */
  60. return TX_CONTINUE;
  61. }
  62. tail = MICHAEL_MIC_LEN;
  63. if (!(tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE))
  64. tail += TKIP_ICV_LEN;
  65. if (WARN_ON(skb_tailroom(skb) < tail ||
  66. skb_headroom(skb) < TKIP_IV_LEN))
  67. return TX_DROP;
  68. #if 0
  69. authenticator = fc & IEEE80211_FCTL_FROMDS; /* FIX */
  70. #else
  71. authenticator = 1;
  72. #endif
  73. /* At this point we know we're using ALG_TKIP. To get the MIC key
  74. * we now will rely on the offset from the ieee80211_key_conf::key */
  75. key_offset = authenticator ?
  76. NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY :
  77. NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY;
  78. key = &tx->key->conf.key[key_offset];
  79. mic = skb_put(skb, MICHAEL_MIC_LEN);
  80. michael_mic(key, da, sa, qos_tid & 0x0f, data, data_len, mic);
  81. return TX_CONTINUE;
  82. }
  83. ieee80211_rx_result
  84. ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx)
  85. {
  86. u8 *data, *sa, *da, *key = NULL, qos_tid, key_offset;
  87. size_t data_len;
  88. u16 fc;
  89. u8 mic[MICHAEL_MIC_LEN];
  90. struct sk_buff *skb = rx->skb;
  91. int authenticator = 1, wpa_test = 0;
  92. DECLARE_MAC_BUF(mac);
  93. fc = rx->fc;
  94. /*
  95. * No way to verify the MIC if the hardware stripped it
  96. */
  97. if (rx->status->flag & RX_FLAG_MMIC_STRIPPED)
  98. return RX_CONTINUE;
  99. if (!rx->key || rx->key->conf.alg != ALG_TKIP ||
  100. !(rx->fc & IEEE80211_FCTL_PROTECTED) || !WLAN_FC_DATA_PRESENT(fc))
  101. return RX_CONTINUE;
  102. if (ieee80211_get_hdr_info(skb, &sa, &da, &qos_tid, &data, &data_len)
  103. || data_len < MICHAEL_MIC_LEN)
  104. return RX_DROP_UNUSABLE;
  105. data_len -= MICHAEL_MIC_LEN;
  106. #if 0
  107. authenticator = fc & IEEE80211_FCTL_TODS; /* FIX */
  108. #else
  109. authenticator = 1;
  110. #endif
  111. /* At this point we know we're using ALG_TKIP. To get the MIC key
  112. * we now will rely on the offset from the ieee80211_key_conf::key */
  113. key_offset = authenticator ?
  114. NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY :
  115. NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY;
  116. key = &rx->key->conf.key[key_offset];
  117. michael_mic(key, da, sa, qos_tid & 0x0f, data, data_len, mic);
  118. if (memcmp(mic, data + data_len, MICHAEL_MIC_LEN) != 0 || wpa_test) {
  119. if (!(rx->flags & IEEE80211_RX_RA_MATCH))
  120. return RX_DROP_UNUSABLE;
  121. printk(KERN_DEBUG "%s: invalid Michael MIC in data frame from "
  122. "%s\n", rx->dev->name, print_mac(mac, sa));
  123. mac80211_ev_michael_mic_failure(rx->dev, rx->key->conf.keyidx,
  124. (void *) skb->data);
  125. return RX_DROP_UNUSABLE;
  126. }
  127. /* remove Michael MIC from payload */
  128. skb_trim(skb, skb->len - MICHAEL_MIC_LEN);
  129. /* update IV in key information to be able to detect replays */
  130. rx->key->u.tkip.rx[rx->queue].iv32 = rx->tkip_iv32;
  131. rx->key->u.tkip.rx[rx->queue].iv16 = rx->tkip_iv16;
  132. return RX_CONTINUE;
  133. }
  134. static int tkip_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb)
  135. {
  136. struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
  137. struct ieee80211_key *key = tx->key;
  138. struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
  139. unsigned int hdrlen;
  140. int len, tail;
  141. u8 *pos;
  142. info->control.icv_len = TKIP_ICV_LEN;
  143. info->control.iv_len = TKIP_IV_LEN;
  144. if ((tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) &&
  145. !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) {
  146. /* hwaccel - with no need for preallocated room for IV/ICV */
  147. info->control.hw_key = &tx->key->conf;
  148. return 0;
  149. }
  150. hdrlen = ieee80211_hdrlen(hdr->frame_control);
  151. len = skb->len - hdrlen;
  152. if (tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE)
  153. tail = 0;
  154. else
  155. tail = TKIP_ICV_LEN;
  156. if (WARN_ON(skb_tailroom(skb) < tail ||
  157. skb_headroom(skb) < TKIP_IV_LEN))
  158. return -1;
  159. pos = skb_push(skb, TKIP_IV_LEN);
  160. memmove(pos, pos + TKIP_IV_LEN, hdrlen);
  161. pos += hdrlen;
  162. /* Increase IV for the frame */
  163. key->u.tkip.tx.iv16++;
  164. if (key->u.tkip.tx.iv16 == 0)
  165. key->u.tkip.tx.iv32++;
  166. if (tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) {
  167. /* hwaccel - with preallocated room for IV */
  168. ieee80211_tkip_add_iv(pos, key, key->u.tkip.tx.iv16);
  169. info->control.hw_key = &tx->key->conf;
  170. return 0;
  171. }
  172. /* Add room for ICV */
  173. skb_put(skb, TKIP_ICV_LEN);
  174. hdr = (struct ieee80211_hdr *) skb->data;
  175. ieee80211_tkip_encrypt_data(tx->local->wep_tx_tfm,
  176. key, pos, len, hdr->addr2);
  177. return 0;
  178. }
  179. ieee80211_tx_result
  180. ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx)
  181. {
  182. struct sk_buff *skb = tx->skb;
  183. ieee80211_tx_set_protected(tx);
  184. if (tkip_encrypt_skb(tx, skb) < 0)
  185. return TX_DROP;
  186. if (tx->extra_frag) {
  187. int i;
  188. for (i = 0; i < tx->num_extra_frag; i++) {
  189. if (tkip_encrypt_skb(tx, tx->extra_frag[i]) < 0)
  190. return TX_DROP;
  191. }
  192. }
  193. return TX_CONTINUE;
  194. }
  195. ieee80211_rx_result
  196. ieee80211_crypto_tkip_decrypt(struct ieee80211_rx_data *rx)
  197. {
  198. struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) rx->skb->data;
  199. int hdrlen, res, hwaccel = 0, wpa_test = 0;
  200. struct ieee80211_key *key = rx->key;
  201. struct sk_buff *skb = rx->skb;
  202. DECLARE_MAC_BUF(mac);
  203. hdrlen = ieee80211_hdrlen(hdr->frame_control);
  204. if ((rx->fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA)
  205. return RX_CONTINUE;
  206. if (!rx->sta || skb->len - hdrlen < 12)
  207. return RX_DROP_UNUSABLE;
  208. if (rx->status->flag & RX_FLAG_DECRYPTED) {
  209. if (rx->status->flag & RX_FLAG_IV_STRIPPED) {
  210. /*
  211. * Hardware took care of all processing, including
  212. * replay protection, and stripped the ICV/IV so
  213. * we cannot do any checks here.
  214. */
  215. return RX_CONTINUE;
  216. }
  217. /* let TKIP code verify IV, but skip decryption */
  218. hwaccel = 1;
  219. }
  220. res = ieee80211_tkip_decrypt_data(rx->local->wep_rx_tfm,
  221. key, skb->data + hdrlen,
  222. skb->len - hdrlen, rx->sta->addr,
  223. hdr->addr1, hwaccel, rx->queue,
  224. &rx->tkip_iv32,
  225. &rx->tkip_iv16);
  226. if (res != TKIP_DECRYPT_OK || wpa_test) {
  227. #ifdef CONFIG_MAC80211_DEBUG
  228. if (net_ratelimit())
  229. printk(KERN_DEBUG "%s: TKIP decrypt failed for RX "
  230. "frame from %s (res=%d)\n", rx->dev->name,
  231. print_mac(mac, rx->sta->addr), res);
  232. #endif /* CONFIG_MAC80211_DEBUG */
  233. return RX_DROP_UNUSABLE;
  234. }
  235. /* Trim ICV */
  236. skb_trim(skb, skb->len - TKIP_ICV_LEN);
  237. /* Remove IV */
  238. memmove(skb->data + TKIP_IV_LEN, skb->data, hdrlen);
  239. skb_pull(skb, TKIP_IV_LEN);
  240. return RX_CONTINUE;
  241. }
  242. static void ccmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *b_0, u8 *aad,
  243. int encrypted)
  244. {
  245. u16 fc;
  246. int a4_included, qos_included;
  247. u8 qos_tid, *fc_pos, *data, *sa, *da;
  248. int len_a;
  249. size_t data_len;
  250. struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
  251. fc_pos = (u8 *) &hdr->frame_control;
  252. fc = fc_pos[0] ^ (fc_pos[1] << 8);
  253. a4_included = (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) ==
  254. (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS);
  255. ieee80211_get_hdr_info(skb, &sa, &da, &qos_tid, &data, &data_len);
  256. data_len -= CCMP_HDR_LEN + (encrypted ? CCMP_MIC_LEN : 0);
  257. if (qos_tid & 0x80) {
  258. qos_included = 1;
  259. qos_tid &= 0x0f;
  260. } else
  261. qos_included = 0;
  262. /* First block, b_0 */
  263. b_0[0] = 0x59; /* flags: Adata: 1, M: 011, L: 001 */
  264. /* Nonce: QoS Priority | A2 | PN */
  265. b_0[1] = qos_tid;
  266. memcpy(&b_0[2], hdr->addr2, 6);
  267. memcpy(&b_0[8], pn, CCMP_PN_LEN);
  268. /* l(m) */
  269. b_0[14] = (data_len >> 8) & 0xff;
  270. b_0[15] = data_len & 0xff;
  271. /* AAD (extra authenticate-only data) / masked 802.11 header
  272. * FC | A1 | A2 | A3 | SC | [A4] | [QC] */
  273. len_a = a4_included ? 28 : 22;
  274. if (qos_included)
  275. len_a += 2;
  276. aad[0] = 0; /* (len_a >> 8) & 0xff; */
  277. aad[1] = len_a & 0xff;
  278. /* Mask FC: zero subtype b4 b5 b6 */
  279. aad[2] = fc_pos[0] & ~(BIT(4) | BIT(5) | BIT(6));
  280. /* Retry, PwrMgt, MoreData; set Protected */
  281. aad[3] = (fc_pos[1] & ~(BIT(3) | BIT(4) | BIT(5))) | BIT(6);
  282. memcpy(&aad[4], &hdr->addr1, 18);
  283. /* Mask Seq#, leave Frag# */
  284. aad[22] = *((u8 *) &hdr->seq_ctrl) & 0x0f;
  285. aad[23] = 0;
  286. if (a4_included) {
  287. memcpy(&aad[24], hdr->addr4, 6);
  288. aad[30] = 0;
  289. aad[31] = 0;
  290. } else
  291. memset(&aad[24], 0, 8);
  292. if (qos_included) {
  293. u8 *dpos = &aad[a4_included ? 30 : 24];
  294. /* Mask QoS Control field */
  295. dpos[0] = qos_tid;
  296. dpos[1] = 0;
  297. }
  298. }
  299. static inline void ccmp_pn2hdr(u8 *hdr, u8 *pn, int key_id)
  300. {
  301. hdr[0] = pn[5];
  302. hdr[1] = pn[4];
  303. hdr[2] = 0;
  304. hdr[3] = 0x20 | (key_id << 6);
  305. hdr[4] = pn[3];
  306. hdr[5] = pn[2];
  307. hdr[6] = pn[1];
  308. hdr[7] = pn[0];
  309. }
  310. static inline int ccmp_hdr2pn(u8 *pn, u8 *hdr)
  311. {
  312. pn[0] = hdr[7];
  313. pn[1] = hdr[6];
  314. pn[2] = hdr[5];
  315. pn[3] = hdr[4];
  316. pn[4] = hdr[1];
  317. pn[5] = hdr[0];
  318. return (hdr[3] >> 6) & 0x03;
  319. }
  320. static int ccmp_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb)
  321. {
  322. struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
  323. struct ieee80211_key *key = tx->key;
  324. struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
  325. int hdrlen, len, tail;
  326. u8 *pos, *pn, *b_0, *aad, *scratch;
  327. int i;
  328. info->control.icv_len = CCMP_MIC_LEN;
  329. info->control.iv_len = CCMP_HDR_LEN;
  330. if ((tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) &&
  331. !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) {
  332. /* hwaccel - with no need for preallocated room for CCMP "
  333. * header or MIC fields */
  334. info->control.hw_key = &tx->key->conf;
  335. return 0;
  336. }
  337. scratch = key->u.ccmp.tx_crypto_buf;
  338. b_0 = scratch + 3 * AES_BLOCK_LEN;
  339. aad = scratch + 4 * AES_BLOCK_LEN;
  340. hdrlen = ieee80211_hdrlen(hdr->frame_control);
  341. len = skb->len - hdrlen;
  342. if (key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE)
  343. tail = 0;
  344. else
  345. tail = CCMP_MIC_LEN;
  346. if (WARN_ON(skb_tailroom(skb) < tail ||
  347. skb_headroom(skb) < CCMP_HDR_LEN))
  348. return -1;
  349. pos = skb_push(skb, CCMP_HDR_LEN);
  350. memmove(pos, pos + CCMP_HDR_LEN, hdrlen);
  351. hdr = (struct ieee80211_hdr *) pos;
  352. pos += hdrlen;
  353. /* PN = PN + 1 */
  354. pn = key->u.ccmp.tx_pn;
  355. for (i = CCMP_PN_LEN - 1; i >= 0; i--) {
  356. pn[i]++;
  357. if (pn[i])
  358. break;
  359. }
  360. ccmp_pn2hdr(pos, pn, key->conf.keyidx);
  361. if (key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) {
  362. /* hwaccel - with preallocated room for CCMP header */
  363. info->control.hw_key = &tx->key->conf;
  364. return 0;
  365. }
  366. pos += CCMP_HDR_LEN;
  367. ccmp_special_blocks(skb, pn, b_0, aad, 0);
  368. ieee80211_aes_ccm_encrypt(key->u.ccmp.tfm, scratch, b_0, aad, pos, len,
  369. pos, skb_put(skb, CCMP_MIC_LEN));
  370. return 0;
  371. }
  372. ieee80211_tx_result
  373. ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx)
  374. {
  375. struct sk_buff *skb = tx->skb;
  376. ieee80211_tx_set_protected(tx);
  377. if (ccmp_encrypt_skb(tx, skb) < 0)
  378. return TX_DROP;
  379. if (tx->extra_frag) {
  380. int i;
  381. for (i = 0; i < tx->num_extra_frag; i++) {
  382. if (ccmp_encrypt_skb(tx, tx->extra_frag[i]) < 0)
  383. return TX_DROP;
  384. }
  385. }
  386. return TX_CONTINUE;
  387. }
  388. ieee80211_rx_result
  389. ieee80211_crypto_ccmp_decrypt(struct ieee80211_rx_data *rx)
  390. {
  391. struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) rx->skb->data;
  392. int hdrlen;
  393. struct ieee80211_key *key = rx->key;
  394. struct sk_buff *skb = rx->skb;
  395. u8 pn[CCMP_PN_LEN];
  396. int data_len;
  397. DECLARE_MAC_BUF(mac);
  398. hdrlen = ieee80211_hdrlen(hdr->frame_control);
  399. if ((rx->fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA)
  400. return RX_CONTINUE;
  401. data_len = skb->len - hdrlen - CCMP_HDR_LEN - CCMP_MIC_LEN;
  402. if (!rx->sta || data_len < 0)
  403. return RX_DROP_UNUSABLE;
  404. if ((rx->status->flag & RX_FLAG_DECRYPTED) &&
  405. (rx->status->flag & RX_FLAG_IV_STRIPPED))
  406. return RX_CONTINUE;
  407. (void) ccmp_hdr2pn(pn, skb->data + hdrlen);
  408. if (memcmp(pn, key->u.ccmp.rx_pn[rx->queue], CCMP_PN_LEN) <= 0) {
  409. #ifdef CONFIG_MAC80211_DEBUG
  410. u8 *ppn = key->u.ccmp.rx_pn[rx->queue];
  411. printk(KERN_DEBUG "%s: CCMP replay detected for RX frame from "
  412. "%s (RX PN %02x%02x%02x%02x%02x%02x <= prev. PN "
  413. "%02x%02x%02x%02x%02x%02x)\n", rx->dev->name,
  414. print_mac(mac, rx->sta->addr),
  415. pn[0], pn[1], pn[2], pn[3], pn[4], pn[5],
  416. ppn[0], ppn[1], ppn[2], ppn[3], ppn[4], ppn[5]);
  417. #endif /* CONFIG_MAC80211_DEBUG */
  418. key->u.ccmp.replays++;
  419. return RX_DROP_UNUSABLE;
  420. }
  421. if (!(rx->status->flag & RX_FLAG_DECRYPTED)) {
  422. /* hardware didn't decrypt/verify MIC */
  423. u8 *scratch, *b_0, *aad;
  424. scratch = key->u.ccmp.rx_crypto_buf;
  425. b_0 = scratch + 3 * AES_BLOCK_LEN;
  426. aad = scratch + 4 * AES_BLOCK_LEN;
  427. ccmp_special_blocks(skb, pn, b_0, aad, 1);
  428. if (ieee80211_aes_ccm_decrypt(
  429. key->u.ccmp.tfm, scratch, b_0, aad,
  430. skb->data + hdrlen + CCMP_HDR_LEN, data_len,
  431. skb->data + skb->len - CCMP_MIC_LEN,
  432. skb->data + hdrlen + CCMP_HDR_LEN)) {
  433. #ifdef CONFIG_MAC80211_DEBUG
  434. if (net_ratelimit())
  435. printk(KERN_DEBUG "%s: CCMP decrypt failed "
  436. "for RX frame from %s\n", rx->dev->name,
  437. print_mac(mac, rx->sta->addr));
  438. #endif /* CONFIG_MAC80211_DEBUG */
  439. return RX_DROP_UNUSABLE;
  440. }
  441. }
  442. memcpy(key->u.ccmp.rx_pn[rx->queue], pn, CCMP_PN_LEN);
  443. /* Remove CCMP header and MIC */
  444. skb_trim(skb, skb->len - CCMP_MIC_LEN);
  445. memmove(skb->data + CCMP_HDR_LEN, skb->data, hdrlen);
  446. skb_pull(skb, CCMP_HDR_LEN);
  447. return RX_CONTINUE;
  448. }