wlantest: Fix masking of CCMP AAD QC field
This commit is contained in:
parent
449adbaca9
commit
ef44a08bea
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
os_memcpy(pos, hdr + 1, addr4 * ETH_ALEN + qos * 2);
|
||||||
pos += addr4 * ETH_ALEN;
|
pos += addr4 * ETH_ALEN;
|
||||||
if (qos) {
|
if (qos) {
|
||||||
pos[0] &= 0x70;
|
pos[0] &= ~0x70;
|
||||||
if (1 /* FIX: either device has SPP A-MSDU Capab = 0 */)
|
if (1 /* FIX: either device has SPP A-MSDU Capab = 0 */)
|
||||||
pos[0] &= 0x80;
|
pos[0] &= ~0x80;
|
||||||
pos++;
|
pos++;
|
||||||
*pos++ = 0x00;
|
*pos++ = 0x00;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue