From: Hemant Gupta Date: Thu, 5 Apr 2012 11:21:04 +0000 (+0530) Subject: Bluetooth: mgmt: Fix missing connect failed event for LE X-Git-Tag: v3.5-rc1~101^2~6^2^2^2~71 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=328c9248bfa7f5e1490ee82e9027e14c3ecc0485;p=karo-tx-linux.git Bluetooth: mgmt: Fix missing connect failed event for LE This patch adds management connect failed event when LE Create Connection Command fails to inform user space that LE Connection failed to get established. Signed-off-by: Hemant Gupta Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 1778b18ffd97..054b1ad74496 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -1648,6 +1648,8 @@ static void hci_cs_le_create_conn(struct hci_dev *hdev, __u8 status) if (status) { if (conn && conn->state == BT_CONNECT) { conn->state = BT_CLOSED; + mgmt_connect_failed(hdev, &cp->peer_addr, conn->type, + conn->dst_type, status); hci_proto_connect_cfm(conn, status); hci_conn_del(conn); }