Linux bluetooth development
 help / color / mirror / Atom feed
From: "Paweł Owoc" <frut3k7@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: "Paweł Owoc" <frut3k7@gmail.com>
Subject: [PATCH 0/1] device: Add per-device bearer restrictions
Date: Sat, 28 Nov 2026 11:20:18 +0100	[thread overview]
Message-ID: <20261128102019.183334-1-frut3k7@gmail.com> (raw)

The report in https://github.com/bluez/bluez/issues/2782 describes a
dual-mode headset that connects inconsistently over LE and BR/EDR. In
the reported setup, forcing the controller into LE-only mode avoids
the issue, but also changes behavior for every device.

Add an experimental per-device AllowedBearers property so a device can
be restricted to LE, BR/EDR, or both while the adapter remains in dual
mode. Persist the setting, enforce it alongside device capabilities and
the controller mode, and expose it through bluetoothctl.

The change includes functional tests and documentation.

Paweł Owoc (1):
  device: Add per-device bearer restrictions

 client/main.c                  |  33 +++
 doc/bluetoothctl.rst           |  21 ++
 doc/functional-bearer.rst      |  48 +++
 doc/org.bluez.Device.rst       |  23 ++
 doc/settings-storage.txt       |   1 +
 src/adapter.c                  |  13 +-
 src/bearer.c                   |   9 +
 src/device.c                   | 520 +++++++++++++++++++++++++++++----
 src/device.h                   |   1 +
 test/functional/test_bearer.py | 336 +++++++++++++++++++++
 10 files changed, 941 insertions(+), 64 deletions(-)

-- 
2.56.1


             reply	other threads:[~2026-11-28 10:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 10:20 Paweł Owoc [this message]
2026-11-28 10:20 ` [PATCH 1/1] device: Add per-device bearer restrictions Paweł Owoc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261128102019.183334-1-frut3k7@gmail.com \
    --to=frut3k7@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox