All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH rtw-next] wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power()
@ 2026-09-11  7:04 Ping-Ke Shih
  2026-09-16  5:23 ` Ping-Ke Shih
  0 siblings, 1 reply; 2+ messages in thread
From: Ping-Ke Shih @ 2026-09-11  7:04 UTC (permalink / raw)
  To: linux-wireless; +Cc: error27, ku920601

From: Ching-Te Ku <ku920601@realtek.com>

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 <error27@gmail.com>
Closes: https://lore.kernel.org/linux-wireless/aoXrgwyFu851qVNV@stanley.mountain/
Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
 drivers/net/wireless/realtek/rtw89/coex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c
index e49d75cc55a1..b16af1291b93 100644
--- a/drivers/net/wireless/realtek/rtw89/coex.c
+++ b/drivers/net/wireless/realtek/rtw89/coex.c
@@ -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
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH rtw-next] wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power()
  2026-09-11  7:04 [PATCH rtw-next] wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power() Ping-Ke Shih
@ 2026-09-16  5:23 ` Ping-Ke Shih
  0 siblings, 0 replies; 2+ messages in thread
From: Ping-Ke Shih @ 2026-09-16  5:23 UTC (permalink / raw)
  To: Ping-Ke Shih, linux-wireless; +Cc: error27, ku920601

Ping-Ke Shih <pkshih@realtek.com> wrote:

> From: Ching-Te Ku <ku920601@realtek.com>
> 
> 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 <error27@gmail.com>
> Closes: https://lore.kernel.org/linux-wireless/aoXrgwyFu851qVNV@stanley.mountain/
> Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-16  5:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11  7:04 [PATCH rtw-next] wifi: rtw89: coex: cancel RF band return condition at _set_bt_tx_power() Ping-Ke Shih
2026-09-16  5:23 ` Ping-Ke Shih

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.