aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_mgmt.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-11 19:35:30 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-11 19:35:30 (GMT)
commit30febd7001ac248abd7d111c862ed04c1d11d21d (patch)
tree9756d76bde0b0ba757c6f2201a4319bff3af101b /wlantest/rx_mgmt.c
parent0819b65b1765cce51f4358d8f021723567e85ec8 (diff)
downloadhostap-30febd7001ac248abd7d111c862ed04c1d11d21d.zip
hostap-30febd7001ac248abd7d111c862ed04c1d11d21d.tar.gz
hostap-30febd7001ac248abd7d111c862ed04c1d11d21d.tar.bz2
wlantest: Fix Mgmt CCMP replay detection to use correct PN offset
Diffstat (limited to 'wlantest/rx_mgmt.c')
-rw-r--r--wlantest/rx_mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wlantest/rx_mgmt.c b/wlantest/rx_mgmt.c
index 853b0a7..e00b98a 100644
--- a/wlantest/rx_mgmt.c
+++ b/wlantest/rx_mgmt.c
@@ -686,7 +686,7 @@ static u8 * mgmt_ccmp_decrypt(struct wlantest *wt, const u8 *data, size_t len,
else
rsc = sta->rsc_fromds[16];
- ccmp_get_pn(pn, data);
+ ccmp_get_pn(pn, data + 24);
if (os_memcmp(pn, rsc, 6) <= 0) {
wpa_printf(MSG_INFO, "CCMP/TKIP replay detected: SA=" MACSTR,
MAC2STR(hdr->addr2));