wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power()
Ping-Ke Shih
maintainerPATCH 1/1 wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power()
From: Ching-Te Ku <[email protected]>
Because RF band value 0 means 2 GHz and, if the condition set !rf_band return, the 2 GHz BT TX power will never been set. Correct the logic.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Ching-Te Ku <[email protected]>
Signed-off-by Ping-Ke Shih <[email protected]>
--- drivers/net/wireless/realtek/rtw89/coex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw89/coex.c +1 -1
@@ -3859,7 +3859,7 @@ static void _set_bt_tx_power(struct rtw89_dev *rtwdev, bool force_exec, u8 bid,u8 buf[2 ] = {};u8 len =sizeof (*buf); -if (bt->bcnt[BTC_BCNT_INFOUPDATE ] ==0 || !rf_band) +if (bt->bcnt[BTC_BCNT_INFOUPDATE ] ==0 )return ;if (bt->rf_para.tx_pwr_freerun == level)
base-commit: f71dd599a98182d6bc34dce39977f928068ecd64
Signature · 1 line
2.25.1
Ping-Ke Shih
maintainerQuoted 9 lines · Ping-Ke Shih
From: Ching-Te Ku <[email protected]>
Because RF band value 0 means 2 GHz and, if the condition set !rf_band return, the 2 GHz BT TX power will never been set. Correct the logic.
Reported-by Dan Carpenter <[email protected]>Signed-off-by Ching-Te Ku <[email protected]>Signed-off-by Ping-Ke Shih <[email protected]>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
2db269480b86 wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power()