wifi: rtw88: 8821a: Regularly ask for BT info updates
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Wed, 23 Oct 2024 14:14:45 +0000 (17:14 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 29 Oct 2024 04:02:39 +0000 (12:02 +0800)
commitbfcee5ee924fc5f706d20f5dc31586ca47912304
treeab5d5e8675a1e7980446f019ec6d760f1836b55c
parentb19840afc05121293ae59f017cb9924814eb5d77
wifi: rtw88: 8821a: Regularly ask for BT info updates

The RTL8821AU firmware sends C2H_BT_INFO by itself when bluetooth
headphones are connected, but not when they are disconnected. This leads
to the coexistence code still using the A2DP algorithm long after the
headphones are disconnected, which means the wifi speeds are much lower
than they should be. Work around this by asking for updates every two
seconds if the chip is RTL8821AU.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/358acdd2-6aae-46c1-9c66-fcce4e700b96@gmail.com
drivers/net/wireless/realtek/rtw88/coex.c
drivers/net/wireless/realtek/rtw88/coex.h
drivers/net/wireless/realtek/rtw88/main.c