]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtw88: not to enter LPS by coex strategy
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Wed, 2 Oct 2019 02:31:25 +0000 (10:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Oct 2019 04:33:47 +0000 (07:33 +0300)
Sometimes LPS is not compatible with COEX's strategy, and
COEX will not allow driver to enter it.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/ps.c

index 4b5774687d21bd1d16673ac4f3cdd29f6162506f..1661cc2e5fe38bca801962ad5bcb8f410219dad4 100644 (file)
@@ -191,6 +191,9 @@ void rtw_enter_lps(struct rtw_dev *rtwdev, u8 port_id)
 {
        lockdep_assert_held(&rtwdev->mutex);
 
+       if (rtwdev->coex.stat.wl_force_lps_ctrl)
+               return;
+
        __rtw_enter_lps(rtwdev, port_id);
        __rtw_enter_lps_deep(rtwdev);
 }