fix MAC PDU packing for large TB sizes

update the byte_buffer length variable after updating the remaining
PDU length. This has caused an error when calculating the
remaing space in the PDU because the SDU length was counted twice.
master
Andre Puschmann 6 years ago
parent 94cc61e4b1
commit 21f8698397

@ -660,8 +660,9 @@ int sch_subh::set_sdu(uint32_t lcid_, uint32_t requested_bytes_, read_pdu_interf
}
}
((sch_pdu*)parent)->add_sdu(nof_bytes);
((sch_pdu*)parent)->update_space_sdu(nof_bytes);
((sch_pdu*)parent)->add_sdu(nof_bytes);
return nof_bytes;
} else {
return SRSLTE_ERROR;

Loading…
Cancel
Save