summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHemant Gupta <hemant.gupta@stericsson.com>2012-04-05 16:51:04 +0530
committerGustavo Padovan <gustavo@padovan.org>2012-05-09 00:41:38 -0300
commit328c9248bfa7f5e1490ee82e9027e14c3ecc0485 (patch)
tree2f2482dad3db1109a52d4722efe5cfca4c0bcbb1
parentb24c62471c276b7ac6105e832eb6fe3c41a654ef (diff)
downloadlinux-stable-328c9248bfa7f5e1490ee82e9027e14c3ecc0485.tar.gz
linux-stable-328c9248bfa7f5e1490ee82e9027e14c3ecc0485.tar.bz2
linux-stable-328c9248bfa7f5e1490ee82e9027e14c3ecc0485.zip
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 <hemant.gupta@stericsson.com> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
-rw-r--r--net/bluetooth/hci_event.c2
1 files changed, 2 insertions, 0 deletions
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);
}