]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 23 Apr 2012 12:45:01 +0000 (09:45 -0300)
commit5c90d283145c61a2ec2881aaf234cb71f0541f89
tree6b031fff2493a9fd45883ea463e2127fc8206169
parent3a1fc4c023222f493b650238023de01a0823d6e6
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