Skip to content

Commit

Permalink
Merge branch 'bugfix/pbc_overlap_in_wps_pin_method_v5.0' into 'releas…
Browse files Browse the repository at this point in the history
…e/v5.0'

wpa_supplicant: Fix for issue of wps-pbc overlap in wps-pin method(v5.0)

See merge request espressif/esp-idf!25738
  • Loading branch information
jack0c committed Oct 8, 2023
2 parents 8093ef8 + 9f0d0e2 commit 0f3eb4f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/wpa_supplicant/esp_supplicant/src/esp_wps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1594,9 +1594,13 @@ wifi_wps_scan_done(void *arg, STATUS status)
} else if (sm->discover_ssid_cnt == 0) {
wps_set_status(WPS_STATUS_SCANNING);
} else {
wpa_printf(MSG_INFO, "PBC session overlap!");
wps_set_status(WPS_STATUS_DISABLE);
esp_event_post(WIFI_EVENT, WIFI_EVENT_STA_WPS_ER_PBC_OVERLAP, 0, 0, OS_BLOCK);
if (wps_get_type() == WPS_TYPE_PBC) {
wpa_printf(MSG_INFO, "PBC session overlap!");
wps_set_status(WPS_STATUS_DISABLE);
esp_event_post(WIFI_EVENT, WIFI_EVENT_STA_WPS_ER_PBC_OVERLAP, 0, 0, OS_BLOCK);
} else {
wps_set_status(WPS_STATUS_PENDING);
}
}

wpa_printf(MSG_DEBUG, "wps scan_done discover_ssid_cnt = %d", sm->discover_ssid_cnt);
Expand Down

0 comments on commit 0f3eb4f

Please sign in to comment.