]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Report EAPOL-RX events for testing purposes
authorJouni Malinen <jouni@codeaurora.org>
Sat, 30 Jan 2021 09:42:04 +0000 (11:42 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 11 May 2021 18:13:56 +0000 (21:13 +0300)
This makes it more convenient to track EAPOL frame reception from an
external test script.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wpa_supplicant.c

index aed576c0bf67d99cf10c39a9b23a9ee5227c597b..57cbe0647c83e1c4e557144ef3cc2224044f1d7b 100644 (file)
@@ -4780,6 +4780,8 @@ void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr,
        }
 
 #ifdef CONFIG_TESTING_OPTIONS
+       wpa_msg_ctrl(wpa_s, MSG_INFO, "EAPOL-RX " MACSTR " %zu",
+                    MAC2STR(src_addr), len);
        if (wpa_s->ignore_auth_resp) {
                wpa_printf(MSG_INFO, "RX EAPOL - ignore_auth_resp active!");
                return;