浏览代码

qcacld-3.0: Disable early stop feature as per config

If early stop feature is disabled in the configuration,
then let the firmware know to disable it.
There is no WMI item to let firmware know about disabling
the feature explicitly.
Hence, set the roam_earlystop_thres_min and roam_earlystop_thres_max
to zero which the firmware uses to disable the feature.

CRs-Fixed: 1017635
Change-Id: I122677ee3d73403748091832ec52cbc3f17500d6
Varun Reddy Yeturu 9 年之前
父节点
当前提交
21953a2f64
共有 1 个文件被更改,包括 11 次插入6 次删除
  1. 11 6
      core/wma/src/wma_scan_roam.c

+ 11 - 6
core/wma/src/wma_scan_roam.c

@@ -854,12 +854,17 @@ QDF_STATUS wma_roam_scan_offload_rssi_thresh(tp_wma_handle wma_handle,
 	WMA_LOGD("WMA --> good_rssi_threshold=%d",
 		 params.good_rssi_threshold);
 
-	params.roam_earlystop_thres_min =
-		roam_req->early_stop_scan_min_threshold -
-		WMA_NOISE_FLOOR_DBM_DEFAULT;
-	params.roam_earlystop_thres_max =
-		roam_req->early_stop_scan_max_threshold -
-		WMA_NOISE_FLOOR_DBM_DEFAULT;
+	if (roam_req->early_stop_scan_enable) {
+		params.roam_earlystop_thres_min =
+			roam_req->early_stop_scan_min_threshold -
+			WMA_NOISE_FLOOR_DBM_DEFAULT;
+		params.roam_earlystop_thres_max =
+			roam_req->early_stop_scan_max_threshold -
+			WMA_NOISE_FLOOR_DBM_DEFAULT;
+	} else {
+		params.roam_earlystop_thres_min = 0;
+		params.roam_earlystop_thres_max = 0;
+	}
 
 	WMA_LOGD("early_stop_thresholds en=%d, min=%d, max=%d",
 		roam_req->early_stop_scan_enable,