rtlwifi: btcoexist: Add vendor definition for new btcoexist
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 7 Feb 2017 03:30:01 +0000 (21:30 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 Feb 2017 07:25:08 +0000 (09:25 +0200)
Routine halbtc_get() will need to be able to get the vendor ID.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-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 91cc1397b150652219e668c5289fced3e93c3472..8a0e773e076e7d89b53b33140c478f8d10f99745 100644 (file)
@@ -335,6 +335,9 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
        case BTC_GET_U4_BT_PATCH_VER:
                *u32_tmp = halbtc_get_bt_patch_version(btcoexist);
                break;
+       case BTC_GET_U4_VENDOR:
+               *u32_tmp = BTC_VENDOR_OTHER;
+               break;
        case BTC_GET_U1_WIFI_DOT11_CHNL:
                *u8_tmp = rtlphy->current_channel;
                break;
index eb890110bd398761f3f68a3205f8693d4d960569..f9e7c5e77f515036b4c46a791db5ada05ab91f57 100644 (file)
@@ -228,6 +228,7 @@ enum btc_get_type {
        BTC_GET_U4_WIFI_FW_VER,
        BTC_GET_U4_WIFI_LINK_STATUS,
        BTC_GET_U4_BT_PATCH_VER,
+       BTC_GET_U4_VENDOR,
 
        /* type u1Byte */
        BTC_GET_U1_WIFI_DOT11_CHNL,
@@ -245,6 +246,12 @@ enum btc_get_type {
        BTC_GET_MAX
 };
 
+enum btc_vendor {
+       BTC_VENDOR_LENOVO,
+       BTC_VENDOR_ASUS,
+       BTC_VENDOR_OTHER
+};
+
 enum btc_set_type {
        /* type bool */
        BTC_SET_BL_BT_DISABLE,