From 8fb05d44bce1852e5c5ac82461271bb9d83ab9cf Mon Sep 17 00:00:00 2001 From: Tiago Medicci Serrano Date: Wed, 10 Jan 2024 16:38:30 -0300 Subject: [PATCH] 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). --- arch/xtensa/src/esp32s3/esp32s3_wifi_adapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/src/esp32s3/esp32s3_wifi_adapter.c b/arch/xtensa/src/esp32s3/esp32s3_wifi_adapter.c index daf72babd5..256a18eab2 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_wifi_adapter.c +++ b/arch/xtensa/src/esp32s3/esp32s3_wifi_adapter.c @@ -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)