projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd7f552
)
[Bluetooth] Ignore additional interfaces of BPA 100/105 devices
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 28 Oct 2005 17:20:57 +0000
(19:20 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 28 Oct 2005 17:20:57 +0000
(19:20 +0200)
If a BPA 100/105 device contains more then one interface then ignore the
additional interfaces, because they are unused.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/bpa10x.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/bpa10x.c
b/drivers/bluetooth/bpa10x.c
index 4fa85234d8b5e16b4e31c9a7dbdbe4f1214c1d7f..0db0400519c95ee5f32bd576f371580ae8c6f463 100644
(file)
--- a/
drivers/bluetooth/bpa10x.c
+++ b/
drivers/bluetooth/bpa10x.c
@@
-550,6
+550,9
@@
static int bpa10x_probe(struct usb_interface *intf, const struct usb_device_id *
if (ignore)
return -ENODEV;
+ if (intf->cur_altsetting->desc.bInterfaceNumber > 0)
+ return -ENODEV;
+
data = kmalloc(sizeof(*data), GFP_KERNEL);
if (!data) {
BT_ERR("Can't allocate data structure");