[linux-oem,5/8] UBUNTU: SAUCE: Make rtl8821ce-bt work with 0bda:b00a only

Message ID 1515673046-27805-6-git-send-email-jesse.sung@canonical.com
State New
Headers show
Series
  • Support Realtek RTL8821CE WiFi and Bluetooth
Related show

Commit Message

Wen-chien Jesse Sung Jan. 11, 2018, 12:17 p.m.
BugLink: https://launchpad.net/bugs/1742613

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

Patch

diff --git a/ubuntu/rtl8821ce-bt/rtk_bt.c b/ubuntu/rtl8821ce-bt/rtk_bt.c
index cead9ee..1c7f86d 100644
--- a/ubuntu/rtl8821ce-bt/rtk_bt.c
+++ b/ubuntu/rtl8821ce-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,
 	}, { }
 };