wlantest: Fix Mgmt CCMP replay detection to use correct PN offset
This commit is contained in:
parent
0819b65b17
commit
30febd7001
1 changed files with 1 additions and 1 deletions
|
@ -686,7 +686,7 @@ static u8 * mgmt_ccmp_decrypt(struct wlantest *wt, const u8 *data, size_t len,
|
||||||
else
|
else
|
||||||
rsc = sta->rsc_fromds[16];
|
rsc = sta->rsc_fromds[16];
|
||||||
|
|
||||||
ccmp_get_pn(pn, data);
|
ccmp_get_pn(pn, data + 24);
|
||||||
if (os_memcmp(pn, rsc, 6) <= 0) {
|
if (os_memcmp(pn, rsc, 6) <= 0) {
|
||||||
wpa_printf(MSG_INFO, "CCMP/TKIP replay detected: SA=" MACSTR,
|
wpa_printf(MSG_INFO, "CCMP/TKIP replay detected: SA=" MACSTR,
|
||||||
MAC2STR(hdr->addr2));
|
MAC2STR(hdr->addr2));
|
||||||
|
|
Loading…
Reference in a new issue