wifi: rtw89: coex: Correct A2DP exist variable source
authorChing-Te Ku <ku920601@realtek.com>
Tue, 17 Jan 2023 11:41:07 +0000 (19:41 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 17:04:17 +0000 (19:04 +0200)
When Wi-Fi enter and leave LPS, coexistence driver need to know
is there A2DP exist or not. And when Wi-Fi sleep in deep power save
state will not able to receive mailbox sent from Bluetooth. So update
the A2DP exist information from reading register.

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://lore.kernel.org/r/20230117114109.4298-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c

index bfeef10..c0e8a0b 100644 (file)
@@ -4602,7 +4602,7 @@ static void _update_bt_scbd(struct rtw89_dev *rtwdev, bool only_update)
 
        bt->whql_test = !!(val & BTC_BSCB_WHQL);
        bt->btg_type = val & BTC_BSCB_BT_S1 ? BTC_BT_BTG : BTC_BT_ALONE;
-       bt->link_info.a2dp_desc.active = !!(val & BTC_BSCB_A2DP_ACT);
+       bt->link_info.a2dp_desc.exist = !!(val & BTC_BSCB_A2DP_ACT);
 
        /* if rfk run 1->0 */
        if (bt->rfk_info.map.run && !(val & BTC_BSCB_RFK_RUN))