From: Marcel Holtmann Date: Tue, 18 Feb 2014 22:22:20 +0000 (-0800) Subject: Bluetooth: Use connection address for reporting connection failures X-Git-Tag: v5.15~17544^2~11^2~7^2~45^2~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64c7b77c124c71166d1dd49fc7e8d6fee7d9b01b;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index d7c7095..22bfc5c 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) } else { conn->state = BT_CLOSED; if (conn->type == ACL_LINK) - mgmt_connect_failed(hdev, &ev->bdaddr, conn->type, + mgmt_connect_failed(hdev, &conn->dst, conn->type, conn->dst_type, ev->status); }