summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiangwei Dong <liangwei@codeaurora.org>2016-11-23 23:04:31 -0500
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-02 06:59:19 -0800
commite9d34ab030e430142e2c27725223079d92144c04 (patch)
tree4486d47b7088588f9641e8b997c7d2df488fa75a
parent40024b2071ccdad69fad0152660f53c0e9c14817 (diff)
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
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c9
1 files 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);