|
@@ -2321,6 +2321,27 @@ static int btusb_set_bdaddr_intel(struct hci_dev *hdev, const bdaddr_t *bdaddr)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static int btusb_shutdown_intel(struct hci_dev *hdev)
|
|
|
|
+{
|
|
|
|
+ struct sk_buff *skb;
|
|
|
|
+ long ret;
|
|
|
|
+
|
|
|
|
+ /* Some platforms have an issue with BT LED when the interface is
|
|
|
|
+ * down or BT radio is turned off, which takes 5 seconds to BT LED
|
|
|
|
+ * goes off. This command turns off the BT LED immediately.
|
|
|
|
+ */
|
|
|
|
+ skb = __hci_cmd_sync(hdev, 0xfc3f, 0, NULL, HCI_INIT_TIMEOUT);
|
|
|
|
+ if (IS_ERR(skb)) {
|
|
|
|
+ ret = PTR_ERR(skb);
|
|
|
|
+ BT_ERR("%s: turning off Intel device LED failed (%ld)",
|
|
|
|
+ hdev->name, ret);
|
|
|
|
+ return ret;
|
|
|
|
+ }
|
|
|
|
+ kfree_skb(skb);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static int btusb_set_bdaddr_marvell(struct hci_dev *hdev,
|
|
static int btusb_set_bdaddr_marvell(struct hci_dev *hdev,
|
|
const bdaddr_t *bdaddr)
|
|
const bdaddr_t *bdaddr)
|
|
{
|
|
{
|
|
@@ -2698,6 +2719,7 @@ static int btusb_probe(struct usb_interface *intf,
|
|
|
|
|
|
if (id->driver_info & BTUSB_INTEL) {
|
|
if (id->driver_info & BTUSB_INTEL) {
|
|
hdev->setup = btusb_setup_intel;
|
|
hdev->setup = btusb_setup_intel;
|
|
|
|
+ hdev->shutdown = btusb_shutdown_intel;
|
|
hdev->set_bdaddr = btusb_set_bdaddr_intel;
|
|
hdev->set_bdaddr = btusb_set_bdaddr_intel;
|
|
set_bit(HCI_QUIRK_STRICT_DUPLICATE_FILTER, &hdev->quirks);
|
|
set_bit(HCI_QUIRK_STRICT_DUPLICATE_FILTER, &hdev->quirks);
|
|
}
|
|
}
|