Parcourir la source

qcacmn: For SAP use dwell_time_active def dwell time for 2g chan

Driver uses dwell_time_active_2g by default for scan. In case if
ACS enabled on driver, The dwell_time_active_2g (80 msec) result
in ACS latency and thus latency in SAP start.

To optimize SAP turn-on time latency, use dwell_time_active_def
as dwell time for 2g channels instead of well_time_active_2g
during ACS scan.

Change-Id: Ib673284c99e5539abe0268319e04cc63d0cbb98f
CRs-Fixed: 2383308
Abhinav Kumar il y a 6 ans
Parent
commit
f61eaf9d84
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

+ 8 - 0
umac/scan/dispatcher/src/wlan_scan_ucfg_api.c

@@ -593,6 +593,14 @@ static void ucfg_scan_req_update_concurrency_params(
 		req->scan_req.min_rest_time = req->scan_req.max_rest_time;
 	}
 
+	/*
+	 * If scan req for SAP (ACS Sacn) use dwell_time_active_def as dwell
+	 * time for 2g channels instead of dwell_time_active_2g
+	 */
+	if (vdev->vdev_mlme.vdev_opmode == QDF_SAP_MODE) {
+		req->scan_req.dwell_time_active_2g = 0;
+	}
+
 	if (req->scan_req.p2p_scan_type == SCAN_NON_P2P_DEFAULT) {
 		/*
 		 * Decide burst_duration and dwell_time_active based on