qcacld-2.0: Use active scan for SAP OBSS scan

Currently, driver uses passive scan for OBSS in SAP.
In AP+AP case, the second AP is restricted to 28ms
offchannel dwell time in WMA layer in order to keep
the first AP's beaconing. But the 28ms is not enough
to find the overlap APs in environment by passive scan.
That causes the second APs OBSS scan failed.

This fix is to change scan to active for SAP OBSS scan.

Change-Id: Ie4aedc891c90364d8e5d21191d89bd60894797f5
CRs-Fixed: 1102763
This commit is contained in:
Liangwei Dong 2016-12-19 00:36:48 -05:00 committed by syphyr
parent 5c069c51f7
commit 25b7e64c4f
1 changed files with 2 additions and 1 deletions

View File

@ -15672,7 +15672,8 @@ int __wlan_hdd_cfg80211_scan( struct wiphy *wiphy,
/* set the scan type to active */
scanRequest.scanType = eSIR_ACTIVE_SCAN;
}
else if (WLAN_HDD_P2P_GO == pAdapter->device_mode)
else if (WLAN_HDD_P2P_GO == pAdapter->device_mode ||
WLAN_HDD_SOFTAP == pAdapter->device_mode)
{
/* set the scan type to active */
scanRequest.scanType = eSIR_ACTIVE_SCAN;