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
This commit is contained in:
Deepak Dhamdhere 2017-10-20 13:05:56 -07:00 • committed by snandini
commit ca7315c8ae

View file

@ -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;