OSDN Git Service

Profile services have const MTU size now
authorHansong Zhang <hsz@google.com>
Thu, 24 Sep 2020 23:56:10 +0000 (16:56 -0700)
committerHansong Zhang <hsz@google.com>
Fri, 25 Sep 2020 17:07:30 +0000 (10:07 -0700)
commit2e15c539cccfac867014701cfe97022145f361e9
treea59ce75b5cf99f9c90e39c7b5d91bca599042ce3
parent1cb3744fa9663636ad82d549c57b004a0b54c4c0
Profile services have const MTU size now

For GAP, the value comes from
`btsock_l2cap_listen_or_connect`. For classic dynamic channel, we use
L2CAP_SDU_LENGTH_MAX for now.

For GATT, we use GATT_MAX_MTU_SIZE, which was used when we send
config request.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I93b82c718866f09c4c209311c93b65f2dc74b193
stack/bnep/bnep_main.cc
stack/gap/gap_conn.cc
stack/gatt/gatt_int.h
stack/gatt/gatt_main.cc
stack/hid/hidd_conn.cc
stack/hid/hidh_conn.cc
stack/rfcomm/rfc_l2cap_if.cc
stack/sdp/sdp_main.cc