Diff between df4e11fab68b392f0f8c12b496199db6ece2a26e and dfcbc2d3c0115e37b20158bdd716cdad466191a8

Changed Files

File Additions Deletions Status
profiles/audio/bap.c +9 -0 modified

Full Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index b877e7c..100acca 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1206,6 +1206,15 @@ static bool parse_base(struct bap_data *bap_data, struct bt_iso_base *base,
 			bass_add_stream(bap_data->device, meta, merged_caps,
 						qos, idx, bis_index);
 
+			if (!bass_check_bis(bap_data->device, bis_index)) {
+				/* If this Broadcast Sink is acting as a Scan
+				 * Delegator, only attempt to create streams
+				 * for the BISes required by the peer Broadcast
+				 * Assistant.
+				 */
+				continue;
+			}
+
 			/* Check if this BIS matches any local PAC */
 			bt_bap_verify_bis(bap_data->bap, bis_index,
 					merged_caps, &matched_lpac);