From: Jouni Malinen Date: Thu, 11 Nov 2010 19:35:30 +0000 (+0200) Subject: wlantest: Fix Mgmt CCMP replay detection to use correct PN offset X-Git-Tag: hostap-1-bp~846 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30febd7001ac248abd7d111c862ed04c1d11d21d;p=thirdparty%2Fhostap.git wlantest: Fix Mgmt CCMP replay detection to use correct PN offset --- diff --git a/wlantest/rx_mgmt.c b/wlantest/rx_mgmt.c index 853b0a7cb..e00b98ae5 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));