Browse Source

qcacld-3.0: Use active scan during connection to AP

If AP candidate is not found in scan cache during processing of
cfg80211_connect request, it calls csr_scan_for_ssid() to find it.
However default scan type is passive and dwell time is not enough
to capture a beacon. Convert it to active scan.

CRs-Fixed: 2130197
Change-Id: I11880473cce9089520c57542659e1b892417fc72
Deepak Dhamdhere 7 years ago
parent
commit
ca7315c8ae
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/sme/src/csr/csr_api_scan.c

+ 3 - 0
core/sme/src/csr/csr_api_scan.c

@@ -4073,6 +4073,9 @@ QDF_STATUS csr_scan_for_ssid(tpAniSirGlobal mac_ctx, uint32_t session_id,
 	req->scan_req.scan_id = scan_id;
 	req->scan_req.vdev_id = session_id;
 	req->scan_req.scan_req_id = mac_ctx->scan.requester_id;
+	req->scan_req.scan_f_passive = false;
+	req->scan_req.scan_f_bcast_probe = false;
+
 
 	if (QDF_P2P_CLIENT_MODE == profile->csrPersona)
 		req->scan_req.scan_priority = SCAN_PRIORITY_HIGH;