Bluetooth: Optimize connection parameter lookup for LE connections
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Aug 2014 18:06:56 +0000 (21:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 17:07:52 +0000 (19:07 +0200)
commit5477610fc187d4aae0f699d21dfb0e3f440f7de7
tree06f77a7d218c42aba1a9aab6baa581630b2ef834
parent08853f18eafe65aa97deb464c28505a67c898b0e
Bluetooth: Optimize connection parameter lookup for LE connections

When we get an LE connection complete event there's really no reason to
look through the entire connection parameter list as the entry should be
present in the hdev->pend_le_conns list too. This patch changes the
lookup code to do a more restricted lookup only in the pend_le_conns
list.

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