l2cap-ertm: fix setup of outgoing ertm tx buffers

This commit is contained in:
Matthias Ringwald 2017-10-08 21:09:35 +02:00
parent 7cbe539fe0
commit 0d3ee2efe6

View File

@ -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];
}