From 88cb3141bfeb24ec63c6c49efe05a485fd4dcc70 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Wed, 30 Oct 2024 00:53:05 +0530 Subject: [PATCH] fix(wifi): Remove WPS IEs once WPS succeeds --- components/wpa_supplicant/esp_supplicant/src/esp_wps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c index 17da3eebd1..16351f441d 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c @@ -821,6 +821,10 @@ int wps_finish(void) /* WPS finished, dequeue all timers */ wps_delete_timer(); + esp_wifi_unset_appie_internal(WIFI_APPIE_WPS_PR); + esp_wifi_unset_appie_internal(WIFI_APPIE_WPS_AR); + esp_wifi_set_wps_cb_internal(NULL); + if (sm->ap_cred_cnt == 1) { wifi_config_t *config = os_zalloc(sizeof(wifi_config_t));