diff mbox series

[BlueZ,v5,3/6] shared/bap: Update local PACS for broadcast sink also

Message ID 20240301150029.14386-4-andrei.istodorescu@nxp.com (mailing list archive)
State Accepted
Commit 98aba4aaef7a574bde7363e50888527a21a0b546
Headers show
Series Update Sink BASE management | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Andrei Istodorescu March 1, 2024, 3 p.m. UTC
---
 src/shared/bap.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/src/shared/bap.c b/src/shared/bap.c
index a44b5534805e..638c6f8a4947 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -3306,6 +3306,13 @@  static void bap_add_broadcast_source(struct bt_bap_pac *pac)
 static void bap_add_broadcast_sink(struct bt_bap_pac *pac)
 {
 	queue_push_tail(pac->bdb->broadcast_sinks, pac);
+
+	/* Update local PACS for broadcast sink also, when registering an
+	 * endpoint
+	 */
+	pacs_add_sink_location(pac->bdb->pacs, pac->qos.location);
+	pacs_add_sink_supported_context(pac->bdb->pacs,
+			pac->qos.supported_context);
 }
 
 static void notify_pac_added(void *data, void *user_data)