All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated
@ 2024-04-02 11:39 Iulia Tanasescu
  2024-04-02 11:39 ` [PATCH 1/2] Bluetooth: ISO: Make iso_get_sock_listen generic Iulia Tanasescu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Iulia Tanasescu @ 2024-04-02 11:39 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
	vlad.pruteanu, andrei.istodorescu, luiz.dentz, Iulia Tanasescu

In case of a Broadcast Source that has PA enabled but no active BIG,
a Broadcast Sink needs to establish PA sync and parse BASE from PA
reports.

This commit moves the allocation of a PA sync hcon from the BIGInfo
advertising report event to the PA sync established event. After the
first complete PA report, the hcon is notified to the ISO layer. A
child socket is allocated and enqueued in the parent's accept queue.

BIGInfo reports also need to be processed, to extract the encryption
field and inform userspace. After the first BIGInfo report is received,
the PA sync hcon is notified again to the ISO layer. Since a socket will
be found this time, the socket state will transition to BT_CONNECTED and
the userspace will be woken up using sk_state_change.

Iulia Tanasescu (2):
  Bluetooth: ISO: Make iso_get_sock_listen generic
  Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated

 include/net/bluetooth/hci_core.h |   3 +-
 net/bluetooth/hci_event.c        |  58 ++++++------
 net/bluetooth/iso.c              | 149 +++++++++++++++----------------
 3 files changed, 106 insertions(+), 104 deletions(-)


base-commit: 2216e1eabc7ca013eb1e8007846253dee72dcb76
-- 
2.39.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-02 17:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 11:39 [PATCH 0/2] Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated Iulia Tanasescu
2024-04-02 11:39 ` [PATCH 1/2] Bluetooth: ISO: Make iso_get_sock_listen generic Iulia Tanasescu
2024-04-02 12:42   ` Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated bluez.test.bot
2024-04-02 15:43   ` [PATCH 1/2] Bluetooth: ISO: Make iso_get_sock_listen generic Luiz Augusto von Dentz
2024-04-02 11:39 ` [PATCH 2/2] Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated Iulia Tanasescu
2024-04-02 17:30 ` [PATCH 0/2] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.