浏览代码

qcacld-3.0: Add new scan filter if ACS scan is done partially

If the acs scan is optimized based on last scan ageout time,
it can lead to either skip ACS scan fully or scan partial
ACS frequency list. If ACS scan is skipped or partially
done, use a scan filter based on last scan ageout time to
retrieve the scan entries for ACS algorithm.

Change-Id: Id1d3a3d4364163686f92c380e9f6d6dada033ff5
CRs-Fixed: 3239389
Surabhi Vishnoi 2 年之前
父节点
当前提交
abba175dc5
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      core/sap/src/sap_api_link_cntl.c

+ 7 - 2
core/sap/src/sap_api_link_cntl.c

@@ -247,9 +247,14 @@ wlansap_calculate_chan_from_scan_result(mac_handle_t mac_handle,
 
 	filter = qdf_mem_malloc(sizeof(*filter));
 
-	if (filter)
-		filter->age_threshold = qdf_get_time_of_the_day_ms() -
+	if (filter) {
+		if (sap_ctx->partial_acs_scan)
+			filter->age_threshold =
+					sap_ctx->acs_cfg->last_scan_ageout_time;
+		else
+			filter->age_threshold = qdf_get_time_of_the_day_ms() -
 						sap_ctx->acs_req_timestamp;
+	}
 
 	list = wlan_scan_get_result(mac_ctx->pdev, filter);