From 78d5ed1bc8f412fa574c0ef06d88c691dfc87dc6 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 12 Oct 2021 18:00:20 +0100 Subject: [PATCH] Fix get buffer state when status report is required --- lib/src/rlc/rlc_am_nr.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/rlc/rlc_am_nr.cc b/lib/src/rlc/rlc_am_nr.cc index 7dfb917c0..f8b92d7ed 100644 --- a/lib/src/rlc/rlc_am_nr.cc +++ b/lib/src/rlc/rlc_am_nr.cc @@ -192,7 +192,10 @@ void rlc_am_nr_tx::get_buffer_state(uint32_t& tx_queue, uint32_t& prio_tx_queue) } // Bytes needed for status report - // TODO + if (do_status() /* && not TODO status_prohibit_timer*/) { + n_bytes += parent->rx->get_status_pdu_length(); + logger->debug("%s Buffer state - total status report: %d bytes", rb_name, n_bytes); + } // Bytes needed for retx // TODO