qcacmn: 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: I163dbb2fdca1245742cca049de47478117197412 CRs-Fixed: 2471897
This commit is contained in:

committed by
nshrivas

parent
d8b05b54d7
commit
09e867fb99
@@ -1306,11 +1306,13 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
||||
}
|
||||
|
||||
/*
|
||||
* If a scan is already going on i.e the qdf_list ( scan que) is not
|
||||
* empty, and the simultaneous scan is disabled, dont allow 2nd scan
|
||||
* For a non-SAP vdevs, if a scan is already going on i.e the scan queue
|
||||
* is not empty, and the simultaneous scan is disabled, dont allow 2nd
|
||||
* scan.
|
||||
*/
|
||||
if (!wlan_cfg80211_allow_simultaneous_scan(psoc) &&
|
||||
!qdf_list_empty(&osif_priv->osif_scan->scan_req_q)) {
|
||||
!qdf_list_empty(&osif_priv->osif_scan->scan_req_q) &&
|
||||
wlan_vdev_mlme_get_opmode(vdev) != QDF_SAP_MODE) {
|
||||
osif_err("Simultaneous scan disabled, reject scan");
|
||||
return -EBUSY;
|
||||
}
|
||||
|
Reference in New Issue
Block a user