@@ -685,14 +685,32 @@ void term_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
free_and_zero(ue->sinr_CQI_dB);
}
voidinit_nr_ue_transport(PHY_VARS_NR_UE*ue,
intabstraction_flag){
voidterm_nr_ue_transport(PHY_VARS_NR_UE*ue)
{
constintN_RB_DL=ue->frame_parms.N_RB_DL;
for(inti=0;i<NUMBER_OF_CONNECTED_gNB_MAX;i++){
for(intj=0;j<2;j++){
for(intk=0;k<RX_NB_TH_MAX;k++){
free_nr_ue_dlsch(&ue->dlsch[k][i][j],N_RB_DL);
free_nr_ue_ulsch(&ue->ulsch[k][i][j],N_RB_DL);
}
}
free_nr_ue_dlsch(&ue->dlsch_SI[i],N_RB_DL);
free_nr_ue_dlsch(&ue->dlsch_ra[i],N_RB_DL);
}
free_nr_ue_dlsch(&ue->dlsch_MCH[0],N_RB_DL);
}
voidinit_nr_ue_transport(PHY_VARS_NR_UE*ue)
{
for(inti=0;i<NUMBER_OF_CONNECTED_gNB_MAX;i++){
for(intj=0;j<2;j++){
for(intk=0;k<RX_NB_TH_MAX;k++){
AssertFatal((ue->dlsch[k][i][j]=new_nr_ue_dlsch(1,NR_MAX_DLSCH_HARQ_PROCESSES,NSOFT,MAX_LDPC_ITERATIONS,ue->frame_parms.N_RB_DL))!=NULL,"Can't get ue dlsch structures\n");
AssertFatal((ue->ulsch[k][i][j]=new_nr_ue_ulsch(ue->frame_parms.N_RB_UL,NR_MAX_ULSCH_HARQ_PROCESSES,abstraction_flag))!=NULL,"Can't get ue ulsch structures\n");
AssertFatal((ue->ulsch[k][i][j]=new_nr_ue_ulsch(ue->frame_parms.N_RB_UL,NR_MAX_ULSCH_HARQ_PROCESSES))!=NULL,"Can't get ue ulsch structures\n");