Skip to content

Instantly share code, notes, and snippets.

@carlocaione
Created March 26, 2015 14:40
Show Gist options
  • Save carlocaione/79aec1f38f58b829cd09 to your computer and use it in GitHub Desktop.
Save carlocaione/79aec1f38f58b829cd09 to your computer and use it in GitHub Desktop.
diff --git a/btusb.c b/btusb.c
index 550fec1..1147684 100644
--- a/btusb.c
+++ b/btusb.c
@@ -3234,8 +3234,12 @@ static int btusb_probe(struct usb_interface *intf,
if (id->driver_info & BTUSB_RTL8723A)
hdev->setup = btusb_setup_rtl8723a;
- if (id->driver_info & BTUSB_RTL8723B)
+ if (id->driver_info & BTUSB_RTL8723B) {
+ set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks);
+ if (!device_may_wakeup(&(data->udev->dev)))
+ intf->needs_binding = 1;
hdev->setup = btusb_setup_rtl8723b;
+ }
if (id->driver_info & BTUSB_INTEL) {
hdev->setup = btusb_setup_intel;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment