mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
rtw88: fix wrong rx power calculation
Fix the wrong RF path for CCK rx power calculation.
Fixes: e3037485c6 ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Tsang-Shian Lin <thlin@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Reviewed-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
3a1f85798e
commit
e9afa2dc40
1 changed files with 2 additions and 2 deletions
|
|
@ -1628,9 +1628,9 @@ static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status,
|
|||
else if (gain_a > u_bnd)
|
||||
rx_power[RF_PATH_A] -= (gain_a - u_bnd) << 1;
|
||||
if (gain_b < l_bnd)
|
||||
rx_power[RF_PATH_A] += (l_bnd - gain_b) << 1;
|
||||
rx_power[RF_PATH_B] += (l_bnd - gain_b) << 1;
|
||||
else if (gain_b > u_bnd)
|
||||
rx_power[RF_PATH_A] -= (gain_b - u_bnd) << 1;
|
||||
rx_power[RF_PATH_B] -= (gain_b - u_bnd) << 1;
|
||||
|
||||
rx_power[RF_PATH_A] -= 110;
|
||||
rx_power[RF_PATH_B] -= 110;
|
||||
|
|
|
|||
Loading…
Reference in a new issue