From 35f5fdf960a2a35bde10d6c9126cbe7813147d5f Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Fri, 9 Aug 2024 15:47:50 +0200 Subject: [PATCH] nr rlc tm: bugfix: reset t_current when clearing entity maybe not super important, but let's harmonize with um/am --- openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c b/openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c index ba43eefb24..7b541c02ff 100644 --- a/openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c +++ b/openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c @@ -188,6 +188,8 @@ void nr_rlc_entity_tm_discard_sdu(nr_rlc_entity_t *_entity, int sdu_id) static void clear_entity(nr_rlc_entity_tm_t *entity) { + entity->t_current = 0; + entity->t_log_buffer_full = 0; entity->sdu_rejected = 0;