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
Esse commit está contido em:
Edayilliam Jayadev
2018-04-26 10:59:07 +05:30
commit de nshrivas
commit 2874cca041

Ver arquivo

@@ -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;
}