mbox series

[0/2] Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated

Message ID 20240402113931.3164-1-iulia.tanasescu@nxp.com (mailing list archive)
Headers show
Series Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated | expand

Message

Iulia Tanasescu April 2, 2024, 11:39 a.m. UTC
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

Comments

patchwork-bot+bluetooth@kernel.org April 2, 2024, 5:30 p.m. UTC | #1
Hello:

This series was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue,  2 Apr 2024 14:39:29 +0300 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [1/2] Bluetooth: ISO: Make iso_get_sock_listen generic
    (no matching commit)
  - [2/2] Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated
    https://git.kernel.org/bluetooth/bluetooth-next/c/3e3fa13686bf

You are awesome, thank you!