Lines Matching refs:mtu
122 tGATTS_RSP *p_msg, UINT16 mtu)
128 GATT_TRACE_DEBUG ("%s status=%d mtu=%d", __func__, status, mtu);
147 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu;
179 if (total_len > mtu)
182 len = p_rsp->attr_value.len - (total_len - mtu);
867 ** Description This function is called to process excahnge MTU request.
875 UINT16 mtu = 0;
887 GATT_TRACE_ERROR("invalid MTU request PDU received.");
892 STREAM_TO_UINT16 (mtu, p);
893 /* mtu must be greater than default MTU which is 23/48 */
894 if (mtu < GATT_DEF_BLE_MTU_SIZE)
896 else if (mtu > GATT_MAX_MTU_SIZE)
899 p_tcb->payload_size = mtu;
901 GATT_TRACE_ERROR("MTU request PDU with MTU size %d", p_tcb->payload_size);
909 /* Notify all registered applicaiton with new MTU size. Us a transaction ID */
1412 /* The message has to be smaller than the agreed MTU, len does not include op code */