Skip to content

Commit c734977

Browse files
committed
Bluetooth: hci_event: Fix not marking Broadcast Sink BIS as connected
Upon receiving HCI_EVT_LE_BIG_SYNC_ESTABLISHED with status 0x00 (success) the corresponding BIS hci_conn state shall be set to BT_CONNECTED otherwise they will be left with BT_OPEN which is invalid at that point, also create the debugfs and sysfs entries following the same logic as the likes of Broadcast Source BIS and CIS connections. Fixes: f777d88 ("Bluetooth: ISO: Notify user space about failed bis connections") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 314d30b commit c734977

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/bluetooth/hci_event.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6966,7 +6966,10 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,
69666966
bis->iso_qos.bcast.in.sdu = le16_to_cpu(ev->max_pdu);
69676967

69686968
if (!ev->status) {
6969+
bis->state = BT_CONNECTED;
69696970
set_bit(HCI_CONN_BIG_SYNC, &bis->flags);
6971+
hci_debugfs_create_conn(bis);
6972+
hci_conn_add_sysfs(bis);
69706973
hci_iso_setup_path(bis);
69716974
}
69726975
}

0 commit comments

Comments
 (0)