Commit cb97ebcf authored by francescomani's avatar francescomani

using common configuration complete to signal sib1 decoded

parent 11889c0e
...@@ -365,9 +365,6 @@ typedef struct { ...@@ -365,9 +365,6 @@ typedef struct {
/// SSB index from MIB decoding /// SSB index from MIB decoding
uint8_t mib_ssb; uint8_t mib_ssb;
/// Flag for SIB1
uint8_t sib1_received;
/// Last NDI of UL HARQ processes /// Last NDI of UL HARQ processes
uint8_t UL_ndi[NR_MAX_HARQ_PROCESSES]; uint8_t UL_ndi[NR_MAX_HARQ_PROCESSES];
......
...@@ -152,7 +152,8 @@ int8_t nr_ue_decode_mib(module_id_t module_id, ...@@ -152,7 +152,8 @@ int8_t nr_ue_decode_mib(module_id_t module_id,
uint32_t band; uint32_t band;
uint16_t ssb_start_symbol; uint16_t ssb_start_symbol;
if ((get_softmodem_params()->sa == 1) && (mac->sib1_received == 0)) { if ((get_softmodem_params()->sa == 1) && (mac->common_configuration_complete == 0)) {
scs_ssb = get_softmodem_params()->numerology; scs_ssb = get_softmodem_params()->numerology;
band = mac->nr_band; band = mac->nr_band;
ssb_start_symbol = get_ssb_start_symbol(band,scs_ssb,ssb_index); ssb_start_symbol = get_ssb_start_symbol(band,scs_ssb,ssb_index);
......
...@@ -1189,7 +1189,7 @@ int8_t nr_rrc_ue_decode_NR_BCCH_DL_SCH_Message(module_id_t module_id, ...@@ -1189,7 +1189,7 @@ int8_t nr_rrc_ue_decode_NR_BCCH_DL_SCH_Message(module_id_t module_id,
check_requested_SI_List(module_id, NR_UE_rrc_inst[module_id].requested_SI_List, *sib1); check_requested_SI_List(module_id, NR_UE_rrc_inst[module_id].requested_SI_List, *sib1);
if( nr_rrc_get_state(module_id) <= RRC_STATE_IDLE_NR ) { if( nr_rrc_get_state(module_id) <= RRC_STATE_IDLE_NR ) {
NR_UE_rrc_inst[module_id].ra_trigger = INITIAL_ACCESS_FROM_RRC_IDLE; NR_UE_rrc_inst[module_id].ra_trigger = INITIAL_ACCESS_FROM_RRC_IDLE;
LOG_I(PHY,"Setting state to NR_RRC_SI_RECEIVED\n"); LOG_I(NR_RRC,"Setting state to NR_RRC_SI_RECEIVED\n");
nr_rrc_set_state (module_id, NR_RRC_SI_RECEIVED); nr_rrc_set_state (module_id, NR_RRC_SI_RECEIVED);
} }
// take ServingCellConfigCommon and configure L1/L2 // take ServingCellConfigCommon and configure L1/L2
......
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