From bf81ea19d310d6a98e5bba05d991d9cf91aeda4c Mon Sep 17 00:00:00 2001 From: "kn.raju" Date: Thu, 11 Feb 2021 17:07:53 +0100 Subject: [PATCH] Check cfra in nr_initiate_ra_proc() --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c index 35f6d35136..fa5cacfba4 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c @@ -502,6 +502,9 @@ void nr_initiate_ra_proc(module_id_t module_idP, preamble_index, freq_index, symbol); + + // the UE sent a RACH either for starting RA procedure or RA procedure failed and UE retries + if (ra->cfra) { int pr_found=0; if (preamble_index == ra->preambles.preamble_list[beam_index]) { pr_found=1; @@ -511,7 +514,7 @@ void nr_initiate_ra_proc(module_id_t module_idP, module_idP, preamble_index); return; // if the PRACH preamble does not correspond to any of the ones sent through RRC abort RA proc } - + } int loop = 0; LOG_D(MAC, "Frame %d, Slot %d: Activating RA process \n", frameP, slotP); ra->state = Msg2;