@@ -919,13 +919,12 @@ int wps_start_msg_timer(void)
919919 }
920920
921921 if (sm -> wps -> state == WPS_FINISHED ) {
922- msg_timeout = 100 ;
923922 wpa_printf (MSG_DEBUG , "start msg timer WPS_FINISHED %" PRId32 " ms" , msg_timeout );
924923 eloop_cancel_timeout (wifi_station_wps_msg_timeout , NULL , NULL );
925- eloop_register_timeout (0 , msg_timeout * 1000 , wifi_station_wps_msg_timeout , NULL , NULL );
924+ eloop_register_timeout (5 , 0 , wifi_station_wps_msg_timeout , NULL , NULL );
926925 ret = 0 ;
927926 } else if (sm -> wps -> state == RECV_M2 ) {
928- msg_timeout = 5 ;
927+ msg_timeout = 20 ;
929928 wpa_printf (MSG_DEBUG , "start msg timer RECV_M2 %" PRId32 " s" , msg_timeout );
930929 eloop_cancel_timeout (wifi_station_wps_msg_timeout , NULL , NULL );
931930 eloop_register_timeout (msg_timeout , 0 , wifi_station_wps_msg_timeout , NULL , NULL );
@@ -1663,7 +1662,7 @@ wifi_wps_scan_done(void *arg, ETS_STATUS status)
16631662 esp_wifi_connect ();
16641663 sm -> state = WAIT_START ;
16651664 eloop_cancel_timeout (wifi_station_wps_msg_timeout , NULL , NULL );
1666- eloop_register_timeout (2 , 0 , wifi_station_wps_msg_timeout , NULL , NULL );
1665+ eloop_register_timeout (20 , 0 , wifi_station_wps_msg_timeout , NULL , NULL );
16671666 } else if (wps_get_status () == WPS_STATUS_SCANNING ) {
16681667 if (wps_get_type () == WPS_TYPE_PIN && sm -> scan_cnt > WPS_IGNORE_SEL_REG_MAX_CNT ) {
16691668 wpa_printf (MSG_INFO , "WPS: ignore selected registrar after %d scans" , sm -> scan_cnt );
0 commit comments