fix(esp_wifi): Reduce scan frequency in WPS

This commit is contained in:
Kapil Gupta 2024-12-21 00:03:06 +05:30
parent d81b820331
commit 0f48edcc35
2 changed files with 2 additions and 2 deletions

View File

@ -1647,7 +1647,7 @@ wifi_wps_scan_done(void *arg, ETS_STATUS status)
sm->ignore_sel_reg = true; sm->ignore_sel_reg = true;
} }
eloop_cancel_timeout(wifi_wps_scan, NULL, NULL); eloop_cancel_timeout(wifi_wps_scan, NULL, NULL);
eloop_register_timeout(0, 100*1000, wifi_wps_scan, NULL, NULL); eloop_register_timeout(2, 0, wifi_wps_scan, NULL, NULL);
} else { } else {
return; return;
} }

View File

@ -50,7 +50,7 @@ enum wps_sm_state{
}; };
#endif /* ESP_SUPPLICANT */ #endif /* ESP_SUPPLICANT */
#define WPS_IGNORE_SEL_REG_MAX_CNT 4 #define WPS_IGNORE_SEL_REG_MAX_CNT 10
#define WPS_MAX_DIS_AP_NUM 10 #define WPS_MAX_DIS_AP_NUM 10