Commit caeae5fb authored by Melissa Elkadi's avatar Melissa Elkadi

Updating gNB RA PROC to match develop branch

parent e79143c1
...@@ -516,28 +516,13 @@ void nr_initiate_ra_proc(module_id_t module_idP, ...@@ -516,28 +516,13 @@ void nr_initiate_ra_proc(module_id_t module_idP,
total_RApreambles = total_RApreambles/num_ssb_per_RO ; total_RApreambles = total_RApreambles/num_ssb_per_RO ;
} }
for (int i = 0; i < NR_NB_RA_PROC_MAX; i++) {
NR_RA_t *ra = &cc->ra[i];
LOG_D(MAC,
"[gNB %d][RAPROC] CC_id %d Frame %d, Slot %d Checking all rnti : preamble index %d, rnti %x\n",
module_idP,
CC_id,
frameP,
slotP,
preamble_index,
ra->rnti);
}
for (int i = 0; i < NR_NB_RA_PROC_MAX; i++) { for (int i = 0; i < NR_NB_RA_PROC_MAX; i++) {
NR_RA_t *ra = &cc->ra[i]; NR_RA_t *ra = &cc->ra[i];
pr_found = 0; pr_found = 0;
const int UE_id = find_nr_UE_id(module_idP, ra->rnti);
if (UE_id != -1) {
continue;
}
if (ra->state == RA_IDLE) { if (ra->state == RA_IDLE) {
for(int j = 0; j < ra->preambles.num_preambles; j++) { for(int j = 0; j < ra->preambles.num_preambles; j++) {
//check if the preamble received correspond to one of the listed or configured preambles //check if the preamble received correspond to one of the listed or configured preambles
if (preamble_index == ra->preambles.preamble_list[j] && ra->rnti != 0) { if (preamble_index == ra->preambles.preamble_list[j]) {
pr_found=1; pr_found=1;
break; break;
} }
......
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