mbox series

[0/1] Bluetooth: hci_event: Fix setting of broadcast qos interval and latency

Message ID 20240416102501.42996-1-vlad.pruteanu@nxp.com
Headers show
Series Bluetooth: hci_event: Fix setting of broadcast qos interval and latency | expand

Message

Vlad Pruteanu April 16, 2024, 10:25 a.m. UTC
The latency parameter of the broadcast qos is calculated wrongly.

BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 6, Part G

For framed PDUs:
Transport_Latency_BIG = BIG_Sync_Delay + PTO x (NSE / BN -
IRC) * ISO_Interval + ISO_Interval + SDU_Interval

For unframed PDUs:
Transport_Latency = BIG_Sync_Delay + (PTO x (NSE / BN - IRC) +
1) x ISO_Interval - SDU_Interval

For broadcast sink the latency should be taken directly from the
BIG Sync Established event and for the source it should be taken
from the Create BIG Complete event.

The interval parameter of the broadcast qos reffers to the SDU
Interval and shouldn't be set based on the latency. The Host will
read this value from the BASE.

Vlad Pruteanu (1):
  Bluetooth: hci_event: Fix setting of broadcast qos interval and
    latency

 net/bluetooth/hci_event.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)