Loading system/stack/gatt/gatt_cl.cc +3 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,8 @@ #define GATT_MTU_RSP_MIN_LEN 2 #define GATT_READ_BY_TYPE_RSP_MIN_LEN 1 #define L2CAP_PKT_OVERHEAD 4 using base::StringPrintf; using bluetooth::Uuid; using bluetooth::eatt::EattExtension; Loading Loading @@ -1094,7 +1096,7 @@ void gatt_process_mtu_rsp(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, uint16_t len, tcb.payload_size = mtu; } BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size); BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size + L2CAP_PKT_OVERHEAD); gatt_end_operation(p_clcb, status, NULL); } Loading system/stack/gatt/gatt_sr.cc +2 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ #include "stack/eatt/eatt.h" #include "stack/l2cap/l2c_int.h" #define GATT_MTU_REQ_MIN_LEN 2 #define L2CAP_PKT_OVERHEAD 4 using base::StringPrintf; using bluetooth::Uuid; Loading Loading @@ -814,7 +815,7 @@ static void gatts_process_mtu_req(tGATT_TCB& tcb, uint16_t cid, uint16_t len, LOG(INFO) << "MTU request PDU with MTU size " << +tcb.payload_size; BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size); BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size + L2CAP_PKT_OVERHEAD); tGATT_SR_MSG gatt_sr_msg; gatt_sr_msg.mtu = tcb.payload_size; Loading Loading
system/stack/gatt/gatt_cl.cc +3 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,8 @@ #define GATT_MTU_RSP_MIN_LEN 2 #define GATT_READ_BY_TYPE_RSP_MIN_LEN 1 #define L2CAP_PKT_OVERHEAD 4 using base::StringPrintf; using bluetooth::Uuid; using bluetooth::eatt::EattExtension; Loading Loading @@ -1094,7 +1096,7 @@ void gatt_process_mtu_rsp(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, uint16_t len, tcb.payload_size = mtu; } BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size); BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size + L2CAP_PKT_OVERHEAD); gatt_end_operation(p_clcb, status, NULL); } Loading
system/stack/gatt/gatt_sr.cc +2 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ #include "stack/eatt/eatt.h" #include "stack/l2cap/l2c_int.h" #define GATT_MTU_REQ_MIN_LEN 2 #define L2CAP_PKT_OVERHEAD 4 using base::StringPrintf; using bluetooth::Uuid; Loading Loading @@ -814,7 +815,7 @@ static void gatts_process_mtu_req(tGATT_TCB& tcb, uint16_t cid, uint16_t len, LOG(INFO) << "MTU request PDU with MTU size " << +tcb.payload_size; BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size); BTM_SetBleDataLength(tcb.peer_bda, tcb.payload_size + L2CAP_PKT_OVERHEAD); tGATT_SR_MSG gatt_sr_msg; gatt_sr_msg.mtu = tcb.payload_size; Loading