Skip to content

Fix GATT over BR/EDR

Simon Mikuda linux-bluetooth 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v18 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- device: cancel a pending ATT connect over BR/EDR on DisconnectProfile

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tools/btgatt-client: Add BR/EDR supporttools/btgatt-client.c+42 -110 replies
2/8shared/att: Use the smaller L2CAP MTU as ATT MTUsrc/shared/att.c+36 -70 replies
3/8device: Don't override the ATT MTU over BR/EDRsrc/device.c+0 -90 replies
4/8device: Don't resolve services on GATT over BR/EDRsrc/device.c+8 -30 replies
5/8gatt-client: Don't connect EATT on an ATT bearer over BR/EDRsrc/gatt-client.c+4 -00 replies
6/8profiles: Set the LE bearer for TMAP, GMAP and RAPprofiles/audio/gmap.c profiles/audio/tmap.c profiles/ranging/rap.c+3 -00 replies
7/8device: Don't accept LE profiles over ATT on BR/EDRsrc/device.c+16 -40 replies
8/8device: Connect GATT over BR/EDR with ConnectProfilesrc/device.c+121 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH BlueZ v2 0/8] Fix GATT over BR/EDR

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.

Changes in v2:
- device: cancel a pending ATT connect over BR/EDR on DisconnectProfile

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           | 161 +++++++++++++++++++++++++++++++++++++----
 src/gatt-client.c      |   4 +
 src/shared/att.c       |  43 +++++++++--
 tools/btgatt-client.c  |  53 +++++++++++---
 7 files changed, 230 insertions(+), 34 deletions(-)

base-commit: 1608f836188610aabeff5a3164169ebe0360e443

Signature · 1 line
2.43.0