rtlwifi: btcoex: Add new but dummy definitions introduced by 8822b
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 6 Mar 2018 01:25:50 +0000 (09:25 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Mar 2018 08:54:58 +0000 (11:54 +0300)
btcoex support multiple platforms, but this drivers doesn't support full
functions yet, so this commit adds dummy definitions.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h

index 05300b4..8b6b07a 100644 (file)
@@ -656,6 +656,9 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
        case BTC_GET_BL_IS_ASUS_8723B:
                *bool_tmp = false;
                break;
+       case BTC_GET_BL_RF4CE_CONNECTED:
+               *bool_tmp = false;
+               break;
        case BTC_GET_S4_WIFI_RSSI:
                *s32_tmp = halbtc_get_wifi_rssi(rtlpriv);
                break;
@@ -1141,6 +1144,11 @@ static void halbtc_display_dbg_msg(void *bt_context, u8 disp_type,
        }
 }
 
+static u32 halbtc_get_bt_reg(void *btc_context, u8 reg_type, u32 offset)
+{
+       return 0;
+}
+
 static bool halbtc_under_ips(struct btc_coexist *btcoexist)
 {
        struct rtl_priv *rtlpriv = btcoexist->adapter;
@@ -1291,6 +1299,7 @@ bool exhalbtc_initlize_variables(struct rtl_priv *rtlpriv)
        btcoexist->btc_get = halbtc_get;
        btcoexist->btc_set = halbtc_set;
        btcoexist->btc_set_bt_reg = halbtc_set_bt_reg;
+       btcoexist->btc_get_bt_reg = halbtc_get_bt_reg;
 
        btcoexist->bt_info.bt_ctrl_buf_size = false;
        btcoexist->bt_info.agg_buf_size = 5;
index 049e92a..9eae87d 100644 (file)
@@ -338,6 +338,7 @@ enum btc_set_type {
        BTC_SET_ACT_GET_BT_RSSI,
        BTC_SET_ACT_AGGREGATE_CTRL,
        BTC_SET_ACT_ANTPOSREGRISTRY_CTRL,
+       BTC_SET_MIMO_PS_MODE,
 
        /********* for 1Ant **********/
        /* type bool */
@@ -356,6 +357,7 @@ enum btc_set_type {
        BTC_SET_ACT_POST_NORMAL_LPS,
        BTC_SET_ACT_INC_FORCE_EXEC_PWR_CMD_CNT,
        BTC_SET_ACT_DISABLE_LOW_POWER,
+       BTC_SET_BL_BT_LNA_CONSTRAIN_LEVEL,
        BTC_SET_ACT_UPDATE_RAMASK,
        BTC_SET_ACT_SEND_MIMO_PS,
        /* BT Coex related */
@@ -738,6 +740,7 @@ struct btc_coexist {
 
        void (*btc_set_bt_reg)(void *btc_context, u8 reg_type, u32 offset,
                               u32 value);
+       u32 (*btc_get_bt_reg)(void *btc_context, u8 reg_type, u32 offset);
        u32 (*btc_get_bt_coex_supported_feature)(void *btcoexist);
        u32 (*btc_get_bt_coex_supported_version)(void *btcoexist);
        u32 (*btc_get_bt_phydm_version)(void *btcoexist);