Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ v1 0/7] BAP ASE state handling enhancements
@ 2026-11-03 20:30 Luiz Augusto von Dentz
  2026-11-03 20:30 ` [PATCH BlueZ v1 1/7] shared/bap: Defer ASE state notifications until idle Luiz Augusto von Dentz
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Luiz Augusto von Dentz @ 2026-11-03 20:30 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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(-)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-04 19:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 20:30 [PATCH BlueZ v1 0/7] BAP ASE state handling enhancements Luiz Augusto von Dentz
2026-11-03 20:30 ` [PATCH BlueZ v1 1/7] shared/bap: Defer ASE state notifications until idle Luiz Augusto von Dentz
2026-11-03 22:51   ` BAP ASE state handling enhancements bluez.test.bot
2026-11-03 20:30 ` [PATCH BlueZ v1 2/7] shared/bap: Wait for ASE state before completing requests Luiz Augusto von Dentz
2026-11-03 20:30 ` [PATCH BlueZ v1 3/7] unit/test-bap: Add tests for cancelling grouped Enable Luiz Augusto von Dentz
2026-11-03 20:30 ` [PATCH BlueZ v1 4/7] unit/test-bap: Add Notify Multiple test Luiz Augusto von Dentz
2026-11-03 20:30 ` [PATCH BlueZ v1 5/7] shared/tester: Add support for alternative PDUs Luiz Augusto von Dentz
2026-11-03 20:30 ` [PATCH BlueZ v1 6/7] unit/test-bap: Expect the ASE state following Releasing Luiz Augusto von Dentz
2026-11-03 20:30 ` [PATCH BlueZ v1 7/7] unit/test-bap: Run unicast tests with Notify Multiple Luiz Augusto von Dentz
2026-11-04 19:10 ` [PATCH BlueZ v1 0/7] BAP ASE state handling enhancements patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox