From 7d2302f878c72b3474adc89971af659c2a7b1212 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 1 Feb 2021 17:08:52 +0200 Subject: [PATCH] Add EAPOL-4WAY-HS-COMPLETED indication to AP This makes it easier for test scripts to track completion of 4-way handshake from hostapd, e.g., when going through PTK rekeying. 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 9655cd522..83805681e 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -3694,6 +3694,8 @@ SM_STATE(WPA_PTK, PTKINITDONE) wpa_auth_vlogger(sm->wpa_auth, sm->addr, LOGGER_INFO, "pairwise key handshake completed (%s)", sm->wpa == WPA_VERSION_WPA ? "WPA" : "RSN"); + wpa_msg(sm->wpa_auth->conf.msg_ctx, MSG_INFO, "EAPOL-4WAY-HS-COMPLETED " + MACSTR, MAC2STR(sm->addr)); #ifdef CONFIG_IEEE80211R_AP wpa_ft_push_pmk_r1(sm->wpa_auth, sm->addr);