]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: rtw89: coex: Update Bluetooth slot length when Wi-Fi is scanning
authorChing-Te Ku <ku920601@realtek.com>
Mon, 16 Jun 2025 09:02:50 +0000 (17:02 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 24 Jun 2025 06:28:36 +0000 (14:28 +0800)
If Wi-Fi isn't connected to AP, the firmware scan will not switch to
operation channel. Bluetooth may not have enough time to TX data. This
patch extend the slot to let Bluetooth can TX more to avoid audio lag.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250616090252.51098-10-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c

index 60760512e93d8c086bdba1aeeee9ad6b47045fae..f6b482b20dc7ef92470a8372ccd41d3d550657d3 100644 (file)
@@ -4160,7 +4160,7 @@ void rtw89_btc_set_policy_v1(struct rtw89_dev *rtwdev, u16 policy_type)
                                _slot_set(btc, CXST_E2G, 5, cxtbl[2], SLOT_MIX);
                        else
                                _slot_set(btc, CXST_E2G, 5, tbl_w1, SLOT_MIX);
-                       _slot_set_le(btc, CXST_EBT, s_def[CXST_EBT].dur,
+                       _slot_set_le(btc, CXST_EBT, cpu_to_le16(40),
                                     s_def[CXST_EBT].cxtbl, s_def[CXST_EBT].cxtype);
                        break;
                case BTC_CXP_OFFE_WL: /* for 4-way */