]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
rtw88: coex: run coexistence when WLAN entering/leaving LPS
authorChing-Te Ku <ku920601@realtek.com>
Thu, 26 Nov 2020 02:10:50 +0000 (10:10 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Dec 2020 19:23:51 +0000 (21:23 +0200)
When WLAN entering or leaving, it's necessary to run coexistence mechanism
to ensure the setting matched current status.
Without calling rtw_coex_run_coex(), WLAN poor throughput or bad A2DP
quality may happen.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201126021059.11981-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/coex.c

index 4bb0d373c8623f5253c50f68d2b04da4a7940765..7b69c7b01e2241223954744375826f0c01bedbdd 100644 (file)
@@ -2476,6 +2476,8 @@ void rtw_coex_lps_notify(struct rtw_dev *rtwdev, u8 type)
 
                if (!coex_stat->wl_force_lps_ctrl)
                        rtw_coex_query_bt_info(rtwdev);
+
+               rtw_coex_run_coex(rtwdev, COEX_RSN_LPS);
        }
 }