From c74661ae95e45ccf2fdf98cf251236f062f50fe1 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 7 Apr 2021 20:37:42 +0200 Subject: [PATCH] rlc_am: add log message when received NACK SN is already on retx queue --- lib/src/upper/rlc_am_lte.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/upper/rlc_am_lte.cc b/lib/src/upper/rlc_am_lte.cc index 7e51c24e3..2f811f6d7 100644 --- a/lib/src/upper/rlc_am_lte.cc +++ b/lib/src/upper/rlc_am_lte.cc @@ -1140,7 +1140,7 @@ void rlc_am_lte::rlc_am_lte_tx::handle_control_pdu(uint8_t* payload, uint32_t no update_vt_a = false; if (tx_window.has_sn(i)) { auto& pdu = tx_window[i]; - if (!retx_queue.has_sn(i)) { + if (not retx_queue.has_sn(i)) { rlc_amd_retx_t& retx = retx_queue.push(); srsran_expect(tx_window[i].rlc_sn == i, "Incorrect RLC SN=%d!=%d being accessed", tx_window[i].rlc_sn, i); retx.sn = i; @@ -1176,6 +1176,8 @@ void rlc_am_lte::rlc_am_lte_tx::handle_control_pdu(uint8_t* payload, uint32_t no pdu.buf->N_bytes); } } + } else { + logger.info("%s NACKed SN=%d already considered for retransmission", RB_NAME, i); } } else { logger.warning("%s NACKed SN=%d already removed from Tx window", RB_NAME, i);