projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
449adba
)
wlantest: Fix masking of CCMP AAD QC field
author
Jouni Malinen
<jouni.malinen@atheros.com>
Fri, 14 Jan 2011 14:32:14 +0000
(16:32 +0200)
committer
Jouni Malinen
<j@w1.fi>
Fri, 14 Jan 2011 14:32:14 +0000
(16:32 +0200)
wlantest/ccmp.c
patch
|
blob
|
history
diff --git
a/wlantest/ccmp.c
b/wlantest/ccmp.c
index
c632e39
..
31be756
100644
(file)
--- a/
wlantest/ccmp.c
+++ b/
wlantest/ccmp.c
@@
-63,9
+63,9
@@
static void ccmp_aad_nonce(const struct ieee80211_hdr *hdr, const u8 *data,
os_memcpy(pos, hdr + 1, addr4 * ETH_ALEN + qos * 2);
pos += addr4 * ETH_ALEN;
if (qos) {
- pos[0] &= 0x70;
+ pos[0] &=
~
0x70;
if (1 /* FIX: either device has SPP A-MSDU Capab = 0 */)
- pos[0] &= 0x80;
+ pos[0] &=
~
0x80;
pos++;
*pos++ = 0x00;
}