[PATCH bluez 0/2] obexd/bluetooth: Fix profile registration race and clean up

From: Zijun Hu

Date: Wed Oct 28 2026 - 02:46:49 EST


This series is to fix below profile registration issue and do clean up:

After boot on Debian, bluetoothd and obexd are both running but none of
the obexd server profiles (OPP, FTP, PBAP, ...) is registered.

obexd registers profiles from name_acquired(), but only adds them to its
list later in bluetooth_start(). If org.bluez appears first, nothing is
registered.

Signed-off-by: Zijun Hu <zijun.hu@xxxxxxxxxxxxxxxx>
---
Zijun Hu (2):
obexd/bluetooth: Register profiles added after org.bluez appeared
obexd/bluetooth: Clean up redundant code

obexd/plugins/bluetooth.c | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
---
base-commit: b0bf49270d445da0852851f393cd67a0a1e5f05e
change-id: 20261027-fix_obex-c912a68e73a5

Best regards,
--
Zijun Hu <zijun.hu@xxxxxxxxxxxxxxxx>