summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-04 12:37:26 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-04 11:58:10 +0200
commit501f882741b139da22bb3ba4bc615a6eadce5038 (patch)
tree1dcd88ff24a0e93867c8a1f2cf7aaddff6d38eee /net/bluetooth/hci_event.c
parentd9b3ad7df101a6490272771f1aabbaa623a196f3 (diff)
Bluetooth: Make hci_pend_le_conn_lookup more general purposed
In some circumstances we need to look up entries in pend_le_conns and in other in pend_le_reports. This patch converts the existing lookup function for pend_le_conns to something that can be used for both lists. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 9e0b2e888bba..9274cd228995 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -4194,7 +4194,7 @@ static bool check_pending_le_conn(struct hci_dev *hdev, bdaddr_t *addr,
{
struct hci_conn *conn;
- if (!hci_pend_le_conn_lookup(hdev, addr, addr_type))
+ if (!hci_pend_le_action_lookup(&hdev->pend_le_conns, addr, addr_type))
return false;
conn = hci_connect_le(hdev, addr, addr_type, BT_SECURITY_LOW,