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)