From ecf683b13ecac355672b2c26f5ce87fda9c13855 Mon Sep 17 00:00:00 2001 From: Filipe Cavalcanti Date: Mon, 16 Dec 2024 09:30:11 -0300 Subject: [PATCH] arch/risc-v/esp32c6: fix memcpy on AP password --- arch/risc-v/src/esp32c6/esp_wifi_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/esp32c6/esp_wifi_adapter.c b/arch/risc-v/src/esp32c6/esp_wifi_adapter.c index e89edcf38e..271b7473c8 100644 --- a/arch/risc-v/src/esp32c6/esp_wifi_adapter.c +++ b/arch/risc-v/src/esp32c6/esp_wifi_adapter.c @@ -5172,7 +5172,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)