Skip to content

Commit

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

See merge request espressif/esp-idf!35071
  • Loading branch information
Jiang Jiang Jian committed Nov 22, 2024
2 parents b56ad1d + 234dce0 commit bc89933
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 @@ -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));

Expand Down

0 comments on commit bc89933

Please sign in to comment.