From 94e809086fda4e456d4f37e47db86cbf1721c6f5 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Mon, 19 Dec 2016 00:36:48 -0500 Subject: 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 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 63499776b741..1a8edf34d332 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -19660,7 +19660,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; -- cgit v1.2.3