Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 328c9248 authored by Hemant Gupta's avatar Hemant Gupta Committed by Gustavo Padovan
Browse files

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: default avatarHemant Gupta <hemant.gupta@stericsson.com>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent b24c6247
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
		}