From bfb000b23cf11c64b415b0b7c70ae10c83991163 Mon Sep 17 00:00:00 2001 From: akshat Date: Wed, 16 Apr 2025 10:20:09 +0530 Subject: [PATCH] fix(wpa_supplicant): Disconnect from previous AP while initiating WPS --- components/wpa_supplicant/esp_supplicant/src/esp_wps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c index f505f33b18..e17d50adaa 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c @@ -1463,7 +1463,7 @@ static int wifi_station_wps_init(const esp_wps_config_t *config) } sm = gWpsSm; - + esp_wifi_disconnect(); esp_wifi_get_macaddr_internal(WIFI_IF_STA, sm->ownaddr); os_memcpy(gWpaSm.own_addr, sm->ownaddr, ETH_ALEN);