From 3a8cf533bc815e1ff77bdeca03e524be375834c1 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 ae84728bf8..b9042c5112 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c @@ -838,6 +838,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));