OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2418577
)
l2cap: Add mtu and mps to lead eatt channel
author
Chris Manton
<cmanton@google.com>
Wed, 11 Nov 2020 20:58:17 +0000
(12:58 -0800)
committer
Chris Manton
<cmanton@google.com>
Thu, 12 Nov 2020 06:43:25 +0000
(22:43 -0800)
Bug:
159786353
Test: CtsVerifier
Tag: #feature
Change-Id: Ia5be81bde7a10d0b8e466b9b856d75d52b43a349
stack/l2cap/l2c_ble.cc
patch
|
blob
|
history
diff --git
a/stack/l2cap/l2c_ble.cc
b/stack/l2cap/l2c_ble.cc
index
3134f74
..
6bd8fb7
100644
(file)
--- a/
stack/l2cap/l2c_ble.cc
+++ b/
stack/l2cap/l2c_ble.cc
@@
-651,6
+651,9
@@
void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) {
/*This is going to be our lead p_ccb for state machine */
if (!lead_cid_set) {
p_ccb = temp_p_ccb;
+ p_ccb->local_conn_cfg.mtu = L2CAP_SDU_LENGTH_LE_MAX;
+ p_ccb->local_conn_cfg.mps =
+ controller_get_interface()->get_acl_data_size_ble();
p_lcb->pending_lead_cid = p_ccb->local_cid;
lead_cid_set = true;
}