Linux bluetooth development
 help / color / mirror / Atom feed
From: Sebastian <seb.witt@googlemail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Sebastian <seb.witt@googlemail.com>
Subject: [PATCH v2 0/4] Accept HoG Report Map longer than 512 octets
Date: Mon, 30 Nov 2026 21:45:52 +0100	[thread overview]
Message-ID: <20261130204556.357834-1-seb.witt@googlemail.com> (raw)
In-Reply-To: <CABBYNZ+GNO-eVNC5B_4SqCdHOE+OHmXUaW0NwStd_BsbUzx35A@mail.gmail.com>

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.

As discussed, accepting them is now controlled by a LongReportMap
option in a new [Input] section of main.conf, enabled by default and
disabled when Testing is, so the limit is enforced for qualification.
shared/hog itself keeps reading at most 512 octets unless told
otherwise with bt_hog_set_long_report_map.

The default depends on Testing as set from main.conf or with -T, as
parse_input runs after both; without any main.conf the option keeps
its default of true.

I took [Input] to mean a new section of main.conf, like [AVRCP], rather
than one in input.conf; I can move it there if you prefer.

v2:
 - Add the LongReportMap option to [Input] in main.conf
 - Keep the 512 octet limit by default in shared/hog, add
   bt_hog_set_long_report_map
 - Rebase on master

Sebastian (4):
  shared/gatt-client: Add bt_gatt_client_read_long_value_max_len
  main.conf: Add LongReportMap option to [Input]
  shared/hog: Add bt_hog_set_long_report_map
  input/hog: Accept Report Map longer than 512 octets

 profiles/input/hog.c     |  8 ++++++--
 src/btd.h                |  5 +++++
 src/main.c               | 20 +++++++++++++++++++
 src/main.conf            |  7 +++++++
 src/shared/gatt-client.c | 40 +++++++++++++++++++++++++++++++++----
 src/shared/gatt-client.h |  7 +++++++
 src/shared/hog.c         | 43 ++++++++++++++++++++++++++++++++++++----
 src/shared/hog.h         |  5 +++++
 8 files changed, 125 insertions(+), 10 deletions(-)

-- 
2.56.1


       reply	other threads:[~2026-11-30 20:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CABBYNZ+GNO-eVNC5B_4SqCdHOE+OHmXUaW0NwStd_BsbUzx35A@mail.gmail.com>
2026-11-30 20:45 ` Sebastian [this message]
2026-11-30 20:45   ` [PATCH v2 1/4] shared/gatt-client: Add bt_gatt_client_read_long_value_max_len Sebastian
2026-11-30 20:45   ` [PATCH v2 2/4] main.conf: Add LongReportMap option to [Input] Sebastian
2026-11-30 20:45   ` [PATCH v2 3/4] shared/hog: Add bt_hog_set_long_report_map Sebastian
2026-11-30 20:45   ` [PATCH v2 4/4] input/hog: Accept Report Map longer than 512 octets Sebastian

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=20261130204556.357834-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