]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: hci_conn: Fix not setting conn_timeout for Broadcast Receiver
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 9 Apr 2025 20:08:48 +0000 (16:08 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 25 Apr 2025 19:03:19 +0000 (15:03 -0400)
commit6d0417e4e1cf66fd917f06f0454958362714ef7d
tree3d6171301b49997ae24406d74bc061c4db51b06b
parent49ba1ca2e0cc6d2eb0667172f1144c8b85907971
Bluetooth: hci_conn: Fix not setting conn_timeout for Broadcast Receiver

Broadcast Receiver requires creating PA sync but the command just
generates a status so this makes use of __hci_cmd_sync_status_sk to wait
for HCI_EV_LE_PA_SYNC_ESTABLISHED, also because of this chance it is not
longer necessary to use a custom method to serialize the process of
creating the PA sync since the cmd_work_sync itself ensures only one
command would be pending which now awaits for
HCI_EV_LE_PA_SYNC_ESTABLISHED before proceeding to next connection.

Fixes: 4a5e0ba68676 ("Bluetooth: ISO: Do not emit LE PA Create Sync if previous is pending")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
include/net/bluetooth/hci_sync.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c
net/bluetooth/hci_sync.c