aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_mgmt.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-13 11:03:21 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-13 11:03:21 (GMT)
commit16b8b6eadf20a5dae655cd7523dae3a56ff77eaf (patch)
treedefce021d9b6cbf46f198c563a11d70061382b69 /wlantest/rx_mgmt.c
parent20062114cdd1ae8a456642175430aaf6831352be (diff)
downloadhostap-16b8b6eadf20a5dae655cd7523dae3a56ff77eaf.zip
hostap-16b8b6eadf20a5dae655cd7523dae3a56ff77eaf.tar.gz
hostap-16b8b6eadf20a5dae655cd7523dae3a56ff77eaf.tar.bz2
wlantest: Validate reserved bits in TKIP/CCMP header
Diffstat (limited to 'wlantest/rx_mgmt.c')
-rw-r--r--wlantest/rx_mgmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wlantest/rx_mgmt.c b/wlantest/rx_mgmt.c
index d58c685..27120df 100644
--- a/wlantest/rx_mgmt.c
+++ b/wlantest/rx_mgmt.c
@@ -686,6 +686,11 @@ static u8 * mgmt_ccmp_decrypt(struct wlantest *wt, const u8 *data, size_t len,
return NULL;
}
+ if (data[24 + 2] != 0 || (data[24 + 3] & 0x1f) != 0) {
+ wpa_printf(MSG_INFO, "CCMP mgmt frame from " MACSTR " used "
+ "non-zero reserved bit", MAC2STR(hdr->addr2));
+ }
+
keyid = data[24 + 3] >> 6;
if (keyid != 0) {
wpa_printf(MSG_INFO, "Unexpected non-zero KeyID %d in "