666caea7fecec03bf5cfa01581bd624ff61e2ff4
[openwrt/staging/hauke.git] / package / kernel / mac80211 / patches / 344-rtl8192cu-Fix-for-rtlwifi-s-bluetooth-coexist-functi.patch
1 From: Karsten Wiese <fzuuzf@googlemail.com>
2 Date: Wed, 22 Oct 2014 15:47:32 +0200
3 Subject: [PATCH] rtl8192cu: Fix for rtlwifi's bluetooth coexist
4 functionality
5
6 Initialize function pointer with a function indicating bt coexist is not there.
7 Prevents Ooops.
8
9 Signed-off-by: Karsten Wiese <fzuuzf@googlemail.com>
10 ---
11
12 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
13 +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
14 @@ -101,6 +101,12 @@ static void rtl92cu_deinit_sw_vars(struc
15 }
16 }
17
18 +/* get bt coexist status */
19 +static bool rtl92cu_get_btc_status(void)
20 +{
21 + return false;
22 +}
23 +
24 static struct rtl_hal_ops rtl8192cu_hal_ops = {
25 .init_sw_vars = rtl92cu_init_sw_vars,
26 .deinit_sw_vars = rtl92cu_deinit_sw_vars,
27 @@ -148,6 +154,7 @@ static struct rtl_hal_ops rtl8192cu_hal_
28 .phy_set_bw_mode_callback = rtl92cu_phy_set_bw_mode_callback,
29 .dm_dynamic_txpower = rtl92cu_dm_dynamic_txpower,
30 .fill_h2c_cmd = rtl92c_fill_h2c_cmd,
31 + .get_btc_status = rtl92cu_get_btc_status,
32 };
33
34 static struct rtl_mod_params rtl92cu_mod_params = {