Explorar o código

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
Liangwei Dong %!s(int64=8) %!d(string=hai) anos
pai
achega
cf7fcf0841
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      core/hdd/src/wlan_hdd_scan.c

+ 7 - 2
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);