]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Print EAPOL-Key Replay Counter in Authenticator debug log
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 21 Nov 2014 13:35:19 +0000 (15:35 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 21 Nov 2014 13:35:19 +0000 (15:35 +0200)
This makes it easier to debug issues relared to EAPOL-Key
retransmissions.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wpa_auth.c

index 6d3c52bcf0e3bac643c4b420314a35f4b44078ea..334d5836d8a77fee0d7a52e8d849ffeeadccc3fe 100644 (file)
@@ -1384,6 +1384,8 @@ void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
        inc_byte_array(sm->key_replay[0].counter, WPA_REPLAY_COUNTER_LEN);
        os_memcpy(key->replay_counter, sm->key_replay[0].counter,
                  WPA_REPLAY_COUNTER_LEN);
+       wpa_hexdump(MSG_DEBUG, "WPA: Replay Counter",
+                   key->replay_counter, WPA_REPLAY_COUNTER_LEN);
        sm->key_replay[0].valid = TRUE;
 
        if (nonce)