From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v3 2/2] client/player: Set QoS.Encryption if QoS.BCode is set
Date: Thu, 2 Oct 2025 11:58:55 -0400 [thread overview]
Message-ID: <20251002155855.241787-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20251002155855.241787-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
QoS.Encryption must be set in order for the daemon to interpret the
QoS.BCode as valid.
---
client/player.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/client/player.c b/client/player.c
index 598ad7f6dfd7..bb193dafeba0 100644
--- a/client/player.c
+++ b/client/player.c
@@ -1870,6 +1870,10 @@ static void append_bcast_qos(DBusMessageIter *iter, struct endpoint_config *cfg)
if (cfg->ep->bcode->iov_len != 0) {
const char *key = "BCode";
+ uint8_t encryption = 0x01;
+
+ g_dbus_dict_append_entry(iter, "Encryption", DBUS_TYPE_BYTE,
+ &encryption);
bt_shell_printf("BCode:\n");
bt_shell_hexdump(cfg->ep->bcode->iov_base,
--
2.51.0
next prev parent reply other threads:[~2025-10-02 15:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 15:58 [PATCH BlueZ v3 1/2] shared/bass: Fix permissions not requiring encryption Luiz Augusto von Dentz
2025-10-02 15:58 ` Luiz Augusto von Dentz [this message]
2025-10-02 16:30 ` patchwork-bot+bluetooth
2025-10-02 17:33 ` [BlueZ,v3,1/2] " bluez.test.bot
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=20251002155855.241787-2-luiz.dentz@gmail.com \
--to=luiz.dentz@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