Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6ddf7c24 authored by Michael Sun's avatar Michael Sun
Browse files

interop: extended truncated report map for specific device

The HID specification allows report maps to exceed 512 bytes. However, the Bluetooth specification requires all GATT attributes to be 512 bytes or less. This creates an interoperability issue when a device manufacturer implements a HID report map as a single GATT characteristic. This change handles this edge case by extending the report map after receiving the initial 512 bytes. This ensures compatibility with both HID and Bluetooth standards.

As this workaround is currently implemented for one specific device, the extra bytes of the report map exist as static const arrays; if more devices need such workarounds, it is suggested to store the report map in a separate file which can be loaded from the file system.

Bug: 332761737
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: Manual test on Brya, Brydge keyboard working
Flag: EXEMPT, interop change and apply only to one and currently non-functioning device
Change-Id: If9eb2e5e2828d0dea17f486207421525ffcccffc
parent bb69ca6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment