diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-10-21 17:03:01 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-10-21 18:38:22 +0200 |
commit | 9d4c1cc15b14b4a96ddfcfac533a12f9f527c129 (patch) | |
tree | 62aa03d25ea1af75017bd23e85c25327bf7d83aa /net/bluetooth/hci_event.c | |
parent | Bluetooth: Add hci_conn_hash_lookup_le() helper function (diff) | |
download | linux-9d4c1cc15b14b4a96ddfcfac533a12f9f527c129.tar.xz linux-9d4c1cc15b14b4a96ddfcfac533a12f9f527c129.zip |
Bluetooth: Use hci_conn_hash_lookup_le() when possible
Use the new hci_conn_hash_lookup_le() API to look up LE connections.
This way we're guaranteed exact matches that also take into account
the address type.
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 b4571d84cafa..504892cfb25a 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -1915,7 +1915,8 @@ static void hci_cs_le_create_conn(struct hci_dev *hdev, u8 status) hci_dev_lock(hdev); - conn = hci_conn_hash_lookup_ba(hdev, LE_LINK, &cp->peer_addr); + conn = hci_conn_hash_lookup_le(hdev, &cp->peer_addr, + cp->peer_addr_type); if (!conn) goto unlock; |