Commit bc1942f9 authored by francescomani's avatar francescomani

fixing a segfault in dlschsim

parent 7d2b45d8
...@@ -446,6 +446,7 @@ void nr_phy_config_request_sim(PHY_VARS_gNB *gNB, ...@@ -446,6 +446,7 @@ void nr_phy_config_request_sim(PHY_VARS_gNB *gNB,
// 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) ...@@ -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, ...@@ -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;
......
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