[PATCH] SAE: Clear anti-clogging token on authentication timeout
Gustavo Bertoli
gubertoli at gmail.com
Wed Nov 11 08:50:57 PST 2026
When sme_auth_timer expires, sme_deauth() does not clear the stored
anti-clogging token, so the next attempt sends it again. hostapd accepts
a token only once and silently drops a commit with an invalid token, so
every retry times out. Clear the token here, as is already done when the
driver reports the authentication timeout.
Signed-off-by: Gustavo Bertoli <gubertoli at gmail.com>
---
wpa_supplicant/sme.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 92b84649f..e1cf60ba4 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -6257,6 +6257,10 @@ static void sme_auth_timer(void *eloop_ctx, void *timeout_ctx)
struct wpa_supplicant *wpa_s = eloop_ctx;
if (wpa_s->wpa_state == WPA_AUTHENTICATING) {
wpa_msg(wpa_s, MSG_DEBUG, "SME: Authentication timeout");
+#ifdef CONFIG_SAE
+ wpabuf_free(wpa_s->sme.sae_token);
+ wpa_s->sme.sae_token = NULL;
+#endif /* CONFIG_SAE */
sme_deauth(wpa_s, NULL);
}
}
--
2.43.0
More information about the Hostap
mailing list