aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_mgmt.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-10 14:59:45 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-10 14:59:45 (GMT)
commit4d4c29158d5e5170041bf85f8a7a76fe8113966c (patch)
tree58c380e41744728ce465c3d0c4aed506a10f1f76 /wlantest/rx_mgmt.c
parentaaca650540cc7b3100f71140d728504e2dfb6085 (diff)
downloadhostap-4d4c29158d5e5170041bf85f8a7a76fe8113966c.zip
hostap-4d4c29158d5e5170041bf85f8a7a76fe8113966c.tar.gz
hostap-4d4c29158d5e5170041bf85f8a7a76fe8113966c.tar.bz2
wlantest: Fix BIP replay detection
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 19d478e..039d85d 100644
--- a/wlantest/rx_mgmt.c
+++ b/wlantest/rx_mgmt.c
@@ -509,7 +509,7 @@ static int check_bip(struct wlantest *wt, const u8 *data, size_t len)
return 0;
}
- if (os_memcmp(mmie + 2, bss->ipn[keyid], 6) >= 0) {
+ if (os_memcmp(mmie + 2, bss->ipn[keyid], 6) <= 0) {
wpa_printf(MSG_INFO, "BIP replay detected: SA=" MACSTR,
MAC2STR(mgmt->sa));
wpa_hexdump(MSG_INFO, "RX IPN", mmie + 2, 6);