arch/xtensa: fix memcpy on AP password

This commit is contained in:
Filipe Cavalcanti 2024-12-16 09:29:56 -03:00 committed by Alan C. Assis
parent ffdbbdeef3
commit ac56285bf8
3 changed files with 3 additions and 3 deletions

View file

@ -6169,7 +6169,7 @@ int esp_wifi_softap_password(struct iwreq *iwr, bool set)
if (ext->alg != IW_ENCODE_ALG_NONE)
{
memcpy(wifi_cfg.sta.password, pdata, len);
memcpy(wifi_cfg.ap.password, pdata, len);
}
if (g_softap_started)

View file

@ -5965,7 +5965,7 @@ int esp_wifi_softap_password(struct iwreq *iwr, bool set)
if (ext->alg != IW_ENCODE_ALG_NONE)
{
memcpy(wifi_cfg.sta.password, pdata, len);
memcpy(wifi_cfg.ap.password, pdata, len);
}
if (g_softap_started)

View file

@ -6217,7 +6217,7 @@ int esp_wifi_softap_password(struct iwreq *iwr, bool set)
if (ext->alg != IW_ENCODE_ALG_NONE)
{
memcpy(wifi_cfg.sta.password, pdata, len);
memcpy(wifi_cfg.ap.password, pdata, len);
}
if (g_softap_started)