diff mbox series

[5/8] wifi: rtw89: coex: Set Bluetooth background scan PTA request priority

Message ID 20230117114109.4298-6-pkshih@realtek.com (mailing list archive)
State Accepted
Commit 6d2a479c1f9e957908d0fc9d56b9831a48f5ce80
Delegated to: Kalle Valo
Headers show
Series wifi: rtw89: coex: the last patchset to adapt BTC version | expand

Commit Message

Ping-Ke Shih Jan. 17, 2023, 11:41 a.m. UTC
From: Ching-Te Ku <ku920601@realtek.com>

When Wi-Fi is RX, set Bluetooth background scan to low-priority and
not to break Wi-Fi packet. Bluetooth can RX depend on hardware ability
even RX request has been rejected. This way can improve Wi-Fi RX
throughput performance.

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, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c
index 33f369e4ff4cf..bfeef1069318c 100644
--- a/drivers/net/wireless/realtek/rtw89/coex.c
+++ b/drivers/net/wireless/realtek/rtw89/coex.c
@@ -4763,6 +4763,8 @@  void _run_coex(struct rtw89_dev *rtwdev, enum btc_reason_and_action reason)
 		_action_wl_nc(rtwdev);
 		break;
 	case BTC_WLINK_2G_STA:
+		if (wl->status.map.traffic_dir & BIT(RTW89_TFC_DL))
+			bt->scan_rx_low_pri = true;
 		_action_wl_2g_sta(rtwdev);
 		break;
 	case BTC_WLINK_2G_AP: