mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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
This commit is contained in:
parent
338cca5055
commit
8a3675f385
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue