From ca949b4c29d191093fbb55a8affd912c9bf0f03a Mon Sep 17 00:00:00 2001 From: francescomani Date: Tue, 26 Mar 2024 10:47:19 +0100 Subject: [PATCH] remove nushift in DL channel estimation --- openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c b/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c index bc8d8e3786..2ba227d968 100644 --- a/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c +++ b/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c @@ -1665,13 +1665,6 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue, nb_rb_pdsch + rb_offset, config_type); - uint8_t nushift = 0; - if (config_type == NFAPI_NR_DMRS_TYPE1) { - nushift = (p >> 1) & 1; - } else { // NFAPI_NR_DMRS_TYPE2 - nushift = delta; - } - delay_t delay = {0}; for (int aarx = 0; aarx < ue->frame_parms.nb_antennas_rx; aarx++) { @@ -1682,7 +1675,7 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue, printf("============================================\n"); #endif - c16_t *rxF = &rxdataF[aarx][symbol_offset + nushift]; + c16_t *rxF = &rxdataF[aarx][symbol_offset + delta]; c16_t *dl_ch = (c16_t *)&dl_ch_estimates[nl * ue->frame_parms.nb_antennas_rx + aarx][ch_offset]; memset(dl_ch, 0, sizeof(*dl_ch) * ue->frame_parms.ofdm_symbol_size);