From 0d3ee2efe6bcff4aeea8ec16826e79cffbc65e3e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 8 Oct 2017 21:09:35 +0200 Subject: [PATCH] l2cap-ertm: fix setup of outgoing ertm tx buffers --- src/l2cap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/l2cap.c b/src/l2cap.c index 0d49b41d9..e79122bfa 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -472,9 +472,9 @@ static void l2cap_ertm_configure_channel(l2cap_channel_t * channel, l2cap_ertm_c // divide rest of data equally channel->local_mps = (size - pos) / (ertm_config->num_rx_buffers + ertm_config->num_tx_buffers); - log_info("Local MPS: %u", channel->local_mtu); + log_info("Local MPS: %u", channel->local_mps); channel->rx_packets_data = &buffer[pos]; - pos += ertm_config->num_rx_buffers * channel->local_mtu; + pos += ertm_config->num_rx_buffers * channel->local_mps; channel->tx_packets_data = &buffer[pos]; }