summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiangwei Dong <liangwei@codeaurora.org>2016-12-28 02:13:38 -0500
committerqcabuildsw <qcabuildsw@localhost>2017-01-12 02:19:36 -0800
commit52ae0053053fc061a2c80c0e38a0355d3c108fa4 (patch)
treeda9d6d75c20ad2cf111d14e4319a531945f8753f
parent49080b02a94034f2621110cc15be7af97b2644e7 (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_scan.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c
index 2ebdc1771268..d04d6fb3124d 100644
--- a/core/hdd/src/wlan_hdd_scan.c
+++ b/core/hdd/src/wlan_hdd_scan.c
@@ -1689,8 +1689,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);