Commit 54ec3211 authored by Sakthivel Velumani's avatar Sakthivel Velumani

corrected txdataF mem allocation

parent e50566cb
......@@ -160,9 +160,9 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB,
gNB->first_run_I0_measurements =
1; ///This flag used to be static. With multiple gNBs this does no longer work, hence we put it in the structure. However it has to be initialized with 1, which is performed here.
common_vars->rxdata = (int32_t **)malloc16((fp->Lmax+1)*sizeof(int32_t*));
common_vars->txdataF = (int32_t **)malloc16((fp->Lmax+1)*sizeof(int32_t*));
common_vars->rxdataF = (int32_t **)malloc16((fp->Lmax+1)*sizeof(int32_t*));
common_vars->rxdata = (int32_t **)malloc16(fp->Lmax*sizeof(int32_t*));
common_vars->txdataF = (int32_t **)malloc16(fp->Lmax*sizeof(int32_t*));
common_vars->rxdataF = (int32_t **)malloc16(fp->Lmax*sizeof(int32_t*));
for (i=0;i<fp->Lmax;i++){
common_vars->txdataF[i] = (int32_t*)malloc16_clear(fp->samples_per_frame_wCP*sizeof(int32_t)); // [hna] samples_per_frame without CP
......
......@@ -75,8 +75,8 @@ int nr_phy_init_RU(RU_t *ru) {
// allocate precoding input buffers (TX)
ru->common.txdataF = (int32_t **)malloc16(15*sizeof(int32_t*));
for(i=0; i< 15; ++i) ru->common.txdataF[i] = (int32_t*)malloc16_clear(fp->samples_per_frame_wCP*sizeof(int32_t)); // [hna] samples_per_frame without CP
ru->common.txdataF = (int32_t **)malloc16(fp->Lmax*sizeof(int32_t*));
for(i=0; i< fp->Lmax; ++i) ru->common.txdataF[i] = (int32_t*)malloc16_clear(fp->samples_per_frame_wCP*sizeof(int32_t)); // [hna] samples_per_frame without CP
// allocate IFFT input buffers (TX)
ru->common.txdataF_BF = (int32_t **)malloc16(ru->nb_tx*sizeof(int32_t*));
......
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