From 0a1651e45c16489880153ead0ef666d084ef070b Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Mon, 12 Feb 2024 18:15:04 +0100 Subject: [PATCH] Periodically check for stats freeing to prevent assert Not periodically checking stats freeing can lead to asserts if these lists are full. Check it once a frame to ensure that lists remain non-empty. --- executables/nr-gnb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/executables/nr-gnb.c b/executables/nr-gnb.c index e7f92a054c..c66123112f 100644 --- a/executables/nr-gnb.c +++ b/executables/nr-gnb.c @@ -131,6 +131,11 @@ static void tx_func(void *param) T(T_GNB_PHY_DL_TICK, T_INT(gNB->Mod_id), T_INT(frame_tx), T_INT(slot_tx)); + if (slot_rx == 0) { + reset_active_stats(gNB, frame_rx); + reset_active_ulsch(gNB, frame_rx); + } + start_meas(&gNB->slot_indication_stats); ifi->NR_slot_indication(module_id, CC_id, frame_tx, slot_tx); stop_meas(&gNB->slot_indication_stats);