From cf7fcf0841a204f78de2886e5e8420ed332d0784 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Wed, 28 Dec 2016 02:13:38 -0500 Subject: [PATCH] qcacld-3.0: Fix AP+AP MCC OBSS scan unreliable qcacld-2.0 to qcacld-3.0 propagation 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_scan.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index 5b1bddf69f55..dfa7c09973cd 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -1718,8 +1718,13 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy, else scan_req.scanType = pHddCtx->ioctl_scan_mode; } - scan_req.minChnTime = cfg_param->nActiveMinChnTime; - scan_req.maxChnTime = cfg_param->nActiveMaxChnTime; + if (scan_req.scanType == eSIR_PASSIVE_SCAN) { + scan_req.minChnTime = cfg_param->nPassiveMinChnTime; + scan_req.maxChnTime = cfg_param->nPassiveMaxChnTime; + } else { + scan_req.minChnTime = cfg_param->nActiveMinChnTime; + scan_req.maxChnTime = cfg_param->nActiveMaxChnTime; + } wlan_hdd_copy_bssid_scan_request(&scan_req, request);