Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH bluez v2 0/2] shared/gatt-client: Fix init when Service Changed lacks Indicate
@ 2026-11-13 16:53 Marian Poltak via B4 Relay
  2026-11-13 16:53 ` [PATCH bluez v2 1/2] " Marian Poltak via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marian Poltak via B4 Relay @ 2026-11-13 16:53 UTC (permalink / raw)
  To: Linux Bluetooth

Some devices, e.g. the Aqara Presence Sensor P2 in Matter commissioning
mode, declare the Service Changed characteristic as Read | Notify only.
The client initialization then fails because indications are requested
explicitly, so no services are exported although ServicesResolved is
set.

Patch 1 requests indications only when the characteristic supports
them. Patch 2 adds unit tests for both cases.

---
Changes in v2:
- unit/test-gatt: keep the new tests running until the Service Changed
  CCC write is exchanged; they previously ended as "Not Run" once the
  client reported ready (reported by Copilot review).
- Link to v1: https://patch.msgid.link/20261112-svc-chngd-notify-only-v1-0-c7db7ac47acf@gmail.com

---
Marian Poltak (2):
      shared/gatt-client: Fix init when Service Changed lacks Indicate
      unit/test-gatt: Add Service Changed registration tests

 src/shared/gatt-client.c | 15 +++++++++++++-
 unit/test-gatt.c         | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 1 deletion(-)
---
base-commit: 9659adb6819d7e0284d0d2ba226a3894423d8db4
change-id: 20261112-svc-chngd-notify-only-f1d1d99d3f34

Best regards,
-- 
Marian Poltak <marianpoltak@gmail.com>



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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 16:53 [PATCH bluez v2 0/2] shared/gatt-client: Fix init when Service Changed lacks Indicate Marian Poltak via B4 Relay
2026-11-13 16:53 ` [PATCH bluez v2 1/2] " Marian Poltak via B4 Relay
2026-11-13 16:53 ` [PATCH bluez v2 2/2] unit/test-gatt: Add Service Changed registration tests Marian Poltak via B4 Relay
2026-11-18 19:20 ` [PATCH bluez v2 0/2] shared/gatt-client: Fix init when Service Changed lacks Indicate 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