Re: [Bluez-users] BT headset doesn't work: SCO packet for unknown connection

Guillaume Bedot
2008-02-18T13:46:11Z

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

Quoting Vladimir Pouzanov <farcaller@gmail.com>:

> I've got 2.6.24 with bluez libs/utils 3.25
Same as me when i started to have these issues.

> I have successfully paired my headset and PC, I can l2ping it and get info.
[...]
hci_scodata_packet: hci0 SCO packet for unknown
> connection handle 45
> hci_scodata_packet: hci0 SCO packet for unknown
> connection handle 45
> hci_scodata_packet: hci0 SCO packet for unknown
> connection handle 45
> ........
>
> force_scofix=1 doesn't help.
You may have to keep the option, or not...

> Any hints?
Please try this kernel patch and report if it fixes your problem.

Regards,

Guillaume B.

[-- Attachment #2: also-accept-sco-links.patch --]
[-- Type: text/x-patch, Size: 534 bytes --]

--- net/bluetooth/hci_event.c.orig 2008-02-18 14:02:20.000000000 +0100
+++ net/bluetooth/hci_event.c 2008-02-18 14:04:44.000000000 +0100
@@ -1313,8 +1313,14 @@
hci_dev_lock(hdev);

conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr);
- if (!conn)
- goto unlock;
+ if (!conn) {
+ if (ev->link_type==SCO_LINK)
+ conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr);
+ if (!conn)
+ goto unlock;
+ else
+ conn->type=SCO_LINK;
+ }

if (!ev->status) {
conn->handle = __le16_to_cpu(ev->handle);

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]