Skip to content

Commit 1a28147

Browse files
Ping-Ke ShihKalle Valo
authored andcommitted
rtlwifi: btcoexist: Add vendor definition for new btcoexist
Routine halbtc_get() will need to be able to get the vendor ID. Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Larry Finger <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 6f85c03 commit 1a28147

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
335335
case BTC_GET_U4_BT_PATCH_VER:
336336
*u32_tmp = halbtc_get_bt_patch_version(btcoexist);
337337
break;
338+
case BTC_GET_U4_VENDOR:
339+
*u32_tmp = BTC_VENDOR_OTHER;
340+
break;
338341
case BTC_GET_U1_WIFI_DOT11_CHNL:
339342
*u8_tmp = rtlphy->current_channel;
340343
break;

drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ enum btc_get_type {
228228
BTC_GET_U4_WIFI_FW_VER,
229229
BTC_GET_U4_WIFI_LINK_STATUS,
230230
BTC_GET_U4_BT_PATCH_VER,
231+
BTC_GET_U4_VENDOR,
231232

232233
/* type u1Byte */
233234
BTC_GET_U1_WIFI_DOT11_CHNL,
@@ -245,6 +246,12 @@ enum btc_get_type {
245246
BTC_GET_MAX
246247
};
247248

249+
enum btc_vendor {
250+
BTC_VENDOR_LENOVO,
251+
BTC_VENDOR_ASUS,
252+
BTC_VENDOR_OTHER
253+
};
254+
248255
enum btc_set_type {
249256
/* type bool */
250257
BTC_SET_BL_BT_DISABLE,

0 commit comments

Comments
 (0)