Skip to content

Commit 472bf88

Browse files
committed
fix(esp_wifi): Reduce scan frequency in WPS
1 parent 0ea15dc commit 472bf88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/wpa_supplicant/esp_supplicant/src/esp_wps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,7 @@ wifi_wps_scan_done(void *arg, ETS_STATUS status)
16751675
sm->ignore_sel_reg = true;
16761676
}
16771677
eloop_cancel_timeout(wifi_wps_scan, NULL, NULL);
1678-
eloop_register_timeout(0, 100*1000, wifi_wps_scan, NULL, NULL);
1678+
eloop_register_timeout(2, 0, wifi_wps_scan, NULL, NULL);
16791679
} else {
16801680
return;
16811681
}

components/wpa_supplicant/esp_supplicant/src/esp_wps_i.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ enum wps_sm_state {
5050
};
5151
#endif /* ESP_SUPPLICANT */
5252

53-
#define WPS_IGNORE_SEL_REG_MAX_CNT 4
53+
#define WPS_IGNORE_SEL_REG_MAX_CNT 10
5454

5555
#define WPS_MAX_DIS_AP_NUM 10
5656

0 commit comments

Comments
 (0)