From: Ido Yariv Date: Fri, 20 Apr 2012 18:46:07 +0000 (-0300) Subject: Bluetooth: Search global l2cap channels by src/dst addresses X-Git-Tag: v3.5-rc1~101^2~6^2^2^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c22876814ee9cc72f84996b78203b5530c61bee8;p=pandora-kernel.git 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 Signed-off-by: Arik Nemtsov Tested-by: João Paulo Rechi Vita Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed