Report EAPOL-RX events for testing purposes

This makes it more convenient to track EAPOL frame reception from an
external test script.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2021-01-30 11:42:04 +02:00 committed by Jouni Malinen
parent 04283cf36b
commit 7f0a2e4225

View file

@ -4780,6 +4780,8 @@ void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr,
} }
#ifdef CONFIG_TESTING_OPTIONS #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) { if (wpa_s->ignore_auth_resp) {
wpa_printf(MSG_INFO, "RX EAPOL - ignore_auth_resp active!"); wpa_printf(MSG_INFO, "RX EAPOL - ignore_auth_resp active!");
return; return;