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

Skip to content
Commit 201d5bbc authored by Joshua Stalder's avatar Joshua Stalder
Browse files

Correct SDP data element size descriptor for HIDD report descriptor

The length of the Report descriptor for HIDD is a unit16_t and limited by the API to 2048 bytes, is however written as an SDP data element with SIZE_IN_NEXT_BYTE, which leads to the element size being at most 255 bytes. The descriptor however is written fully to the SDP stream.

By using SIZE_IN_NEXT_WORD, we can accommodate for maximum size of 2048 bytes, which resolves these issues.

Bug: 362791956
Change-Id: Ie65e79d395c9f1db3adc0fef917a6c8db16bbe29
Test: manually
parent a0c9568d
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