Skip to content

Commit

Permalink
Merge branch 'bugfix/wps_ie_reset_v52' into 'release/v5.2'
Browse files Browse the repository at this point in the history
fix(wifi): Remove WPS IEs once WPS succeeds(v5.2)

See merge request espressif/esp-idf!35079
  • Loading branch information
Jiang Jiang Jian committed Dec 4, 2024
2 parents 1763062 + 1c5a84c commit 501f4ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/wpa_supplicant/esp_supplicant/src/esp_wps.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,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));

Expand Down

0 comments on commit 501f4ab

Please sign in to comment.