1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-09 23:57:00 +00:00

fixed scan timeout interfering with normal scan

This commit is contained in:
fariouche 2018-08-18 14:45:43 +02:00
parent fe67b3de16
commit a708334609

View File

@ -923,7 +923,7 @@ u8 rtw_sitesurvey_cmd(_adapter *padapter, NDIS_802_11_SSID *ssid, int ssid_num,
if (res == _SUCCESS) {
pmlmepriv->scan_start_time = rtw_get_current_time();
#if 0 /*fariouche: looking at other wlan drivers, they do not handle timeout. It is conflicting with long scans */
#ifdef CONFIG_SCAN_BACKOP
if (rtw_mi_buddy_check_mlmeinfo_state(padapter, WIFI_FW_AP_STATE)) {
if (is_supported_5g(padapter->registrypriv.wireless_mode)
@ -934,7 +934,7 @@ u8 rtw_sitesurvey_cmd(_adapter *padapter, NDIS_802_11_SSID *ssid, int ssid_num,
} else
#endif /* CONFIG_SCAN_BACKOP */
mlme_set_scan_to_timer(pmlmepriv, SCANNING_TIMEOUT);
#endif
rtw_led_control(padapter, LED_CTL_SITE_SURVEY);
} else
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);