aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-02-18 17:22:19 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-18 23:05:09 -0500
commit01fdb0fc6e937eeff7b20d0e217408cee9ec05af (patch)
tree16f344ea60b99e64d9ee0fd5f9f19e1aef3eecc8 /net/bluetooth/hci_event.c
parent2c96e03def3b1ba47a5d0ec0c8ef7935a9bfb3a0 (diff)
Bluetooth: Report identity address when remote device connects
When the remote device has been successfully connected, report the identity address (public address or static random address). Currently the address from the HCI_LE_Connection_Complete event is used. This was no problem so far, but since now known resolvable random addresses are converted into identities, it is important to use the identity of the connection and not the address report by HCI event. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
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 49a2d4d841df..d7c709519e31 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -3618,7 +3618,7 @@ static void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
3618 } 3618 }
3619 3619
3620 if (!test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) 3620 if (!test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags))
3621 mgmt_device_connected(hdev, &ev->bdaddr, conn->type, 3621 mgmt_device_connected(hdev, &conn->dst, conn->type,
3622 conn->dst_type, 0, NULL, 0, NULL); 3622 conn->dst_type, 0, NULL, 0, NULL);
3623 3623
3624 conn->sec_level = BT_SECURITY_LOW; 3624 conn->sec_level = BT_SECURITY_LOW;