From: Sebastian <seb.witt@googlemail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Sebastian <seb.witt@googlemail.com>
Subject: [PATCH 0/2] Accept HoG Report Map longer than 512 octets
Date: Mon, 30 Nov 2026 20:03:38 +0100 [thread overview]
Message-ID: <20261130190340.201189-1-seb.witt@googlemail.com> (raw)
Since 5.88, HID over GATT devices with a Report Map longer than 512
octets no longer work: the Report Map is truncated, the kernel fails to
parse it and no input device is created. Several keyboards and
touchpads are affected, see https://github.com/bluez/bluez/issues/2814.
Mine, an Inateck KB05113, sends 637 octets.
Commit 952c08ff50c5 ("hog-lib: Don't restrict Report MAP size") made
hog-lib accept Report Maps of any size, since other operating systems
don't enforce the 512 octet limit. The limit came back with commit
96f1201f5ac2 ("input/hog: Use shared/hog"), as bt_gatt_client long
reads truncate to BT_ATT_MAX_VALUE_LEN.
Patch 1 adds an opt-in variant of bt_gatt_client_read_long_value with a
caller-chosen maximum length; the existing function keeps the 512 octet
limit. Patch 2 uses it for the Report Map only, up to the 4096 octets
UHID_CREATE2 accepts.
Raising the limit for the Report Map makes the Inateck KB05113 work
again: keyboard, mouse and touchpad input devices are created. All unit
tests pass.
Sebastian (2):
shared/gatt-client: Add bt_gatt_client_read_long_value_max_len
shared/hog: Accept Report Map longer than 512 octets
src/shared/gatt-client.c | 40 ++++++++++++++++++++++++++++++++++++----
src/shared/gatt-client.h | 7 +++++++
src/shared/hog.c | 24 ++++++++++++++++++++----
3 files changed, 63 insertions(+), 8 deletions(-)
--
2.56.1
next reply other threads:[~2026-11-30 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 19:03 Sebastian [this message]
2026-11-30 19:03 ` [PATCH 1/2] shared/gatt-client: Add bt_gatt_client_read_long_value_max_len Sebastian
2026-11-30 19:03 ` [PATCH 2/2] shared/hog: Accept Report Map longer than 512 octets Sebastian
2026-11-30 19:32 ` Luiz Augusto von Dentz
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=20261130190340.201189-1-seb.witt@googlemail.com \
--to=seb.witt@googlemail.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