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

Skip to content
Commit b230bbf3 authored by William Escande's avatar William Escande
Browse files

AVRCP - Check MTU size before adding browsing data

Packet remaining len was not checked when adding a AVRC_ITEM_PLAYER or
AVRC_ITEM_FOLDER.
Decrease remaining len when a item is added to packet
Refactor a bit the method to always operate the same way, first checking
the len -and break if any issue- then adding data to the packet.
Change a bit how the len is changed to gain some extra bytes
Break loop if an error occur

Bug: 204097680
Tag: #feature
Test: tbd
Change-Id: Iac4fe35a911d09a7423320b8a6c2735bebb8c156
parent f9a76998
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