From: Kyle Pepper <cochcoder@proton.me>
To: linux-bluetooth@vger.kernel.org
Subject: [RFC PATCH BlueZ v6 0/4] asha: Notify connection interval changes
Date: Wed, 25 Nov 2026 23:27:05 +0000 [thread overview]
Message-ID: <cover.1795648818.git.cochcoder@proton.me> (raw)
In-Reply-To: <cover.1795535897.git.cochcoder@proton.me>
Report observed connection intervals to attached hearing aids.
Apply patches 1-4 in order: set lifetime fix, shared STATUS helper,
profile observer, then tests. No out-of-tree dependency is required.
Changes since v5, addressing Copilot's review highlighted by Luiz:
- Recreate the set queue when an attached aid completes START after the
only registered aid resets or is freed. Fold the fix into patch 1.
- Define _GNU_SOURCE before system headers in the observer test so older
glibc headers declare asprintf. Fold the fix into patch 4.
- Cover successful START after reset/free of the only registered peer,
in both directions, followed by reattachment and peer-state checks.
- Rebase onto BlueZ 79162c1089110c896cb48118c3f7eb0db1fa0f2b.
The set bug affects START's other-connected state. Interval STATUS uses
the separate attached-aid queue. The header failure is reproducible with
glibc 2.35's stdio.h; the unchanged test builds on this host's glibc 2.44.
The v5 bot run passed all 12 jobs, including TestFunctional. No v6 remote
CI, native functional VM or hearing-aid validation is claimed.
The observer still reports only its last successful observation. Lost or
preexisting events remain unknown until a supported event arrives; LE
Enhanced Connection Complete v2 is not registered. Controller power-cycle
cache behavior and the profile ownership of the raw observer remain open.
Previous v5 cover (this series replies to it):
https://lore.kernel.org/linux-bluetooth/cover.1795535897.git.cochcoder@proton.me/
Review and CI:
https://github.com/bluez/bluez/pull/2911#pullrequestreview-6046633570
AI assistance: prior OpenCode work is retained; Codex prepared and tested
the v6 fixes, regression cases and revision. Copilot identified both bugs.
Kyle Pepper (4):
shared/asha: Unregister set members by object
asha: Add connection interval STATUS helper
asha: Notify observed connection intervals
unit: Test ASHA connection interval notifications
.gitignore | 2 +
Makefile.am | 17 ++
profiles/audio/asha.c | 231 +++++++++++++++
src/shared/asha.c | 101 ++++++-
src/shared/asha.h | 1 +
unit/test-asha-conn.c | 579 ++++++++++++++++++++++++++++++++++++++
unit/test-asha-conn.h | 11 +
unit/test-asha-interval.c | 417 +++++++++++++++++++++++++++
8 files changed, 1354 insertions(+), 5 deletions(-)
create mode 100644 unit/test-asha-conn.c
create mode 100644 unit/test-asha-conn.h
create mode 100644 unit/test-asha-interval.c
base-commit: 79162c1089110c896cb48118c3f7eb0db1fa0f2b
--
2.56.1
next prev parent reply other threads:[~2026-11-25 23:27 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 0:22 [RFC PATCH RESEND v2] asha: Notify connection interval changes Kyle Pepper
2026-10-29 6:32 ` [RFC,RESEND,v2] " bluez.test.bot
2026-11-06 23:51 ` [RFC PATCH v3] " Kyle Pepper
2026-11-07 2:59 ` [RFC,v3] " bluez.test.bot
2026-11-22 2:27 ` bluez.test.bot
2026-11-24 3:38 ` [RFC PATCH BlueZ v4 0/4] " Kyle Pepper
2026-11-24 3:38 ` [RFC PATCH BlueZ v4 1/4] shared/asha: Unregister set members by object Kyle Pepper
2026-11-24 11:21 ` asha: Notify connection interval changes bluez.test.bot
2026-11-24 3:39 ` [RFC PATCH BlueZ v4 2/4] asha: Add connection interval STATUS helper Kyle Pepper
2026-11-24 3:39 ` [RFC PATCH BlueZ v4 3/4] asha: Notify observed connection intervals Kyle Pepper
2026-11-24 3:39 ` [RFC PATCH BlueZ v4 4/4] unit: Test ASHA connection interval notifications Kyle Pepper
2026-11-24 16:39 ` [RFC PATCH BlueZ v5 0/4] asha: Notify connection interval changes Kyle Pepper
2026-11-24 16:39 ` [RFC PATCH BlueZ v5 1/4] shared/asha: Unregister set members by object Kyle Pepper
2026-11-24 21:12 ` asha: Notify connection interval changes bluez.test.bot
2026-11-25 14:57 ` Luiz Augusto von Dentz
2026-11-24 16:40 ` [RFC PATCH BlueZ v5 2/4] asha: Add connection interval STATUS helper Kyle Pepper
2026-11-24 16:40 ` [RFC PATCH BlueZ v5 3/4] asha: Notify observed connection intervals Kyle Pepper
2026-11-24 16:40 ` [RFC PATCH BlueZ v5 4/4] unit: Test ASHA connection interval notifications Kyle Pepper
2026-11-25 23:27 ` Kyle Pepper [this message]
2026-11-25 23:27 ` [RFC PATCH BlueZ v6 1/4] shared/asha: Unregister set members by object Kyle Pepper
2026-11-26 5:41 ` asha: Notify connection interval changes bluez.test.bot
2026-11-25 23:27 ` [RFC PATCH BlueZ v6 2/4] asha: Add connection interval STATUS helper Kyle Pepper
2026-11-25 23:28 ` [RFC PATCH BlueZ v6 3/4] asha: Notify observed connection intervals Kyle Pepper
2026-11-25 23:28 ` [RFC PATCH BlueZ v6 4/4] unit: Test ASHA connection interval notifications Kyle Pepper
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=cover.1795648818.git.cochcoder@proton.me \
--to=cochcoder@proton.me \
--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