2009-04-19 19:35:47

by Gustavo F. Padovan

[permalink] [raw]
Subject: [PATCH] Bluetooth: add support for Integrated System Solution devices

Just add the device id to btusb. I tested with obexd and hcitool info
<baddr> and it works. But there is an issue yet, l2ping disconnects after
10 seconds.

Signed-off-by: Gustavo F. Padovan <[email protected]>
---
drivers/bluetooth/btusb.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index e70c57e..9df83a7 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -131,6 +131,9 @@ static struct usb_device_id blacklist_table[] = {
{ USB_DEVICE(0x08fd, 0x0001), .driver_info = BTUSB_DIGIANSWER },
{ USB_DEVICE(0x08fd, 0x0002), .driver_info = BTUSB_IGNORE },

+ /* Integrated System Solution devices */
+ { USB_DEVICE(0x1131, 0x1004), .driver_info = BTUSB_WRONG_SCO_MTU },
+
/* CSR BlueCore Bluetooth Sniffer */
{ USB_DEVICE(0x0a12, 0x0002), .driver_info = BTUSB_SNIFFER },

--
1.6.0.6



2009-04-24 06:37:15

by Dominique Meeùs

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: add support for Integrated System Solution devices

Gustavo F. Padovan a écrit ce qui suit, le 19/04/09 21:35 :
> Just add the device id to btusb...
>
> + /* Integrated System Solution devices */
> + { USB_DEVICE(0x1131, 0x1004), .driver_info = BTUSB_WRONG_SCO_MTU },
>
I have hciconfig -a
hci0: Type: USB
...
UP RUNNING
...
Can't read local name on hci0: Connection timed out (110)

with the Broadcom based D-Link: lsusb
Bus 003 Device 002: ID 2001:f111 D-Link Corp. [hex] DBT-122 Bluetooth
adapter

Is it the same problem? Could it be solved the same way?




2009-04-23 16:07:53

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: add support for Integrated System Solution devices

Hi Gustavo,

> > Just add the device id to btusb. I tested with obexd and hcitool info
> > <baddr> and it works. But there is an issue yet, l2ping disconnects after
> > 10 seconds.
> >
> > Signed-off-by: Gustavo F. Padovan <[email protected]>
> > ---
> > drivers/bluetooth/btusb.c | 3 +++
> > 1 files changed, 3 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> > index e70c57e..9df83a7 100644
> > --- a/drivers/bluetooth/btusb.c
> > +++ b/drivers/bluetooth/btusb.c
> > @@ -131,6 +131,9 @@ static struct usb_device_id blacklist_table[] = {
> > { USB_DEVICE(0x08fd, 0x0001), .driver_info = BTUSB_DIGIANSWER },
> > { USB_DEVICE(0x08fd, 0x0002), .driver_info = BTUSB_IGNORE },
> >
> > + /* Integrated System Solution devices */
> > + { USB_DEVICE(0x1131, 0x1004), .driver_info = BTUSB_WRONG_SCO_MTU },
> > +
> > /* CSR BlueCore Bluetooth Sniffer */
> > { USB_DEVICE(0x0a12, 0x0002), .driver_info = BTUSB_SNIFFER },
> >
> > --
> > 1.6.0.6
>
>
> Proving that we need this:
>
> before patch:
> - /proc/bus/usb/devices: http://pastebin.com/m18d4d0a1
> - hciconfig -a: http://pastebin.com/m44e553cb
>
> after patch:
> - /proc/bus/usb/devices:http://pastebin.com/m5d7add7d
> - hciconfig -a: http://pastebin.com/m58522f0c

you are confusing me. Can you make sure you local Broadcom dongle is off
via the RFKILL switch and doesn't show up in lsusb.

Regards

Marcel



2009-04-23 15:57:48

by Gustavo F. Padovan

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: add support for Integrated System Solution devices

On Sun, Apr 19, 2009 at 4:35 PM, Gustavo F. Padovan
<[email protected]> wrote:
> Just add the device id to btusb. I tested with obexd and hcitool info
> <baddr> and it works. But there is an issue yet, l2ping disconnects after
> 10 seconds.
>
> Signed-off-by: Gustavo F. Padovan <[email protected]>
> ---
> ?drivers/bluetooth/btusb.c | ? ?3 +++
> ?1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index e70c57e..9df83a7 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -131,6 +131,9 @@ static struct usb_device_id blacklist_table[] = {
> ? ? ? ?{ USB_DEVICE(0x08fd, 0x0001), .driver_info = BTUSB_DIGIANSWER },
> ? ? ? ?{ USB_DEVICE(0x08fd, 0x0002), .driver_info = BTUSB_IGNORE },
>
> + ? ? ? /* Integrated System Solution devices */
> + ? ? ? { USB_DEVICE(0x1131, 0x1004), .driver_info = BTUSB_WRONG_SCO_MTU },
> +
> ? ? ? ?/* CSR BlueCore Bluetooth Sniffer */
> ? ? ? ?{ USB_DEVICE(0x0a12, 0x0002), .driver_info = BTUSB_SNIFFER },
>
> --
> 1.6.0.6


Proving that we need this:

before patch:
- /proc/bus/usb/devices: http://pastebin.com/m18d4d0a1
- hciconfig -a: http://pastebin.com/m44e553cb

after patch:
- /proc/bus/usb/devices:http://pastebin.com/m5d7add7d
- hciconfig -a: http://pastebin.com/m58522f0c

>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>



--
Gustavo F. Padovan

Computer Engineering Student
Institute of Computing - IC
University of Campinas - UNICAMP

email: [email protected]
irc: padovan at freenode.net
mobile: +55 19 81030803