Skip to content

Commit b9ec859

Browse files
committed
Bluetooth: BAP: Add missing ep check in client_qos
The bt_bap_unicast_client_qos function was recently modified to check for presentation delay, however it did not consider that a unicast group may contain streams that are not configured, and thus do not have endpoints. Add a stream->ep != NULL check to only consider configured streams. Signed-off-by: Emil Gydesen <[email protected]>
1 parent bb8cf56 commit b9ec859

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

subsys/bluetooth/audio/bap_unicast_client.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,6 +3328,11 @@ int bt_bap_unicast_client_qos(struct bt_conn *conn, struct bt_bap_unicast_group
33283328
continue;
33293329
}
33303330

3331+
if (stream->ep == NULL) {
3332+
/* Only consider configured streams */
3333+
continue;
3334+
}
3335+
33313336
ep = stream->ep;
33323337
dir = ep->dir;
33333338

0 commit comments

Comments
 (0)