Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a3675f3 authored by Wu Gao's avatar Wu Gao Committed by Gerrit - the friendly Code Review server
Browse files

qcacmn: Not change RSSI of cfr meta data to dBm

Since target already converts RSSI from SNR to dBm for QCA6490 and
WCN7850, so don't convert them again in host side.

Change-Id: Ie35f3821a802f2e65b61f4891f2ca9c632fa1477
CRs-Fixed: 3024119
parent 338cca50
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -44,6 +44,14 @@ static u_int32_t end_magic = 0xBEAFDEAD;
 *
 * Return: signal strength in dBm
 */
#if defined(QCA_WIFI_QCA6490) || defined(QCA_WIFI_WCN7850)
static inline
u_int32_t snr_to_signal_strength(uint8_t snr)
{
	/* target onverts snr to dBm */
	return snr;
}
#else
static inline
u_int32_t snr_to_signal_strength(uint8_t snr)
{
@@ -52,6 +60,7 @@ u_int32_t snr_to_signal_strength(uint8_t snr)
		(((int8_t)snr) + CMN_NOISE_FLOOR) :
		((int8_t)snr);
}
#endif

/**
 * get_lut_entry() - Retrieve LUT entry using cookie number