mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Allow simultaneous scans for Hostapd scan
Currently the drivers blocks every simultaneous scan that comes to the driver, and returns BUSY. here if the STA SCAN which is low priority after connection comes, and at the same time ACS has completed and the hostapd tries to do a HT scan, it would get error as BUSY, and it will try to scan again and again until successful or the timeout happens. This will in turn delay the hotspot bringup as start ap does not come until the hostapd does a OBSS scan. Fix is to skip the check of simultaneous scan for SAP, and make the priority of scan request high for SAP scan. Change-Id: I5625a3e7c05f75238771ea1ec35b80ae5113bbc3 CRs-Fixed: 2471854
This commit is contained in:
parent
4bf1c934a4
commit
6fc5d5803c
1 changed files with 7 additions and 2 deletions
|
|
@ -681,8 +681,13 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
|
|||
!qdf_mem_cmp(&request->ssids[0], "DIRECT-", 7))
|
||||
ucfg_p2p_status_scan(vdev);
|
||||
|
||||
/* set priority as SCAN_PRIORITY_COUNT to use default scan priority */
|
||||
params.priority = SCAN_PRIORITY_COUNT;
|
||||
/* If this a scan on SAP adapter, use scan priority high */
|
||||
if (adapter->device_mode == QDF_SAP_MODE)
|
||||
params.priority = SCAN_PRIORITY_HIGH;
|
||||
else
|
||||
/* Use default scan priority */
|
||||
params.priority = SCAN_PRIORITY_COUNT;
|
||||
|
||||
status = wlan_cfg80211_scan(vdev, request, ¶ms);
|
||||
hdd_objmgr_put_vdev(vdev);
|
||||
error:
|
||||
|
|
|
|||
Loading…
Reference in a new issue