Przeglądaj źródła

qcacmn: Adjust RSSI values for Spectral HW gen III

RSSI values are reported in 1/2 dBm steps for spectral HW gen III.
Convert the RSSI values to 1dBm scale.

CRs-Fixed: 2231546
Change-Id: I30962a95ba7a5f759d933e373c2b8708a98712fc
Edayilliam Jayadev 7 lat temu
rodzic
commit
2874cca041
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      target_if/spectral/target_if_spectral_phyerr.c

+ 2 - 1
target_if/spectral/target_if_spectral_phyerr.c

@@ -1260,7 +1260,8 @@ target_if_consume_sscan_report_gen3(struct target_if_spectral *spectral,
 	struct spectral_sscan_report_gen3 *psscan_report;
 
 	psscan_report = (struct spectral_sscan_report_gen3 *)data;
-	rssi = get_bitfield(psscan_report->hdr_a, 10, 18);
+	/* RSSI is in 1/2 dBm steps, Covert it to dBm scale */
+	rssi = (get_bitfield(psscan_report->hdr_a, 10, 18)) >> 1;
 
 	return rssi;
 }