]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e97bd297d050c424fd2105a6dce5e973a685b6e
tree1dca2dc1271442b9b81ae2389eb644352c2c2f95
parent79cb6cf3ec8863b5cf3c28e7ba2fb48152f93503
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