mbox series

[0/2] Bluetooth: ISO: Miscellaneous fixes

Message ID 20231011142408.5529-1-iulia.tanasescu@nxp.com
Headers show
Series Bluetooth: ISO: Miscellaneous fixes | expand

Message

Iulia Tanasescu Oct. 11, 2023, 2:24 p.m. UTC
Currently, slave bis hcons and pa sync hcons are marked with the
same flags, so they are handled the same at cleanup.

The first commit makes it so that closing all bis hcons will
trigger BIG Terminate Sync, while closing all bises and the
pa sync hcon will also trigger PA Terminate Sync.

The second commit fixes the way broadcast events are handled
by the ISO layer: A new slave BIS hcon is notified after the
Command Complete for LE Setup ISO Data Path is received, not
after BIG Sync Established.

The iso_match_pa_sync_flag function has also been replaced with
more specific matching functions, depending on the event being
handled.

Iulia Tanasescu (2):
  Bluetooth: ISO: Fix bcast listener cleanup
  Bluetoth: ISO: Fix broadcast event handling

 include/net/bluetooth/hci_core.h |  46 +++++++-------
 net/bluetooth/hci_conn.c         |  38 +++++++++---
 net/bluetooth/hci_core.c         |  50 ++++++++++-----
 net/bluetooth/hci_event.c        |  10 ---
 net/bluetooth/iso.c              | 101 +++++++++++++++++++++++++------
 5 files changed, 169 insertions(+), 76 deletions(-)


base-commit: b8ba8e65e84b99d58e278900b4261ef17a20eb27