Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/8] Fix GATT over BR/EDR
@ 2026-11-24 14:46 Simon Mikuda
  2026-11-24 14:46 ` [PATCH BlueZ 1/8] tools/btgatt-client: Add BR/EDR support Simon Mikuda
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Simon Mikuda @ 2026-11-24 14:46 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Simon Mikuda

We need GATT over BR/EDR to pass PTS qualification of a dual-mode
device, and bluetoothd only handled it when the remote opened ATT and
both L2CAP MTUs matched:

- the ATT_MTU was our incoming MTU instead of the smaller of the two,
  so a remote with a smaller MTU never finished discovery (2-3)
- GATT discovery marked the BR/EDR services resolved before SDP had
  finished (4)
- EATT was connected to the LE address next to a BR/EDR bearer (5)
- LE only profiles (BAP, VCP, MCP, BASS, RAP, ...) attached over
  BR/EDR (6-7)
- bluetoothd couldn't open ATT over BR/EDR itself (8): it now does on
  ConnectProfile with the GATT UUID, Connect() is unchanged

btgatt-client gets BR/EDR support (1) to reproduce the MTU case. Tested
between two BlueZ boards (Intel BE200 and Broadcom BCM4359) over BR/EDR,
next to A2DP.

Simon Mikuda (8):
  tools/btgatt-client: Add BR/EDR support
  shared/att: Use the smaller L2CAP MTU as ATT MTU
  device: Don't override the ATT MTU over BR/EDR
  device: Don't resolve services on GATT over BR/EDR
  gatt-client: Don't connect EATT on an ATT bearer over BR/EDR
  profiles: Set the LE bearer for TMAP, GMAP and RAP
  device: Don't accept LE profiles over ATT on BR/EDR
  device: Connect GATT over BR/EDR with ConnectProfile

 profiles/audio/gmap.c  |   1 +
 profiles/audio/tmap.c  |   1 +
 profiles/ranging/rap.c |   1 +
 src/device.c           | 154 ++++++++++++++++++++++++++++++++++++-----
 src/gatt-client.c      |   4 ++
 src/shared/att.c       |  43 ++++++++++--
 tools/btgatt-client.c  |  53 +++++++++++---
 7 files changed, 223 insertions(+), 34 deletions(-)


base-commit: 1608f836188610aabeff5a3164169ebe0360e443
-- 
2.43.0


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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 14:46 [PATCH BlueZ 0/8] Fix GATT over BR/EDR Simon Mikuda
2026-11-24 14:46 ` [PATCH BlueZ 1/8] tools/btgatt-client: Add BR/EDR support Simon Mikuda
2026-11-24 20:44   ` Fix GATT over BR/EDR bluez.test.bot
2026-11-24 14:46 ` [PATCH BlueZ 2/8] shared/att: Use the smaller L2CAP MTU as ATT MTU Simon Mikuda
2026-11-24 14:46 ` [PATCH BlueZ 3/8] device: Don't override the ATT MTU over BR/EDR Simon Mikuda
2026-11-24 14:46 ` [PATCH BlueZ 4/8] device: Don't resolve services on GATT " Simon Mikuda
2026-11-24 14:46 ` [PATCH BlueZ 5/8] gatt-client: Don't connect EATT on an ATT bearer " Simon Mikuda
2026-11-24 14:46 ` [PATCH BlueZ 6/8] profiles: Set the LE bearer for TMAP, GMAP and RAP Simon Mikuda
2026-11-24 14:46 ` [PATCH BlueZ 7/8] device: Don't accept LE profiles over ATT on BR/EDR Simon Mikuda
2026-11-24 14:46 ` [PATCH BlueZ 8/8] device: Connect GATT over BR/EDR with ConnectProfile Simon Mikuda

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