Răsfoiți Sursa

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
gaurank kathpalia 6 ani în urmă
părinte
comite
4ef9ba2cf8
2 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 1
      core/sap/src/sap_fsm.c
  2. 0 1
      core/sme/src/rrm/sme_rrm.c

+ 1 - 1
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

+ 0 - 1
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;