Linux bluetooth development
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v1 0/6] Add true wireless BAP broadcast tests
Date: Mon, 21 Sep 2026 17:01:17 -0400	[thread overview]
Message-ID: <20260921210123.3690449-1-luiz.dentz@gmail.com> (raw)

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

This adds functional tests for broadcast setups where the left and the
right side are separate devices, as in a pair of earbuds, which so far
were only covered with a single sink taking both channels.

The source broadcasts one BIS per channel, and each side registers a
single location, so each of them only gets a transport for the BIS
carrying its own channel: the sides are told apart by the BIS index of
the transport path.

Two topologies are covered. In the first one there is no connection at
all, and each side scans, syncs to the periodic advertising and reads
the BASE on its own. In the second one the two sides are Scan Delegators
forming a coordinated set, so the assistant discovers and connects them
as one device, and pushes one BIS to each of them, each receiving the
periodic advertising sync over its own ACL (PAST).

Writing the second one turned up two bugs, fixed here as well:

- Every MediaAssistant object of a local broadcast shared the bass_data
  of the adapter, and a push stored the session it was pushed to in it,
  so pushing to the second side replaced the target of the first one.
  The Broadcast Code the left side asked for was then written to the
  right one, and the left side never synced. This only shows with more
  than one delegator, which is why it went unnoticed so far.

- Pairing a device that is already paired was rejected with
  AlreadyExists, although the documentation described it as re-pairing.
  It connects the device instead now, which is of actual use to the
  user, and lets a test run against hosts that a previous one left
  bonded, as the hosts are reused.

Luiz Augusto von Dentz (6):
  doc: describe the true wireless broadcast test cases
  doc: describe the true wireless broadcast assistant test case
  test: functional: add the true wireless broadcast tests
  bass: keep the push target per MediaAssistant object
  client: connect a device that is already paired
  test: functional: add the true wireless broadcast assistant test

 client/main.c                               |  40 +++
 client/scripts/broadcast-delegator-left.bt  |  32 +++
 client/scripts/broadcast-delegator-right.bt |  32 +++
 client/scripts/broadcast-sink-left.bt       |  23 ++
 client/scripts/broadcast-sink-right.bt      |  23 ++
 doc/bluetoothctl.rst                        |   6 +-
 doc/functional-bap.rst                      | 246 +++++++++++++++++
 profiles/audio/bass.c                       |  39 ++-
 test/functional/test_bap.py                 | 285 +++++++++++++++++++-
 9 files changed, 701 insertions(+), 25 deletions(-)
 create mode 100644 client/scripts/broadcast-delegator-left.bt
 create mode 100644 client/scripts/broadcast-delegator-right.bt
 create mode 100644 client/scripts/broadcast-sink-left.bt
 create mode 100644 client/scripts/broadcast-sink-right.bt

-- 
2.55.0


             reply	other threads:[~2026-09-21 21:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 21:01 Luiz Augusto von Dentz [this message]
2026-09-21 21:01 ` [PATCH BlueZ v1 1/6] doc: describe the true wireless broadcast test cases Luiz Augusto von Dentz
2026-09-21 23:47   ` Add true wireless BAP broadcast tests bluez.test.bot
2026-09-21 21:01 ` [PATCH BlueZ v1 2/6] doc: describe the true wireless broadcast assistant test case Luiz Augusto von Dentz
2026-09-21 21:01 ` [PATCH BlueZ v1 3/6] test: functional: add the true wireless broadcast tests Luiz Augusto von Dentz
2026-09-21 21:01 ` [PATCH BlueZ v1 4/6] bass: keep the push target per MediaAssistant object Luiz Augusto von Dentz
2026-09-21 21:01 ` [PATCH BlueZ v1 5/6] client: connect a device that is already paired Luiz Augusto von Dentz
2026-09-21 21:01 ` [PATCH BlueZ v1 6/6] test: functional: add the true wireless broadcast assistant test Luiz Augusto von Dentz
2026-09-22 15:00 ` [PATCH BlueZ v1 0/6] Add true wireless BAP broadcast tests patchwork-bot+bluetooth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260921210123.3690449-1-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox