From 920e15c1a5d547518c46577efc86367d50331439 Mon Sep 17 00:00:00 2001 From: Francisco Date: Mon, 7 Dec 2020 18:00:49 +0000 Subject: [PATCH] fix logical channel pdu size computation --- srsenb/src/stack/mac/sched_ue_ctrl/sched_lch.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/srsenb/src/stack/mac/sched_ue_ctrl/sched_lch.cc b/srsenb/src/stack/mac/sched_ue_ctrl/sched_lch.cc index 4bfd6d095..9c7270a6c 100644 --- a/srsenb/src/stack/mac/sched_ue_ctrl/sched_lch.cc +++ b/srsenb/src/stack/mac/sched_ue_ctrl/sched_lch.cc @@ -37,8 +37,7 @@ uint32_t get_mac_sdu_and_subheader_size(uint32_t sdu_bytes) uint32_t get_dl_mac_sdu_size_with_overhead(uint32_t lcid, uint32_t rlc_pdu_bytes) { uint32_t overhead = (lcid == 0 or rlc_pdu_bytes == 0) ? 0 : RLC_MAX_HEADER_SIZE_NO_LI; - overhead += get_mac_sdu_and_subheader_size(overhead + rlc_pdu_bytes); - return overhead + rlc_pdu_bytes; + return get_mac_sdu_and_subheader_size(overhead + rlc_pdu_bytes); } uint32_t get_ul_mac_sdu_size_with_overhead(uint32_t rlc_pdu_bytes) { @@ -390,4 +389,4 @@ uint32_t allocate_mac_ces(sched_interface::dl_sched_data_t* data, return total_tbs - rem_tbs; } -} // namespace srsenb \ No newline at end of file +} // namespace srsenb