Skip to content

Add implementation of bearer connect/disconnect

Ye He b4-sent linux-bluetooth 9 versions – Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected] change-id 20251111-bearer-impl-5f7e396174aa

Versions newest first

  1. v9 Latest3 patches 1 replyApplied
  2. v83 patches 3 repliesSuperseded
  3. v73 patches 3 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v63 patches3 repliesSuperseded
v53 patches1 replySuperseded
v41 patch2 repliesSuperseded
v31 patch6 repliesSuperseded
v21 patch3 repliesSuperseded
v11 patch1 replySuperseded

Changes in v9 from the cover letter

- Send D-Bus reply when bearer.connect() fails.
- Link to v8: https://patch.msgid.link/[email protected]

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/3profiles: Add bearer field to btd_profileprofiles/audio/a2dp.c profiles/audio/asha.c profiles/audio/avrcp.c +17 more+37 -21 reply
2/3bearer: Implement Connect/Disconnect methodssrc/bearer.c src/bearer.h src/device.c +1 more+324 -260 replies
3/3client: Add shell cmd for bearer connect/disconnectclient/bluetoothctl-bredr.rst client/bluetoothctl-le.rst client/bluetoothctl.rst +1 more+475 -00 replies

Reviews trailers per patch

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

Read the v9 thread

Cover letter [PATCH bluez v9 0/3] Add implementation of bearer connect/disconnect

---
Changes in v9:
- Send D-Bus reply when bearer.connect() fails.
- Link to v8: https://patch.msgid.link/[email protected]

Changes in v8:
- Add le & bredr as sub-menus.
- Link to v7: https://patch.msgid.link/[email protected]

Changes in v7:
- Specify the bearer type explicitly in the shell command, instead of passing
- it as a parameter.
- Link to v6: https://patch.msgid.link/[email protected]

Changes in v6:
- Fix coding style warnings.
- Link to v5: https://patch.msgid.link/[email protected]

Changes in v5:
- Split adding bearer field to btd_profile into a standalone patch.
- Link to v4: https://patch.msgid.link/[email protected]

Changes in v4:
- Add a bearer field to btd_profile to indicate which bearer type the profile
- belongs to, thus we can distinct the services per bearer.
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- Move the modification logic from the device to bearer, and add
- some helper functions to the device.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Fix build error & warning.
- Link to v1: https://patch.msgid.link/[email protected]

---
Ye He (3):
profiles: Add bearer field to btd_profile
bearer: Implement Connect/Disconnect methods
client: Add shell cmd for bearer connect/disconnect

 client/bluetoothctl-bredr.rst    |  70 +++++++++
 client/bluetoothctl-le.rst       |  71 +++++++++
 client/bluetoothctl.rst          |  10 ++
 client/main.c                    | 324 +++++++++++++++++++++++++++++++++++++++
 profiles/audio/a2dp.c            |   5 +-
 profiles/audio/asha.c            |   1 +
 profiles/audio/avrcp.c           |   2 +
 profiles/audio/bap.c             |   2 +
 profiles/audio/bass.c            |   1 +
 profiles/audio/ccp.c             |   1 +
 profiles/audio/csip.c            |   2 +
 profiles/audio/mcp.c             |   1 +
 profiles/audio/micp.c            |   1 +
 profiles/audio/vcp.c             |   1 +
 profiles/battery/battery.c       |   1 +
 profiles/deviceinfo/deviceinfo.c |   1 +
 profiles/gap/gas.c               |   1 +
 profiles/health/hdp_manager.c    |   2 +
 profiles/input/hog.c             |   1 +
 profiles/input/manager.c         |   1 +
 profiles/midi/midi.c             |   1 +
 profiles/network/manager.c       |   3 +
 profiles/scanparam/scan.c        |   1 +
 src/bearer.c                     | 178 ++++++++++++++++++++-
 src/bearer.h                     |   2 +-
 src/device.c                     | 153 +++++++++++++++---
 src/device.h                     |  17 ++
 src/profile.h                    |  10 ++
 28 files changed, 836 insertions(+), 28 deletions(-)

---
base-commit: 5e41d1e1d361e7288964e4c2c5ed90736025662f
change-id: 20251111-bearer-impl-5f7e396174aa

Best regards,

Signature · 1 line
Ye He <[email protected]>