]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_core: Fix sending MGMT_EV_CONNECT_FAILED
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 30 Aug 2024 21:29:27 +0000 (17:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:28:57 +0000 (16:28 +0200)
commitea8d90a5b04aa7fd6f6dea89d07a359ed54b2b9b
tree8c622c777e3e9be1d80f3b641000ed7a69657403
parent84398204c5df5aaf89453056cf0647cda9664d2b
Bluetooth: hci_core: Fix sending MGMT_EV_CONNECT_FAILED

[ Upstream commit d47da6bd4cfa982fe903f33423b9e2ec541e9496 ]

If HCI_CONN_MGMT_CONNECTED has been set then the event shall be
HCI_CONN_MGMT_DISCONNECTED.

Fixes: b644ba336997 ("Bluetooth: Update device_connected and device_found events to latest API")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/mgmt.c