Commit 5632e8f1 authored by kn.raju's avatar kn.raju Committed by Robert Schmidt

Check cfra in nr_initiate_ra_proc()

parent 586fd1ed
...@@ -502,6 +502,9 @@ void nr_initiate_ra_proc(module_id_t module_idP, ...@@ -502,6 +502,9 @@ void nr_initiate_ra_proc(module_id_t module_idP,
preamble_index, preamble_index,
freq_index, freq_index,
symbol); 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; int pr_found=0;
if (preamble_index == ra->preambles.preamble_list[beam_index]) { if (preamble_index == ra->preambles.preamble_list[beam_index]) {
pr_found=1; pr_found=1;
...@@ -511,7 +514,7 @@ void nr_initiate_ra_proc(module_id_t module_idP, ...@@ -511,7 +514,7 @@ void nr_initiate_ra_proc(module_id_t module_idP,
module_idP, preamble_index); module_idP, preamble_index);
return; // if the PRACH preamble does not correspond to any of the ones sent through RRC abort RA proc return; // if the PRACH preamble does not correspond to any of the ones sent through RRC abort RA proc
} }
}
int loop = 0; int loop = 0;
LOG_D(MAC, "Frame %d, Slot %d: Activating RA process \n", frameP, slotP); LOG_D(MAC, "Frame %d, Slot %d: Activating RA process \n", frameP, slotP);
ra->state = Msg2; ra->state = Msg2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment