OSDN Git Service

AVDTP: Use the same MTU in config request
authorHansong Zhang <hsz@google.com>
Thu, 24 Sep 2020 23:45:19 +0000 (16:45 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 24 Sep 2020 23:45:19 +0000 (16:45 -0700)
commit1780e37a0bc4e6e65fd2f47cf4376656e07e54f0
tree67bf4d2f08b1f273678cb24aec1fc719d55c72b9
parentcac61e8f340574b775980d8bd4eb16d9149fecee
AVDTP: Use the same MTU in config request

MTU in config request indicates how many bytes _we_ can process at most.
Instead of using different number for signalling and audio channel, we
use the same number, which is the greater one . This won't require the
remote side to have a larger buffer size, as they can still send the
same packet size as before. We won't need to worry about memory
implication either, because audio buffer will go away quickly.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Iab025784699a77d89d784926d1f393a3cc2fe767
stack/avdt/avdt_ad.cc
stack/avdt/avdt_api.cc
stack/avdt/avdt_int.h
stack/avdt/avdt_l2c.cc