aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-01-14 16:32:14 +0200
committerJouni Malinen <j@w1.fi>2011-01-14 16:32:14 +0200
commitef44a08beaac59f78296542893eacab2e2abb57b (patch)
tree212f5bd5d72e8fb4c64873981557bc37395c1620 /wlantest
parent449adbaca9eaa36acb07d590ebeb0240bf86b423 (diff)
downloadexternal_wpa_supplicant_8_ti-ef44a08beaac59f78296542893eacab2e2abb57b.zip
external_wpa_supplicant_8_ti-ef44a08beaac59f78296542893eacab2e2abb57b.tar.gz
external_wpa_supplicant_8_ti-ef44a08beaac59f78296542893eacab2e2abb57b.tar.bz2
wlantest: Fix masking of CCMP AAD QC field
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/ccmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wlantest/ccmp.c b/wlantest/ccmp.c
index c632e39..31be756 100644
--- 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;
}