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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LSn46SmzX9hoDPMNWhg6D4
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user