mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
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:
committed by
Petro Karashchenko
parent
f221878204
commit
8fb05d44bc
@@ -5125,6 +5125,7 @@ int esp_wifi_sta_essid(struct iwreq *iwr, bool set)
|
|||||||
{
|
{
|
||||||
memset(wifi_cfg.sta.ssid, 0x0, SSID_MAX_LEN);
|
memset(wifi_cfg.sta.ssid, 0x0, SSID_MAX_LEN);
|
||||||
memcpy(wifi_cfg.sta.ssid, pdata, 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;
|
wifi_cfg.sta.sae_pwe_h2e = WPA3_SAE_PWE_BOTH;
|
||||||
|
|
||||||
if (g_sta_connected)
|
if (g_sta_connected)
|
||||||
|
|||||||
Reference in New Issue
Block a user