arch/risc-v/esp32c6: fix memcpy on AP password

This commit is contained in:
Filipe Cavalcanti 2024-12-16 09:30:11 -03:00 committed by Alan C. Assis
parent ac56285bf8
commit ecf683b13e

View file

@ -5172,7 +5172,7 @@ int esp_wifi_softap_password(struct iwreq *iwr, bool set)
if (ext->alg != IW_ENCODE_ALG_NONE) 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) if (g_softap_started)