fixing a segfault in dlschsim
This commit is contained in:
@@ -445,7 +445,8 @@ void nr_phy_config_request_sim(PHY_VARS_gNB *gNB,
|
|||||||
fp->nr_band = 261;
|
fp->nr_band = 261;
|
||||||
// fp->threequarter_fs= 0;
|
// fp->threequarter_fs= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fp->threequarter_fs = 0;
|
||||||
gNB_config->carrier_config.dl_bandwidth.value = config_bandwidth(mu, N_RB_DL, fp->nr_band);
|
gNB_config->carrier_config.dl_bandwidth.value = config_bandwidth(mu, N_RB_DL, fp->nr_band);
|
||||||
|
|
||||||
nr_init_frame_parms(gNB_config, fp);
|
nr_init_frame_parms(gNB_config, fp);
|
||||||
|
|||||||
@@ -110,8 +110,6 @@ void free_gNB_dlsch(NR_gNB_DLSCH_t **dlschptr, uint16_t N_RB)
|
|||||||
harq->d[r] = NULL;
|
harq->d[r] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free16(harq, sizeof(NR_DL_gNB_HARQ_t));
|
|
||||||
harq = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,7 +266,6 @@ int nr_dlsch_encoding(PHY_VARS_gNB *gNB,
|
|||||||
float Coderate = 0.0;
|
float Coderate = 0.0;
|
||||||
uint8_t Nl = 4;
|
uint8_t Nl = 4;
|
||||||
|
|
||||||
|
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_gNB_DLSCH_ENCODING, VCD_FUNCTION_IN);
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_gNB_DLSCH_ENCODING, VCD_FUNCTION_IN);
|
||||||
|
|
||||||
A = rel15->TBSize[0]<<3;
|
A = rel15->TBSize[0]<<3;
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ void generate_pss_nr(NR_DL_FRAME_PARMS *fp,int N_ID_2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int n=0; n < LENGTH_PSS_NR; n++) {
|
for (int n=0; n < LENGTH_PSS_NR; n++) {
|
||||||
int m = (n + 43*N_ID_2)%(LENGTH_PSS_NR);
|
int m = (n + 43*N_ID_2)%(LENGTH_PSS_NR);
|
||||||
d_pss[n] = 1 - 2*x[m];
|
d_pss[n] = 1 - 2*x[m];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user