diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-15 21:06:56 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-09-08 19:07:52 +0200 |
commit | 5477610fc187d4aae0f699d21dfb0e3f440f7de7 (patch) | |
tree | 06f77a7d218c42aba1a9aab6baa581630b2ef834 /net/bluetooth/hci_event.c | |
parent | 08853f18eafe65aa97deb464c28505a67c898b0e (diff) | |
download | op-kernel-dev-5477610fc187d4aae0f699d21dfb0e3f440f7de7.zip op-kernel-dev-5477610fc187d4aae0f699d21dfb0e3f440f7de7.tar.gz |
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>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index e8f35a9..d2ee162 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -4225,7 +4225,8 @@ static void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) hci_proto_connect_cfm(conn, ev->status); - params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type); + params = hci_pend_le_action_lookup(&hdev->pend_le_conns, &conn->dst, + conn->dst_type); if (params) { list_del_init(¶ms->action); if (params->conn) { |