OSDN Git Service

AVRCP 1.6: Limit GetFolderItemResponse
authorHemant Gupta <hemantg@codeaurora.org>
Wed, 12 Apr 2017 18:26:15 +0000 (23:56 +0530)
committerHemant Gupta <hemantg@codeaurora.org>
Fri, 21 Apr 2017 11:25:43 +0000 (16:55 +0530)
commita7c7437bbffe133f9192b9ca82b5b4e1f6d9835a
tree9b8e7d41f35ea361690354a323b7283b97ac2ea0
parent7dc0525365025e17e289869288b1b7d5146306cc
AVRCP 1.6: Limit GetFolderItemResponse

Usecase:
1) Connect from AVRCP Controller supporting browsing
   having low L2CAP MTU eg 672.
2) Request for get folder items with large request items,
   response for which will exceed MTU size.

Expected Result:
As per AVRCP 1.6 Spec, section 29.20 pg 178, response should be
limited to number of completed get folder items that can fit in
single AVCTP Browsing channel MTU even if the completed items
are less than actually requested by AVRCP Controller.

Observation:
DUT responding with Internal Error.

Root Cause:
When there is no space to fill complete Get Folder Item response
within MTU size, DUT was returning error.

Fix:
Send max completed items which can fit in single MTU packet.

Test: Checked if the remote device can receive the truncated
response and get folder items succeeds when remote device
reissues get folder item request with updated start list count.

Frequency: 5/5

Bug: 37304477
Change-Id: I1963f97075382fc8333038e3efffaf61a9d84a28
stack/avrc/avrc_bld_tg.cc