Commit 9ba8b563 authored by Francesco Mani's avatar Francesco Mani

rework of RA complete after scheduling msg2

parent 86516822
...@@ -357,9 +357,12 @@ void nr_schedule_RA(module_id_t module_idP, frame_t frameP, sub_frame_t slotP, i ...@@ -357,9 +357,12 @@ void nr_schedule_RA(module_id_t module_idP, frame_t frameP, sub_frame_t slotP, i
switch (ra->state){ switch (ra->state){
case Msg2: case Msg2:
nr_generate_Msg2(module_idP, CC_id, frameP, slotP); nr_generate_Msg2(module_idP, CC_id, frameP, slotP);
break;
case WAIT_Msg3:
UE_list->fiveG_connected[UE_id] = true; UE_list->fiveG_connected[UE_id] = true;
LOG_I(MAC, "[gNB %d][RAPROC] PUSCH with TC_RNTI %x received correctly and UE_id %d is now 5G connected\n", LOG_I(MAC, "[gNB %d][RAPROC] Msg2 has been transmitted and UE_id %d is now 5G connected\n",
module_idP, ra->rnti, UE_id); module_idP, UE_id);
ra->state = RA_IDLE;
break; break;
case Msg4: case Msg4:
//generate_Msg4(module_idP, CC_id, frameP, slotP, ra); //generate_Msg4(module_idP, CC_id, frameP, slotP, 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