wifi: rtw89: coex: Set Bluetooth scan low-priority when Wi-Fi link/scan
authorChing-Te Ku <ku920601@realtek.com>
Mon, 18 Dec 2023 06:13:37 +0000 (14:13 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 20 Dec 2023 18:27:42 +0000 (20:27 +0200)
To avoid Bluetooth reconnecting/pairing fail during Wi-Fi is link/scan,
especially the Bluetooth connect event after the platform restart/boot up.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20231218061341.51255-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c

index e89af591565796c1857c179611d999af3cb56d10..43a95f9b0868eded3d52c2313622225f9912d643 100644 (file)
@@ -5419,12 +5419,14 @@ void _run_coex(struct rtw89_dev *rtwdev, enum btc_reason_and_action reason)
                if (mode == BTC_WLINK_NOLINK || mode == BTC_WLINK_2G_STA ||
                    mode == BTC_WLINK_5G) {
                        _action_wl_scan(rtwdev);
+                       bt->scan_rx_low_pri = false;
                        goto exit;
                }
        }
 
        if (wl->status.map.scan) {
                _action_wl_scan(rtwdev);
+               bt->scan_rx_low_pri = false;
                goto exit;
        }