From e9d34ab030e430142e2c27725223079d92144c04 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Wed, 23 Nov 2016 23:04:31 -0500 Subject: qcacld-2.0: Fix AP+AP MCC OBSS scan unreliable AP1 starts on 2.4g, AP2 starts on 5g ht40. The AP2 is always failed to find the interference AP during OBSS scan. It is because the cld driver uses passive scan but the dwell time is set to active scan's default dwell time 80ms. That is too short for passive scan. The fix is to set the dwell time based on scan type. Change-Id: I687217f7d15f963f0043dab661ae29bb026ba7b5 CRs-Fixed: 1093940 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index e4f8a34c356c..fd99471996b8 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -20060,8 +20060,13 @@ int __wlan_hdd_cfg80211_scan( struct wiphy *wiphy, else scanRequest.scanType = pHddCtx->ioctl_scan_mode; } - scanRequest.minChnTime = cfg_param->nActiveMinChnTime; - scanRequest.maxChnTime = cfg_param->nActiveMaxChnTime; + if (scanRequest.scanType == eSIR_PASSIVE_SCAN) { + scanRequest.minChnTime = cfg_param->nPassiveMinChnTime; + scanRequest.maxChnTime = cfg_param->nPassiveMaxChnTime; + } else { + scanRequest.minChnTime = cfg_param->nActiveMinChnTime; + scanRequest.maxChnTime = cfg_param->nActiveMaxChnTime; + } #ifdef CFG80211_SCAN_BSSID vos_mem_copy(scanRequest.bssid, request->bssid, VOS_MAC_ADDR_SIZE); -- cgit v1.2.3