From: Marcel Holtmann Date: Fri, 28 Oct 2005 17:20:57 +0000 (+0200) Subject: [Bluetooth] Ignore additional interfaces of BPA 100/105 devices X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=245dc3d19b6ff7db42c9f3cca9006c8db59e2dee;p=openwrt%2Fstaging%2Fblogic.git [Bluetooth] Ignore additional interfaces of BPA 100/105 devices 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 --- diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 4fa85234d8b5..0db0400519c9 100644 --- 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");