From ffc1774a7aedffcada3c1cdbb9f237a6e88fd49b Mon Sep 17 00:00:00 2001 From: Michele Bigi Date: Wed, 9 Sep 2026 21:03:57 +0200 Subject: [PATCH] Fix STA Wi-Fi join rejected on WPA2-only routers StaClient hardcoded the connection authmode threshold to WIFI_AUTH_WPA2_WPA3_PSK, which ESP-IDF rejects unless the AP itself advertises WPA2/WPA3 transition mode. A plain WPA2-PSK router (no WPA3) was silently refused every retry ("authmode threshold failure") and the device never joined. Lower the threshold to WIFI_AUTH_WPA2_PSK, which still requires a password but accepts WPA2-only APs. Verified over serial monitor: STA joined APUACOM_E10C8E and obtained an IP within ~1s of association, no more disconnect/retry loop. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01LSn46SmzX9hoDPMNWhg6D4 --- Software/components/net/src/StaClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/components/net/src/StaClient.cpp b/Software/components/net/src/StaClient.cpp index e1090f4..2872ebe 100644 --- a/Software/components/net/src/StaClient.cpp +++ b/Software/components/net/src/StaClient.cpp @@ -317,7 +317,7 @@ StaClient::connect(const core::WifiCredentials& creds, if (pwdLen == 0U) { wifiCfg.sta.threshold.authmode = WIFI_AUTH_OPEN; } else { - wifiCfg.sta.threshold.authmode = WIFI_AUTH_WPA2_WPA3_PSK; + wifiCfg.sta.threshold.authmode = WIFI_AUTH_WPA2_PSK; } wifiCfg.sta.pmf_cfg.capable = true; wifiCfg.sta.pmf_cfg.required = false;