Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtlwifi: btcoex: 23b 1ant: initialize bt_disabled to false

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>

authored by

Dan Carpenter and committed by
Kalle Valo
e5786189 86aeb825

+1 -1
+1 -1
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
··· 1704 1704 { 1705 1705 struct rtl_priv *rtlpriv = btcoexist->adapter; 1706 1706 static u32 bt_disable_cnt; 1707 - bool bt_active = true, bt_disabled; 1707 + bool bt_active = true, bt_disabled = false; 1708 1708 1709 1709 if (coex_sta->high_priority_tx == 0 && 1710 1710 coex_sta->high_priority_rx == 0 && coex_sta->low_priority_tx == 0 &&