Commit af8d6fce authored by Melissa Elkadi's avatar Melissa Elkadi

Setting ra_state breaks RA Procedure for NSA mode

Also, changed some if statement formatting.
parent cdfabda9
...@@ -374,7 +374,6 @@ static void check_nr_prach(NR_UE_MAC_INST_t *mac, nr_uplink_indication_t *ul_inf ...@@ -374,7 +374,6 @@ static void check_nr_prach(NR_UE_MAC_INST_t *mac, nr_uplink_indication_t *ul_inf
ul_info->slot_tx); ul_info->slot_tx);
if (nr_prach == 1) if (nr_prach == 1)
{ {
mac->ra.ra_state = GENERATE_PREAMBLE;
L1_nsa_prach_procedures(ul_info->frame_tx, ul_info->slot_tx, prach_pdu); L1_nsa_prach_procedures(ul_info->frame_tx, ul_info->slot_tx, prach_pdu);
ul_config->number_pdus = 0; ul_config->number_pdus = 0;
ul_info->ue_sched_mode = SCHED_ALL; ul_info->ue_sched_mode = SCHED_ALL;
...@@ -446,16 +445,13 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg) ...@@ -446,16 +445,13 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
module_id_t mod_id = 0; module_id_t mod_id = 0;
NR_UE_MAC_INST_t *mac = get_mac_inst(mod_id); NR_UE_MAC_INST_t *mac = get_mac_inst(mod_id);
if (mac->mib == NULL) if (get_softmodem_params()->sa && mac->mib == NULL)
{ {
if (get_softmodem_params()->sa) LOG_D(NR_MAC, "We haven't gotten MIB. Lets see if we received it\n");
{ nr_ue_dl_indication(&mac->dl_info, &ul_time_alignment);
LOG_D(NR_MAC, "We haven't gotten MIB. Lets see if we received it\n"); process_queued_nr_nfapi_msgs(mac, sfn_slot);
nr_ue_dl_indication(&mac->dl_info, &ul_time_alignment);
process_queued_nr_nfapi_msgs(mac, sfn_slot);
}
} }
if (mac->scc == NULL && mac->scc_SIB == NULL ) if (mac->scc == NULL && mac->scc_SIB == NULL)
{ {
LOG_D(MAC, "[NSA] mac->scc == NULL and [SA] mac->scc_SIB == NULL!\n"); LOG_D(MAC, "[NSA] mac->scc == NULL and [SA] mac->scc_SIB == NULL!\n");
continue; continue;
......
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