]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Bluetooth: hci_sync: Fix attempting to send HCI_Disconnect to BIS handle
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 3 Jul 2025 13:45:08 +0000 (09:45 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 3 Jul 2025 15:37:24 +0000 (11:37 -0400)
BIS/PA connections do have their own cleanup proceedure which are
performed by hci_conn_cleanup/bis_cleanup.

Fixes: 23205562ffc8 ("Bluetooth: separate CIS_LINK and BIS_LINK link types")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c

index 0066627c05ebb98d7fd8b8a9793b4da5fab2a5ee..5f178db8d40d4fe6b5baa063bfff3c2df95f7baf 100644 (file)
@@ -5493,7 +5493,7 @@ static int hci_disconnect_sync(struct hci_dev *hdev, struct hci_conn *conn,
 {
        struct hci_cp_disconnect cp;
 
-       if (test_bit(HCI_CONN_BIG_CREATED, &conn->flags)) {
+       if (conn->type == BIS_LINK) {
                /* This is a BIS connection, hci_conn_del will
                 * do the necessary cleanup.
                 */