diff --git a/openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c b/openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c index 3b1f2ee876..a76f5237c4 100644 --- a/openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c +++ b/openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c @@ -1738,8 +1738,8 @@ static void build_ssb_list(NR_UE_MAC_INST_t *mac) uint32_t curr_mask = cfg->ssb_table.ssb_mask_list[ssb_index / 32].ssb_mask; // check if if current SSB is transmitted if ((curr_mask >> (31 - (ssb_index % 32))) & 0x01) { - ssb_list->nb_tx_ssb++; ssb_list->nb_ssb_per_index[ssb_index]=ssb_list->nb_tx_ssb; + ssb_list->nb_tx_ssb++; } } ssb_list->tx_ssb = calloc(ssb_list->nb_tx_ssb, sizeof(*ssb_list->tx_ssb)); diff --git a/openair2/RRC/NR_UE/rrc_UE.c b/openair2/RRC/NR_UE/rrc_UE.c index e6d017b878..c397de4346 100644 --- a/openair2/RRC/NR_UE/rrc_UE.c +++ b/openair2/RRC/NR_UE/rrc_UE.c @@ -348,42 +348,55 @@ bool check_si_validity(NR_UE_RRC_SI_INFO *SI_info, int si_type) case NR_SIB_TypeInfo__type_sibType2: if (!SI_info->sib2) return false; + break; case NR_SIB_TypeInfo__type_sibType3: if (!SI_info->sib3) return false; + break; case NR_SIB_TypeInfo__type_sibType4: if (!SI_info->sib4) return false; + break; case NR_SIB_TypeInfo__type_sibType5: if (!SI_info->sib5) return false; + break; case NR_SIB_TypeInfo__type_sibType6: if (!SI_info->sib6) return false; + break; case NR_SIB_TypeInfo__type_sibType7: if (!SI_info->sib7) return false; + break; case NR_SIB_TypeInfo__type_sibType8: if (!SI_info->sib8) return false; + break; case NR_SIB_TypeInfo__type_sibType9: if (!SI_info->sib9) return false; + break; case NR_SIB_TypeInfo__type_sibType10_v1610: if (!SI_info->sib10) return false; + break; case NR_SIB_TypeInfo__type_sibType11_v1610: if (!SI_info->sib11) return false; + break; case NR_SIB_TypeInfo__type_sibType12_v1610: if (!SI_info->sib12) return false; + break; case NR_SIB_TypeInfo__type_sibType13_v1610: if (!SI_info->sib13) return false; + break; case NR_SIB_TypeInfo__type_sibType14_v1610: if (!SI_info->sib14) return false; + break; default : AssertFatal(false, "Invalid SIB type %d\n", si_type); }