Return-Path: Date: Mon, 23 Apr 2012 09:47:20 -0300 From: Gustavo Padovan To: =?iso-8859-1?Q?Jo=E3o?= Paulo Rechi Vita Cc: linux-bluetooth@vger.kernel.org, Ido Yariv , Arik Nemtsov Subject: Re: [PATCH 1/2] Bluetooth: Search global l2cap channels by src/dst addresses Message-ID: <20120423124720.GA18564@joana> References: <1334947568-3437-1-git-send-email-jprvita@openbossa.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <1334947568-3437-1-git-send-email-jprvita@openbossa.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jo?o, * Jo?o Paulo Rechi Vita [2012-04-20 15:46:07 -0300]: > From: Ido Yariv > > 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 > --- > net/bluetooth/l2cap_core.c | 43 +++++++++++++++++++++++++++++++------------ > 1 files changed, 31 insertions(+), 12 deletions(-) Patch has been applied, thanks. Gustavo