From aabd22f4930efb30a3dbd82483be9f8c4216035c Mon Sep 17 00:00:00 2001 From: Robert Falkenberg Date: Tue, 29 Mar 2022 18:02:58 +0200 Subject: [PATCH] lib,rlc_am_nr: cosmetic change in assert rx_highest_status --- lib/src/rlc/rlc_am_nr.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/rlc/rlc_am_nr.cc b/lib/src/rlc/rlc_am_nr.cc index 296e4e2c2..6334daeb0 100644 --- a/lib/src/rlc/rlc_am_nr.cc +++ b/lib/src/rlc/rlc_am_nr.cc @@ -1436,8 +1436,7 @@ void rlc_am_nr_rx::timer_expired(uint32_t timeout_id) } } st.rx_highest_status = sn_upd; - srsran_assert(rx_mod_base_nr(st.rx_next) < rx_mod_base_nr(sn_upd), - "Error: rx_highest_status assigned outside receive window"); + srsran_assert(inside_rx_window(st.rx_highest_status), "Error: rx_highest_status assigned outside rx window"); bool restart_reassembly_timer = false; if (rx_mod_base_nr(st.rx_next_highest) > rx_mod_base_nr(st.rx_highest_status + 1)) {