Fixed bug in RLC UM when TX large number of segments in a PDU

This commit is contained in:
Ismael Gomez 2017-10-19 14:33:05 -04:00
parent 0a1f51e592
commit 494802ba9b

View file

@ -309,7 +309,7 @@ int rlc_um::build_data_pdu(uint8_t *payload, uint32_t nof_bytes)
}
// Pull SDUs from queue
while(pdu_space > head_len && tx_sdu_queue.size() > 0)
while(pdu_space > head_len + 1 && tx_sdu_queue.size() > 0)
{
log->debug("pdu_space=%d, head_len=%d\n", pdu_space, head_len);
if(last_li > 0)