]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/bluetooth/hci_event.c
Bluetooth: Use connection address for reporting connection failures
[mirror_ubuntu-artful-kernel.git] / net / bluetooth / hci_event.c
index d7c709519e31fd7c01fac0176de284f90fd4cbcc..22bfc5c17e7f792c7735d43a937c2eaa9aa3e44d 100644 (file)
@@ -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);
        }