From a4bb7da1ce0182ff505f603c66faaf6e9834090b Mon Sep 17 00:00:00 2001 From: francescomani Date: Wed, 22 May 2024 11:29:06 +0200 Subject: [PATCH] hotfix for cumulative DAI computation at UE --- openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c b/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c index f4812e639c..1cc4177f11 100644 --- a/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c +++ b/openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c @@ -1365,7 +1365,7 @@ void set_harq_status(NR_UE_MAC_INST_t *mac, // if temp_dai is less or equal than cumulative highest dai for given slot // it's an indication dai was reset due to modulo 4 operation if (temp_dai <= highest_dai) { - int mod4_count = (highest_dai / 4) + 1; // to take into account how many times dai wrapped up (modulo 4) + int mod4_count = (highest_dai + 1) / 4; // to take into account how many times dai wrapped up (modulo 4) current_harq->dai_cumul += (mod4_count * 4); } LOG_D(NR_MAC,