Skip to content

Commit 7ef934b

Browse files
holtmanndavem330
authored andcommitted
[Bluetooth]: Add another ignore parameter to the HCI USB driver
This patchs adds the module parameter ignore_dga to the HCI USB driver which makes it possible to prevent this driver from being loaded by some buggy Digianswer devices. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 89f5f0a commit 7ef934b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/bluetooth/hci_usb.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
#endif
6666

6767
static int ignore = 0;
68+
static int ignore_dga = 0;
6869
static int ignore_csr = 0;
6970
static int ignore_sniffer = 0;
7071
static int reset = 0;
@@ -841,6 +842,9 @@ static int hci_usb_probe(struct usb_interface *intf, const struct usb_device_id
841842
if (ignore || id->driver_info & HCI_IGNORE)
842843
return -ENODEV;
843844

845+
if (ignore_dga && id->driver_info & HCI_DIGIANSWER)
846+
return -ENODEV;
847+
844848
if (ignore_csr && id->driver_info & HCI_CSR)
845849
return -ENODEV;
846850

@@ -1070,6 +1074,9 @@ module_exit(hci_usb_exit);
10701074
module_param(ignore, bool, 0644);
10711075
MODULE_PARM_DESC(ignore, "Ignore devices from the matching table");
10721076

1077+
module_param(ignore_dga, bool, 0644);
1078+
MODULE_PARM_DESC(ignore_dga, "Ignore devices with id 08fd:0001");
1079+
10731080
module_param(ignore_csr, bool, 0644);
10741081
MODULE_PARM_DESC(ignore_csr, "Ignore devices with id 0a12:0001");
10751082

0 commit comments

Comments
 (0)