From db099951cb35daff8dbab0215c719d9a763ced6f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 21 Nov 2014 15:35:19 +0200 Subject: [PATCH] Print EAPOL-Key Replay Counter in Authenticator debug log This makes it easier to debug issues relared to EAPOL-Key retransmissions. Signed-off-by: Jouni Malinen --- src/ap/wpa_auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index 6d3c52bcf..334d5836d 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -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)