esp32s3/wifi: Fix Wi-Fi connection to WPA3-SAE APs.

This commit fix the connection issues while trying to connect to
WPA3-SAE-secured Access Points (APs).
This commit is contained in:
Tiago Medicci Serrano 2024-01-10 16:38:30 -03:00 committed by Petro Karashchenko
parent f221878204
commit 8fb05d44bc

View File

@ -5125,6 +5125,7 @@ int esp_wifi_sta_essid(struct iwreq *iwr, bool set)
{
memset(wifi_cfg.sta.ssid, 0x0, SSID_MAX_LEN);
memcpy(wifi_cfg.sta.ssid, pdata, len);
memset(wifi_cfg.sta.sae_h2e_identifier, 0x0, SAE_H2E_IDENTIFIER_LEN);
wifi_cfg.sta.sae_pwe_h2e = WPA3_SAE_PWE_BOTH;
if (g_sta_connected)