From 10c914cd4ed6da9841c609faf7950cd45d41d73b Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 30 Jan 2024 09:50:44 +0100 Subject: [PATCH] bugfix: if cannot send Msg.2 in RA, cancel RA If we cannot send Msg.2, then basically the RA process is dead (because the UE expects it at a fixed time). Hence, cancel the RA process, so that we do not pick it up again after 1000 frames. --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c index b901810c2e..ca8e2f3e22 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c @@ -1254,6 +1254,7 @@ static void nr_generate_Msg2(module_id_t module_idP, if (CCEIndex < 0) { LOG_E(NR_MAC, "%s(): cannot find free CCE for RA RNTI 0x%04x!\n", __func__, ra->rnti); + nr_clear_ra_proc(module_idP, CC_id, frameP, ra); return; }