OSDN Git Service

L2CAP: Add a "required_remote_mtu" and store it
authorHansong Zhang <hsz@google.com>
Fri, 25 Sep 2020 00:50:55 +0000 (17:50 -0700)
committerHansong Zhang <hsz@google.com>
Fri, 25 Sep 2020 17:07:39 +0000 (10:07 -0700)
commit8ddee4d822712ae5760e093de4e0c7c715931b74
treee47a20b66c485251670b79aa0983db11af95ebc8
parentbf88eeb9eac530bc88022dc4a1793e2b6c840b06
L2CAP: Add a "required_remote_mtu" and store it

For AVCT_BR and BNEP, we need a larger required remote mtu than minimal
L2CAP MTU.

So far we enforce this in profile service itself, but later we can let
L2CAP module enforce this for us.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I0b4bad4049636bcdc52615c000b1fff3acde360c
13 files changed:
stack/avct/avct_api.cc
stack/avdt/avdt_api.cc
stack/bnep/bnep_main.cc
stack/gap/gap_conn.cc
stack/gatt/gatt_main.cc
stack/hid/hidd_conn.cc
stack/hid/hidh_conn.cc
stack/include/l2c_api.h
stack/l2cap/l2c_api.cc
stack/l2cap/l2c_int.h
stack/rfcomm/rfc_l2cap_if.cc
stack/sdp/sdp_main.cc
stack/test/common/mock_l2cap_layer.cc