Bladeren bron

qcacld-3.0: Fix host/target hirssi_upper_bound mismatch

On HST,  service bit wmi_service_hw_db2dbm_support is set, need
send target hirssi_upper_bound as RSSI format instead of SNR.

Change-Id: Ie9029e9c26f84456722ca2864a28c7ba3a2be52d
CRs-Fixed: 2485833
Jianmin Zhu 5 jaren geleden
bovenliggende
commit
9ab41552f9
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5 1
      core/wma/src/wma_scan_roam.c

+ 5 - 1
core/wma/src/wma_scan_roam.c

@@ -478,8 +478,12 @@ wma_roam_scan_offload_rssi_thresh(tp_wma_handle wma_handle,
 	rssi_thresh_diff = roam_req->OpportunisticScanThresholdDiff;
 	hirssi_scan_max_count = roam_req->hi_rssi_scan_max_count;
 	hirssi_scan_delta = roam_req->hi_rssi_scan_rssi_delta;
-	hirssi_upper_bound = roam_req->hi_rssi_scan_rssi_ub -
+	if (db2dbm_enabled) {
+		hirssi_upper_bound = roam_req->hi_rssi_scan_rssi_ub;
+	} else {
+		hirssi_upper_bound = roam_req->hi_rssi_scan_rssi_ub -
 				     WMA_NOISE_FLOOR_DBM_DEFAULT;
+	}
 
 	/* fill in threshold values */
 	params.vdev_id = roam_req->sessionId;