rtlwifi: btcoex: 23b 1ant: initialize bt_disabled to false
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 May 2017 21:25:39 +0000 (00:25 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 May 2017 13:51:30 +0000 (16:51 +0300)
We only want to disable this if bt_disable_cnt is >= 2.

Fixes: f66509e3d7c2 ("rtlwifi: btcoex: Remove 23b 1ant configuration parameter")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c

index 0eea964584fb71499af4146fed60c4cd03345916..a0f3a18add250f2e5cc1d6456366cf715328a447 100644 (file)
@@ -1704,7 +1704,7 @@ static void halbtc8723b1ant_monitor_bt_enable_disable(struct btc_coexist
 {
        struct rtl_priv *rtlpriv = btcoexist->adapter;
        static u32 bt_disable_cnt;
-       bool bt_active = true, bt_disabled;
+       bool bt_active = true, bt_disabled = false;
 
        if (coex_sta->high_priority_tx == 0 &&
            coex_sta->high_priority_rx == 0 && coex_sta->low_priority_tx == 0 &&