[bionic][PATCH 06/10] UBUNTU: SAUCE: Make rtl8821c-bt work with 0bda:b00a only

Wen-chien Jesse Sung jesse.sung at canonical.com
Fri Mar 23 16:47:03 UTC 2018


BugLink: https://launchpad.net/bugs/1742613

Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
---
 ubuntu/rtl8821c-bt/rtk_bt.c | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/ubuntu/rtl8821c-bt/rtk_bt.c b/ubuntu/rtl8821c-bt/rtk_bt.c
index cead9eed52d6..1c7f86d723af 100644
--- a/ubuntu/rtl8821c-bt/rtk_bt.c
+++ b/ubuntu/rtl8821c-bt/rtk_bt.c
@@ -49,26 +49,9 @@ static bool reset = 0;
 static struct usb_driver btusb_driver;
 static struct usb_device_id btusb_table[] = {
 	{
-		.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
-			USB_DEVICE_ID_MATCH_INT_INFO,
+		.match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT,
 		.idVendor = 0x0bda,
-		.bInterfaceClass = 0xe0,
-		.bInterfaceSubClass = 0x01,
-		.bInterfaceProtocol = 0x01
-	}, {
-		.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
-			USB_DEVICE_ID_MATCH_INT_INFO,
-		.idVendor = 0x13d3,
-		.bInterfaceClass = 0xe0,
-		.bInterfaceSubClass = 0x01,
-		.bInterfaceProtocol = 0x01
-	}, {
-		.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
-			USB_DEVICE_ID_MATCH_INT_INFO,
-		.idVendor = 0x0489,
-		.bInterfaceClass = 0xe0,
-		.bInterfaceSubClass = 0x01,
-		.bInterfaceProtocol = 0x01
+		.idProduct = 0xb00a,
 	}, { }
 };
 
-- 
2.14.1





More information about the kernel-team mailing list