Linux bluetooth development
 help / color / mirror / Atom feed
From: Nicolas Thibert <nithibert@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Subject: [PATCH BlueZ v3 0/2] Fix mgmt endianness on big-endian hosts
Date: Wed,  2 Dec 2026 16:17:36 +0100	[thread overview]
Message-ID: <20261202151738.1146722-1-nithibert@gmail.com> (raw)

Several mgmt command fields are written in host byte order instead of
little-endian, which breaks them on big-endian hosts (tested on MIPS
big-endian, OpenWrt/ath79).

v3:
- Split the set_blocked_keys() fix into its own patch, as it is for a
  different command (requested by Luiz).
- No code change since v2.

v2:
- Use cpu_to_le16()/cpu_to_le32() instead of htobs()/htobl(), as
  requested by Luiz.

Nicolas Thibert (2):
  adapter: Fix key_count endianness in MGMT_OP_SET_BLOCKED_KEYS
  advertising: Fix duration and interval endianness

 src/adapter.c     | 5 +++--
 src/advertising.c | 8 ++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

-- 
2.34.1


             reply	other threads:[~2026-12-02 15:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 15:17 Nicolas Thibert [this message]
2026-12-02 15:17 ` [PATCH BlueZ v3 1/2] adapter: Fix key_count endianness in MGMT_OP_SET_BLOCKED_KEYS Nicolas Thibert
2026-12-02 15:17 ` [PATCH BlueZ v3 2/2] advertising: Fix duration and interval endianness Nicolas Thibert

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=20261202151738.1146722-1-nithibert@gmail.com \
    --to=nithibert@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /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