From 4ef9ba2cf89e6b3fc536ded760da10bfa9ea661d Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Mon, 10 Dec 2018 19:18:38 +0530 Subject: [PATCH] qcacld-3.0: Modify the active dwell time in ACS scan Currently the driver scans for the channels as part of ACS algorithm, to select the best channel for SAP bringup. But the active dwell time set in the scan request is Zero, hence the active probe is not sent to the AP, and the DUT (SAP in this case), just passively scans the channels for BSS, which causes latency in SAP bringup. Fix is to initialize the default active dwell time in case of ACS scan, and set broadcast probe to true. Change-Id: If4f001a9b272a7894125d81f2895cfa6f6ca2bc4 CRs-Fixed: 2363789 --- core/sap/src/sap_fsm.c | 2 +- core/sme/src/rrm/sme_rrm.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 0a7954de0e51..bb4e8523fd12 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1032,13 +1032,13 @@ QDF_STATUS sap_channel_sel(struct sap_context *sap_context) /* Initiate a SCAN request */ ucfg_scan_init_default_params(vdev, req); - req->scan_req.dwell_time_active = 0; scan_id = ucfg_scan_get_scan_id(mac_ctx->psoc); req->scan_req.scan_id = scan_id; vdev_id = wlan_vdev_get_id(vdev); req->scan_req.vdev_id = vdev_id; req->scan_req.scan_req_id = sap_context->req_id; req->scan_req.scan_priority = SCAN_PRIORITY_HIGH; + req->scan_req.scan_f_bcast_probe = true; sap_get_channel_list(sap_context, &channel_list, &num_of_channels); #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE diff --git a/core/sme/src/rrm/sme_rrm.c b/core/sme/src/rrm/sme_rrm.c index 665730af1ad8..c696ba903586 100644 --- a/core/sme/src/rrm/sme_rrm.c +++ b/core/sme/src/rrm/sme_rrm.c @@ -771,7 +771,6 @@ static QDF_STATUS sme_rrm_issue_scan_req(struct mac_context *mac_ctx) goto free_ch_lst; } ucfg_scan_init_default_params(vdev, req); - req->scan_req.dwell_time_active = 0; req->scan_req.scan_id = ucfg_scan_get_scan_id(mac_ctx->psoc); req->scan_req.scan_f_passive = (scan_type == eSIR_ACTIVE_SCAN) ? false : true;