From ca7315c8aea0b5160c3a970c6dd0d1b1ca23b7c7 Mon Sep 17 00:00:00 2001 From: Deepak Dhamdhere Date: Fri, 20 Oct 2017 13:05:56 -0700 Subject: [PATCH] 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 --- core/sme/src/csr/csr_api_scan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 1f03b7f758b5..1a70487e1c4d 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/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;