fix SIB other than 1
This commit is contained in:
committed by
Laurent THOMAS
parent
77d749ba87
commit
499bd49450
@@ -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;
|
uint32_t curr_mask = cfg->ssb_table.ssb_mask_list[ssb_index / 32].ssb_mask;
|
||||||
// check if if current SSB is transmitted
|
// check if if current SSB is transmitted
|
||||||
if ((curr_mask >> (31 - (ssb_index % 32))) & 0x01) {
|
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_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));
|
ssb_list->tx_ssb = calloc(ssb_list->nb_tx_ssb, sizeof(*ssb_list->tx_ssb));
|
||||||
|
|||||||
@@ -348,42 +348,55 @@ bool check_si_validity(NR_UE_RRC_SI_INFO *SI_info, int si_type)
|
|||||||
case NR_SIB_TypeInfo__type_sibType2:
|
case NR_SIB_TypeInfo__type_sibType2:
|
||||||
if (!SI_info->sib2)
|
if (!SI_info->sib2)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType3:
|
case NR_SIB_TypeInfo__type_sibType3:
|
||||||
if (!SI_info->sib3)
|
if (!SI_info->sib3)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType4:
|
case NR_SIB_TypeInfo__type_sibType4:
|
||||||
if (!SI_info->sib4)
|
if (!SI_info->sib4)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType5:
|
case NR_SIB_TypeInfo__type_sibType5:
|
||||||
if (!SI_info->sib5)
|
if (!SI_info->sib5)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType6:
|
case NR_SIB_TypeInfo__type_sibType6:
|
||||||
if (!SI_info->sib6)
|
if (!SI_info->sib6)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType7:
|
case NR_SIB_TypeInfo__type_sibType7:
|
||||||
if (!SI_info->sib7)
|
if (!SI_info->sib7)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType8:
|
case NR_SIB_TypeInfo__type_sibType8:
|
||||||
if (!SI_info->sib8)
|
if (!SI_info->sib8)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType9:
|
case NR_SIB_TypeInfo__type_sibType9:
|
||||||
if (!SI_info->sib9)
|
if (!SI_info->sib9)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType10_v1610:
|
case NR_SIB_TypeInfo__type_sibType10_v1610:
|
||||||
if (!SI_info->sib10)
|
if (!SI_info->sib10)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType11_v1610:
|
case NR_SIB_TypeInfo__type_sibType11_v1610:
|
||||||
if (!SI_info->sib11)
|
if (!SI_info->sib11)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType12_v1610:
|
case NR_SIB_TypeInfo__type_sibType12_v1610:
|
||||||
if (!SI_info->sib12)
|
if (!SI_info->sib12)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType13_v1610:
|
case NR_SIB_TypeInfo__type_sibType13_v1610:
|
||||||
if (!SI_info->sib13)
|
if (!SI_info->sib13)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case NR_SIB_TypeInfo__type_sibType14_v1610:
|
case NR_SIB_TypeInfo__type_sibType14_v1610:
|
||||||
if (!SI_info->sib14)
|
if (!SI_info->sib14)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
default :
|
default :
|
||||||
AssertFatal(false, "Invalid SIB type %d\n", si_type);
|
AssertFatal(false, "Invalid SIB type %d\n", si_type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user