Bluetooth: Search global l2cap channels by src/dst addresses
authorIdo Yariv <ido@wizery.com>
Fri, 20 Apr 2012 18:46:07 +0000 (15:46 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 04:40:41 +0000 (01:40 -0300)
commitc22876814ee9cc72f84996b78203b5530c61bee8
tree1dca2dc1271442b9b81ae2389eb644352c2c2f95
parentd8ce9395252fa9a264c04e7ab9949f4f7ec96f5b
Bluetooth: Search global l2cap channels by src/dst addresses

The cid or psm and the source address might not be enough to uniquely
identify a global channel, especially when the source address is our
own.

For instance, when trying to communicate with two LE devices in master
mode, data received from the both devices is sent to the same socket.

Fix this by taking the destination address into account when choosing
the socket.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Tested-by: João Paulo Rechi Vita <jprvita@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/l2cap_core.c
This page took 0.026738 seconds and 5 git commands to generate.