Skip to content
Commit 3b9e2e14 authored by Pauli Virtanen's avatar Pauli Virtanen Committed by Greg Kroah-Hartman
Browse files

Bluetooth: hci_sync: delete CIS in BT_OPEN/CONNECT/BOUND when aborting



[ Upstream commit 2889bdd0 ]

Dropped CIS that are in state BT_OPEN/BT_BOUND, and in state BT_CONNECT
with HCI_CONN_CREATE_CIS unset, should be cleaned up immediately.
Closing CIS ISO sockets should result to the hci_conn be deleted, so
that potentially pending CIG removal can run.

hci_abort_conn cannot refer to them by handle, since their handle is
still unset if Set CIG Parameters has not yet completed.

This fixes CIS not being terminated if the socket is shut down
immediately after connection, so that the hci_abort_conn runs before Set
CIG Parameters completes. See new BlueZ test "ISO Connect Close - Success"

Signed-off-by: default avatarPauli Virtanen <pav@iki.fi>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Stable-dep-of: a239110e ("Bluetooth: hci_sync: always check if connection is alive before deleting")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8f3a578a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment