Bluetooth: ISO: Do not emit LE PA Create Sync if previous is pending
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Fri, 1 Nov 2024 08:23:36 +0000 (10:23 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Nov 2024 20:36:15 +0000 (15:36 -0500)
commit4a5e0ba68676b3a77298cf646cd2b39c94fbd2f5
tree9684454a7ed18ba643c39248fa055dfe1f029356
parent2dc98ac1cb9ce8a8ab9967aaaf0abb3496e7fedb
Bluetooth: ISO: Do not emit LE PA Create Sync if previous is pending

The Bluetooth Core spec does not allow a LE PA Create sync command to be
sent to Controller if another one is pending (Vol 4, Part E, page 2493).

In order to avoid this issue, the HCI_CONN_CREATE_PA_SYNC was added
to mark that the LE PA Create Sync command has been sent for a hcon.
Once the PA Sync Established event is received, the hcon flag is
erased and the next pending hcon is handled.

Signed-off-by: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c