diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-02-18 17:22:20 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-18 23:08:47 -0500 |
commit | 64c7b77c124c71166d1dd49fc7e8d6fee7d9b01b (patch) | |
tree | 7cfe45cc06d170232433b2585b460dad79a6085e /net/bluetooth/hci_event.c | |
parent | 01fdb0fc6e937eeff7b20d0e217408cee9ec05af (diff) |
Bluetooth: Use connection address for reporting connection failures
When reporting connect failed events to userspace, use the address
of the connection and not the address from the HCI event.
This change is strictly speaking not needed since BR/EDR does not
have the concept of resolvable random addresses. It is more for
making the code consistent.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index d7c709519e31..22bfc5c17e7f 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -1704,7 +1704,7 @@ static void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
1704 | } else { | 1704 | } else { |
1705 | conn->state = BT_CLOSED; | 1705 | conn->state = BT_CLOSED; |
1706 | if (conn->type == ACL_LINK) | 1706 | if (conn->type == ACL_LINK) |
1707 | mgmt_connect_failed(hdev, &ev->bdaddr, conn->type, | 1707 | mgmt_connect_failed(hdev, &conn->dst, conn->type, |
1708 | conn->dst_type, ev->status); | 1708 | conn->dst_type, ev->status); |
1709 | } | 1709 | } |
1710 | 1710 | ||