OSDN Git Service

L2CAP: Allowed mode is equivalent to preferred mode
authorHansong Zhang <hsz@google.com>
Thu, 24 Sep 2020 00:25:39 +0000 (17:25 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 24 Sep 2020 02:14:16 +0000 (19:14 -0700)
commitdea3f23a217ba39c8df01b48fb1e003a92f279db
tree15a31f5e97f76eac1f2829246a4ebef2a0e30aac
parent0784dff159540a2e28625682267d6426514c1474
L2CAP: Allowed mode is equivalent to preferred mode

In all use cases, we want one BASIC or ERTM exculsively, but we never
allow "both are ok" mode.

Remove allowed_mode.  Use preferred_mode to denote the desired mode.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I846eca1912fc9ea04dfa57c5698039d62e634186
btif/src/btif_sock_l2cap.cc
stack/avct/avct_api.cc
stack/avct/avct_bcb_act.cc
stack/avct/avct_l2c_br.cc
stack/gap/gap_conn.cc
stack/include/l2c_api.h
stack/l2cap/l2c_api.cc
stack/l2cap/l2c_fcr.cc
stack/l2cap/l2c_utils.cc