mbox series

[0/1] Bluetooth: ISO: Pass BIG encryption info through QoS

Message ID 20230906140103.9183-1-iulia.tanasescu@nxp.com
Headers show
Series Bluetooth: ISO: Pass BIG encryption info through QoS | expand

Message

Iulia Tanasescu Sept. 6, 2023, 2:01 p.m. UTC
This patch enables the ISO layer to set the encryption field of
the broadcast QoS struct, according to a BIGInfo advertising report
received after PA sync establishment.

This is useful for the broadcast sink scenario: the userspace
opens a socket and starts listening for a PA sync connection.
If the PA is associated with an encrypted BIG, the userspace
needs to be informed.

After PA sync has been successfully established and the first
BIGInfo advertising report is received, a new hcon is added and
notified to the ISO layer. The ISO layer sets the encryption
field of the socket and hcon QoS according to the encryption
parameter of the BIGInfo advertising report event.

After that, the userspace is woken up, and the QoS of the new
PA sync socket can be read, to inspect the encryption field
and follow up accordingly.

Iulia Tanasescu (1):
  Bluetooth: ISO: Pass BIG encryption info through QoS

 include/net/bluetooth/hci.h      |  3 ++
 include/net/bluetooth/hci_core.h | 25 ++++++++++++++-
 net/bluetooth/hci_conn.c         |  1 +
 net/bluetooth/hci_event.c        | 54 +++++++++++++++++++++++---------
 net/bluetooth/iso.c              | 19 ++++++++---
 5 files changed, 82 insertions(+), 20 deletions(-)


base-commit: 75d095daab9fa1d299fa79ebc7ab5dfbead877ca