applying Robert's patch
This commit is contained in:
@@ -537,17 +537,13 @@ void nr_initiate_ra_proc(module_id_t module_idP,
|
|||||||
}
|
}
|
||||||
|
|
||||||
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;
|
if (ra->state != RA_IDLE)
|
||||||
NR_UE_info_t *UE = NULL;
|
|
||||||
if(ra->rnti!=0) // calling the function only for a valid RNTI
|
|
||||||
UE = find_nr_UE(&nr_mac->UE_info, ra->rnti);
|
|
||||||
if (UE) {
|
|
||||||
// the UE is already registered
|
|
||||||
LOG_W(NR_MAC, "Received RA for existing RNTI %04x\n", ra->rnti);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
if (ra->state == RA_IDLE) {
|
pr_found = 0;
|
||||||
|
|
||||||
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]) {
|
if (preamble_index == ra->preambles.preamble_list[j]) {
|
||||||
@@ -700,7 +696,6 @@ void nr_initiate_ra_proc(module_id_t module_idP,
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
LOG_E(NR_MAC, "[gNB %d][RAPROC] FAILURE: CC_id %d Frame %d initiating RA procedure for preamble index %d\n", module_idP, CC_id, frameP, preamble_index);
|
LOG_E(NR_MAC, "[gNB %d][RAPROC] FAILURE: CC_id %d Frame %d initiating RA procedure for preamble index %d\n", module_idP, CC_id, frameP, preamble_index);
|
||||||
|
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_INITIATE_RA_PROC, 0);
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_INITIATE_RA_PROC, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user