Skip to contentSkip to conversation

wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power()

PATCH In review Ping-Ke Shih 1 participant 2 messages Sep 11 – Sep 16 Realtek wireless driver (rtw89)

lore
Share & tools
lore

Ping-Ke Shih

author maintainer
#0 lore raw

PATCH 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.

---
 drivers/net/wireless/realtek/rtw89/coex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw89/coex.c +1 -1
index e49d75cc55a1..b16af1291b93 100644
@@ -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
author maintainer
#1 lore raw
Quoted 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.

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()

---
https://github.com/pkshih/rtw.git