OSDN Git Service

AVRCP 1.6: Limit GetFolderItemResponse
authorHemant Gupta <hemantg@codeaurora.org>
Wed, 12 Apr 2017 18:26:15 +0000 (23:56 +0530)
committerMarie Janssen <jamuraa@google.com>
Tue, 25 Apr 2017 02:30:36 +0000 (19:30 -0700)
commit900c29e0f1871830d031879b18cc3acd0a64adb0
tree7b1d55285347164cbd0a052a2bc9361f388de954
parent514274c60b52425c09d62d2afb1546707c9d8ab1
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
(cherry picked from commit a7c7437bbffe133f9192b9ca82b5b4e1f6d9835a)
stack/avrc/avrc_bld_tg.cc