Skip to content

Commit

Permalink
[Bluetooth] Ignore additional interfaces of BPA 100/105 devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann committed Oct 28, 2005
1 parent dd7f552 commit 245dc3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/bluetooth/bpa10x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 245dc3d

Please sign in to comment.