Bluetooth: Improve fixed channel lookup based on link type
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 7 Aug 2014 19:56:48 +0000 (22:56 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:14 +0000 (08:49 +0200)
commit54a1b626c96039f172dd2ea15b2671053b3c5a68
treecda042e7010c615b47857b992db6188984617cd3
parente760ec12134d5736065c4e88b0e783cc1fe0d20a
Bluetooth: Improve fixed channel lookup based on link type

When notifying global fixed channels of new connections it doesn't make
sense to consider channels meant for a different link type than the one
available. This patch adds an extra parameter to the
l2cap_global_fixed_chan() lookup function and ensures that only channels
matching the current hci_conn type are looked up.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c