All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/4] Add mgmt event for BIGInfo report
@ 2023-08-24 10:24 Iulia Tanasescu
  2023-08-24 10:24 ` [PATCH BlueZ 1/4] lib/mgmt: " Iulia Tanasescu
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Iulia Tanasescu @ 2023-08-24 10:24 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
	vlad.pruteanu, andrei.istodorescu, Iulia Tanasescu

This patch introduces MGMT events for BIGInfo advertising reports, so
that the event can be passed from kernel to userspace.

This patch also adds the sync_handle field to the bt_iso_bcast_qos
structure.

These changes are needed in order to implement the BASS Set Broadcast
Code operation - a BASS Server is required to inspect BIGInfo advertising
reports received from a Broadcast Source, to determine if the BIG is
encrypted or not. The Server is only able to associate a Broadcast Source
with a received BIGInfo report by looking at the sync_handle field. This
is why the sync_handle needs to be available in the QoS structure, so it
can e retrieved via getsockopt, once PA sync is established.

This patch depends on the kernel updates introduced by
https://patchwork.kernel.org/project/bluetooth/cover/20230824101635.25662-1-iulia.tanasescu@nxp.com/

Iulia Tanasescu (4):
  lib/mgmt: Add mgmt event for BIGInfo report
  monitor: Add decoding support for BIGInfo mgmt event
  monitor: Fix decoding issue for hci BIGInfo report
  lib: Add sync_handle to bcast QoS

 lib/bluetooth.h   |  1 +
 lib/mgmt.h        | 18 ++++++++++++++++++
 monitor/control.c | 25 +++++++++++++++++++++++++
 monitor/packet.c  | 35 ++++++++++++++++++++++++++++++++++-
 4 files changed, 78 insertions(+), 1 deletion(-)


base-commit: 60731cab5891ad2be01f5fcdbf5908aff7df4fd1
-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH BlueZ 1/4] lib/mgmt: Add mgmt event for BIGInfo report
@ 2023-08-21 12:03 Iulia Tanasescu
  2023-08-21 14:01 ` bluez.test.bot
  0 siblings, 1 reply; 9+ messages in thread
From: Iulia Tanasescu @ 2023-08-21 12:03 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
	vlad.pruteanu, andrei.istodorescu, Iulia Tanasescu

This adds the MGMT_EV_LE_BIG_INFO_ADV_REPORT event.

---
 lib/mgmt.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/lib/mgmt.h b/lib/mgmt.h
index 8f92b7731..f075d435c 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -4,6 +4,7 @@
  *
  *  Copyright (C) 2010  Nokia Corporation
  *  Copyright (C) 2010  Marcel Holtmann <marcel@holtmann.org>
+ *  Copyright 2023 NXP
  *
  *
  */
@@ -1092,6 +1093,23 @@ struct mgmt_ev_mesh_pkt_cmplt {
 	uint8_t	handle;
 } __packed;
 
+#define MGMT_EV_LE_BIG_INFO_ADV_REPORT	0x0033
+struct mgmt_ev_le_big_info_adv_report {
+	uint16_t sync_handle;
+	uint8_t num_bis;
+	uint8_t nse;
+	uint16_t iso_interval;
+	uint8_t bn;
+	uint8_t pto;
+	uint8_t irc;
+	uint16_t max_pdu;
+	uint8_t sdu_interval[3];
+	uint16_t max_sdu;
+	uint8_t phy;
+	uint8_t framing;
+	uint8_t encryption;
+} __packed;
+
 static const char *mgmt_op[] = {
 	"<0x0000>",
 	"Read Version",
-- 
2.34.1


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

end of thread, other threads:[~2023-08-30 18:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-24 10:24 [PATCH BlueZ 0/4] Add mgmt event for BIGInfo report Iulia Tanasescu
2023-08-24 10:24 ` [PATCH BlueZ 1/4] lib/mgmt: " Iulia Tanasescu
2023-08-24 12:49   ` bluez.test.bot
2023-08-24 10:24 ` [PATCH BlueZ 2/4] monitor: Add decoding support for BIGInfo mgmt event Iulia Tanasescu
2023-08-25 20:05   ` Luiz Augusto von Dentz
2023-08-30 15:13     ` Iulia Tanasescu
2023-08-24 10:24 ` [PATCH BlueZ 3/4] monitor: Fix decoding issue for hci BIGInfo report Iulia Tanasescu
2023-08-24 10:24 ` [PATCH BlueZ 4/4] lib: Add sync_handle to bcast QoS Iulia Tanasescu
  -- strict thread matches above, loose matches on Subject: below --
2023-08-21 12:03 [PATCH BlueZ 1/4] lib/mgmt: Add mgmt event for BIGInfo report Iulia Tanasescu
2023-08-21 14:01 ` bluez.test.bot

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.