OSDN Git Service

A2DP Offload: Fix Max AVDTP MTU for Offload
authorSunny Kapdi <sunnyk@codeaurora.org>
Thu, 5 Jul 2018 21:31:21 +0000 (14:31 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Mon, 20 Aug 2018 04:59:46 +0000 (04:59 +0000)
commite42bc5bb9999d6948c076851c094294c47fa7f14
tree1371ec081c3060c32558c0c044b828a0522c829f
parentbb216d2135e397ab89a484ce6b0020ca66ecd151
A2DP Offload: Fix Max AVDTP MTU for Offload

Fix the max AVDTP MTU for Offload to what
can fit in a 3DH5 packet after accounting
for AVDTP and L2CAP header.

Also:
 - Moved MAX_2MBPS_AVDTP_MTU and MAX_3MBPS_AVDTP_MTU to the common
   avdt_api.h so it can be used by the rest of the code
 - Removed previously incorrect value of BTA_AV_MAX_A2DP_MTU and
   replace it with the new (correct) value of MAX_3MBPS_AVDTP_MTU
 - Removed duplicate define of MAX_2MBPS_AVDTP_MTU and use
   the one from avdt_api.h

Bug: 78907438
Test: A2DP Streaming
Change-Id: I2c60c34c33e4164c9f7e2e7362bbb600482dec97
bta/av/bta_av_aact.cc
bta/av/bta_av_cfg.cc
bta/include/bta_av_api.h
stack/a2dp/a2dp_aac_encoder.cc
stack/a2dp/a2dp_sbc_encoder.cc
stack/include/avdt_api.h