From 4d4d8a6ca59bfdfa06959165414a24deaabad3fb Mon Sep 17 00:00:00 2001 From: Filipe Cavalcanti Date: Mon, 19 Aug 2024 15:30:19 -0300 Subject: [PATCH] arch/risc-v/esp32c3: fix AP password memcpy typo --- arch/risc-v/src/esp32c3/esp_wifi_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/esp32c3/esp_wifi_adapter.c b/arch/risc-v/src/esp32c3/esp_wifi_adapter.c index ba1080f652..1602dd7e9d 100644 --- a/arch/risc-v/src/esp32c3/esp_wifi_adapter.c +++ b/arch/risc-v/src/esp32c3/esp_wifi_adapter.c @@ -5119,7 +5119,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)