mirror of
https://github.com/apache/nuttx.git
synced 2026-08-05 06:10:27 +00:00
arch/xtensa: fix memcpy on AP password
This commit is contained in:
parent
14edf1385c
commit
aca36a1784
3 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue