rtlwifi: btcoex: 21a 2ant: just return when wifi is under ips
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Sat, 15 Apr 2017 20:31:59 +0000 (15:31 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Apr 2017 07:25:46 +0000 (10:25 +0300)
If wifi is in power saving mode, do nothing.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Pkshih <pkshih@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
  ---
 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c | 6 ++++++
 1 file changed, 6 insertions(+)
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c

index 22cb8aa8208d839d9f154601c8f8cca24ae57012..0aa36247e402312e1ca537bb603e6ad8bb1acba0 100644 (file)
@@ -3483,6 +3483,12 @@ static void btc8821a2ant_run_coexist_mechanism(struct btc_coexist *btcoexist)
                return;
        }
 
+       if (coex_sta->under_ips) {
+               RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD,
+                        "[BTCoex], wifi is under IPS !!!\n");
+               return;
+       }
+
        algorithm = btc8821a2ant_action_algorithm(btcoexist);
        if (coex_sta->c2h_bt_inquiry_page &&
            (BT_8821A_2ANT_COEX_ALGO_PANHS != algorithm)) {