Commit edd710f6 authored by Melissa Elkadi's avatar Melissa Elkadi

Removing bad log and changing RA state when we get prach

parent 54a894e5
......@@ -366,6 +366,7 @@ static void check_nr_prach(NR_UE_MAC_INST_t *mac, nr_uplink_indication_t *ul_inf
ul_info->slot_tx);
if (nr_prach == 1)
{
mac->ra.ra_state = GENERATE_PREAMBLE;
L1_nsa_prach_procedures(ul_info->frame_tx, ul_info->slot_tx, prach_pdu);
ul_config->number_pdus = 0;
ul_info->ue_sched_mode = SCHED_ALL;
......
......@@ -680,16 +680,6 @@ uint8_t nr_ue_get_rach(NR_PRACH_RESOURCES_t *prach_resources,
((MAX_FRAME_NUMBER+frame-prach_resources->sync_frame)%MAX_FRAME_NUMBER)>150){
prach_resources->init_msg1 = 1;
} else {
LOG_I(NR_MAC, "Melissa: mac->common_configuration_complete = %d \n"
" MAX_FRAME_NUMBER (%d) + frame (%d) - prach_resources->sync_frame (%d)"
" = (%d) mod MAX_FRAME_NUMBER (%d) = %d ??? >150\n",
mac->common_configuration_complete,
MAX_FRAME_NUMBER,
frame,
prach_resources->sync_frame,
MAX_FRAME_NUMBER + frame - prach_resources->sync_frame,
MAX_FRAME_NUMBER,
MAX_FRAME_NUMBER+frame-prach_resources->sync_frame%MAX_FRAME_NUMBER);
LOG_D(NR_MAC,"PRACH Condition not met: frame %d, prach_resources->sync_frame %d\n",
frame,prach_resources->sync_frame);
return 0;
......
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