Commit 054934c4 authored by kn.raju's avatar kn.raju Committed by Robert Schmidt

Do nr_schedule_RA() for all RA processes

parent baba8d69
...@@ -536,37 +536,31 @@ void nr_initiate_ra_proc(module_id_t module_idP, ...@@ -536,37 +536,31 @@ void nr_initiate_ra_proc(module_id_t module_idP,
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);
} }
void nr_schedule_RA(module_id_t module_idP, frame_t frameP, sub_frame_t slotP){ void nr_schedule_RA(module_id_t module_idP, frame_t frameP, sub_frame_t slotP)
{
//uint8_t i = 0;
int CC_id = 0;
gNB_MAC_INST *mac = RC.nrmac[module_idP]; gNB_MAC_INST *mac = RC.nrmac[module_idP];
NR_COMMON_channels_t *cc = &mac->common_channels[CC_id];
start_meas(&mac->schedule_ra); start_meas(&mac->schedule_ra);
for (int CC_id = 0; CC_id < MAX_NUM_CCs; CC_id++) {
// for (CC_id = 0; CC_id < MAX_NUM_CCs; CC_id++) { NR_COMMON_channels_t *cc = &mac->common_channels[CC_id];
// 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]; LOG_D(MAC, "RA[state:%d]\n", ra->state);
NR_RA_t *ra = &cc->ra[0]; switch (ra->state) {
case Msg2:
LOG_D(MAC,"RA[state:%d]\n",ra->state); nr_generate_Msg2(module_idP, CC_id, frameP, slotP);
switch (ra->state){ break;
case Msg2: case Msg4:
nr_generate_Msg2(module_idP, CC_id, frameP, slotP); // generate_Msg4(module_idP, CC_id, frameP, slotP);
break; break;
case Msg4: case WAIT_Msg4_ACK:
//generate_Msg4(module_idP, CC_id, frameP, slotP); // check_Msg4_retransmission(module_idP, CC_id, frameP, slotP);
break; break;
case WAIT_Msg4_ACK: default:
//check_Msg4_retransmission(module_idP, CC_id, frameP, slotP); break;
break; }
default: }
break;
} }
// }
// }
stop_meas(&mac->schedule_ra); stop_meas(&mac->schedule_ra);
} }
......
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