Skip to content

BAP ASE state handling enhancements

Luiz Augusto von Dentz linux-bluetooth 1 version Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7shared/bap: Defer ASE state notifications until idlesrc/shared/bap.c+24 -81 reply
2/7shared/bap: Wait for ASE state before completing requestssrc/shared/bap.c+397 -270 replies
3/7unit/test-bap: Add tests for cancelling grouped Enableunit/test-bap.c+161 -40 replies
4/7unit/test-bap: Add Notify Multiple testunit/test-bap.c+31 -10 replies
5/7shared/tester: Add support for alternative PDUssrc/shared/tester.c src/shared/tester.h+87 -00 replies
6/7unit/test-bap: Expect the ASE state following Releasingunit/test-bap.c+33 -80 replies
7/7unit/test-bap: Run unicast tests with Notify Multipleunit/test-bap.c+168 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH BlueZ v1 0/7] BAP ASE state handling enhancements

From: Luiz Augusto von Dentz <[email protected]>

The ASCS server deferred the ASE state notifications by 10 ms after the ASE Control Point notification, while the client completed requests on the CP notification alone, so it could act on a stale ASE state, e.g. failing MediaTransport1.Acquire right after Release, whenever the notifications were not received together.

This is fixed on both sides: the server now defers the ASE state notifications until idle, so they are sent in the same mainloop cycle as the CP notification and can be aggregated into the same Notify Multiple PDU, and the client waits for the ASE state before completing requests, also making cancelling or detaching a stream which is part of a grouped request only affect its own request.

For testing, the tester gains markers for PDUs that can be exchanged in alternative ways, which unit/test-bap uses to run every unicast test a second time with Notify Multiple, both as client and server, using the same test data.

Luiz Augusto von Dentz (7):
shared/bap: Defer ASE state notifications until idle shared/bap: Wait for ASE state before completing requests unit/test-bap: Add tests for cancelling grouped Enable unit/test-bap: Add Notify Multiple test shared/tester: Add support for alternative PDUs unit/test-bap: Expect the ASE state following Releasing unit/test-bap: Run unicast tests with Notify Multiple

 src/shared/bap.c    | 456 ++++++++++++++++++++++++++++++++++++++++----
 src/shared/tester.c |  74 +++++++
 src/shared/tester.h |  13 ++
 unit/test-bap.c     | 421 +++++++++++++++++++++++++++++++++++++---
 4 files changed, 900 insertions(+), 64 deletions(-)
Signature · 1 line
2.56.0