Re: l2cap sockets not properly multiplexed on ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tim,

>> Can you have a look at Documentation/dynamic-debug-howto.txt and enable the debug section for the bluetooth.ko kernel module. I wonder if we see something fishy in there.
> 
> That document looks rather long and confusing...  what exactly do I need to type to get the debugging statements working for bluetooth.ko?

This how you enable it based on file name:

echo -n "file l2cap_core.c +pfl" > /sys/kernel/debug/dynamic_debug/control
echo -n "file l2cap_sock.c +pfl" > /sys/kernel/debug/dynamic_debug/control

Or enabling for the whole module like this:

echo -n “module bluetooth +pfl" > /sys/kernel/debug/dynamic_debug/control

>> Do you have the chance to run bluetooth-next tree for testing purposes? I rather debug this against the latest tree. I have no ARM platform lying around. So you have to be my test subject ;)
> 
> My understanding is that the latest versions of the bluetooth code require kernel versions past 3.4, is this correct?  Most of the devices I have only have the 3.0 kernel available because they're intended to run Android.  Or is it possible to run it with the 3.4 kernel?  In either case, where can I find the bluetooth-next tree?

You can always run older userspace on newer kernel. At least that is what is suppose to work. So newer kernel should expose the same interface. Unless we are talking like 5 years old userspace. Then we might be in trouble. However running a bluetooth-next instead of 3.0 or 3.4 is certainly possible.

You find the latest kernel code here:

git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git

We need to find the spot where we for some reason send the SKB to the wrong socket. And that only for ARM as it seems. Seriously, this is a strange behavior.

Btw. sending on the socket works just fine? Meaning btmon shows it going out with the correct ACL handle to the right remote LE device?

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux