This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8fb05d44bc esp32s3/wifi: Fix Wi-Fi connection to WPA3-SAE APs.
8fb05d44bc is described below

commit 8fb05d44bce1852e5c5ac82461271bb9d83ab9cf
Author: Tiago Medicci Serrano <tiago.medi...@espressif.com>
AuthorDate: Wed Jan 10 16:38:30 2024 -0300

    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)

Reply via email to