diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2011-01-14 16:32:59 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-01-14 16:32:59 +0200 |
commit | 3558c41ee71ff0e34aca47412b33019630c8e922 (patch) | |
tree | eabe69028019b0e0e6ebab6e1affd59da74cf588 /wlantest | |
parent | ef44a08beaac59f78296542893eacab2e2abb57b (diff) | |
download | external_wpa_supplicant_8_ti-3558c41ee71ff0e34aca47412b33019630c8e922.zip external_wpa_supplicant_8_ti-3558c41ee71ff0e34aca47412b33019630c8e922.tar.gz external_wpa_supplicant_8_ti-3558c41ee71ff0e34aca47412b33019630c8e922.tar.bz2 |
wlantest: Add more details for CCMP MIC failures
Diffstat (limited to 'wlantest')
-rw-r--r-- | wlantest/ccmp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/wlantest/ccmp.c b/wlantest/ccmp.c index 31be756..5e51310 100644 --- a/wlantest/ccmp.c +++ b/wlantest/ccmp.c @@ -202,8 +202,14 @@ u8 * ccmp_decrypt(const u8 *tk, const struct ieee80211_hdr *hdr, aes_encrypt_deinit(aes); if (os_memcmp(x, t, 8) != 0) { - wpa_printf(MSG_INFO, "Invalid CCMP MIC in frame from " MACSTR, - MAC2STR(hdr->addr2)); + u16 seq_ctrl = le_to_host16(hdr->seq_ctrl); + wpa_printf(MSG_INFO, "Invalid CCMP MIC in frame: A1=" MACSTR + " A2=" MACSTR " A3=" MACSTR " seq=%u frag=%u", + MAC2STR(hdr->addr1), MAC2STR(hdr->addr2), + MAC2STR(hdr->addr3), + WLAN_GET_SEQ_SEQ(seq_ctrl), + WLAN_GET_SEQ_FRAG(seq_ctrl)); + wpa_hexdump(MSG_DEBUG, "CCMP decrypted", plain, mlen); os_free(plain); return NULL; } |