Skip to content

Commit 6dffbf8

Browse files
Thalleykartben
authored andcommitted
Bluetooth: BAP: Broadcast Source: Fix missing group relations
Adds missing assignments to stream->group and cleanup of ep->broadcast_source. Signed-off-by: Emil Gydesen <[email protected]>
1 parent aac06ba commit 6dffbf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/audio/bap_broadcast_source.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ static int broadcast_source_setup_stream(uint8_t index, struct bt_bap_stream *st
329329

330330
bt_bap_stream_attach(NULL, stream, ep, codec_cfg);
331331
stream->qos = qos;
332+
stream->group = source;
332333
ep->broadcast_source = source;
333334

334335
return 0;
@@ -464,6 +465,7 @@ static void broadcast_source_cleanup(struct bt_bap_broadcast_source *source)
464465
SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&subgroup->streams, stream, next_stream, _node) {
465466
bt_bap_iso_unbind_ep(stream->ep->iso, stream->ep);
466467
stream->ep->stream = NULL;
468+
stream->ep->broadcast_source = NULL;
467469
stream->ep = NULL;
468470
stream->codec_cfg = NULL;
469471
stream->qos = NULL;

0 commit comments

Comments
 (0)