Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/2] Don't probe LE Audio profiles on unpaired devices
@ 2026-11-18 14:14 AuthenticSm1les
  2026-11-18 14:14 ` [PATCH BlueZ 1/2] profile: Add paired_only flag AuthenticSm1les
  2026-11-18 14:14 ` [PATCH BlueZ 2/2] audio: Mark LE Audio client profiles paired_only AuthenticSm1les
  0 siblings, 2 replies; 5+ messages in thread
From: AuthenticSm1les @ 2026-11-18 14:14 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: AuthenticSm1les

Hi,

When an unpaired phone connects to us over LE, for example Android's
Quick Share checking a GATT advertisement, bluetoothd probes the LE
Audio client profiles. Their reads fail with Insufficient
Authentication, bt_att raises security and the phone shows a pairing
dialog. That's the issue reported in #1789.

In the "Don't auto-bond on reactive GATT security elevation" thread
Luiz suggested fixing the plugins rather than the elevation, so this
adds a paired_only flag to btd_profile and sets it on the LE Audio
client profiles whose services need encryption.

Tested on an Intel 8265 (BT 4.2) with a Samsung phone. Quick Share
from the unpaired phone no longer gets a pairing dialog, and tmap still
reads the phone fine. Pairing over BR/EDR from bluetoothctl still works
and an A2DP/HFP headset reconnects as before. Unit tests pass.

I couldn't test with real LE Audio hardware, pairing while an LE link
is already up, or a dual-mode device paired over BR/EDR and then
connecting over LE. Testing on any of those would be appreciated.

Link: https://github.com/bluez/bluez/issues/1789

AuthenticSm1les (2):
  profile: Add paired_only flag
  audio: Mark LE Audio client profiles paired_only

 profiles/audio/bap.c  |  1 +
 profiles/audio/bass.c |  1 +
 profiles/audio/ccp.c  |  1 +
 profiles/audio/csip.c |  1 +
 profiles/audio/mcp.c  |  2 ++
 profiles/audio/micp.c |  1 +
 profiles/audio/vcp.c  |  1 +
 src/device.c          | 29 +++++++++++++++++++++++++++++
 src/profile.h         |  7 +++++++
 src/service.c         | 13 +++++++++++++
 10 files changed, 57 insertions(+)

-- 
2.56.1


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 14:14 [PATCH BlueZ 0/2] Don't probe LE Audio profiles on unpaired devices AuthenticSm1les
2026-11-18 14:14 ` [PATCH BlueZ 1/2] profile: Add paired_only flag AuthenticSm1les
2026-11-18 15:04   ` Luiz Augusto von Dentz
2026-11-18 20:06   ` Don't probe LE Audio profiles on unpaired devices bluez.test.bot
2026-11-18 14:14 ` [PATCH BlueZ 2/2] audio: Mark LE Audio client profiles paired_only AuthenticSm1les

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