From c65db568f5d93ce23d7609524ff722aa81324c0f Mon Sep 17 00:00:00 2001 From: francescomani Date: Mon, 21 Jul 2025 13:05:29 +0200 Subject: [PATCH] take into account starting PRB when deciding even/odd PRB for CSI PDSCH rate-matching --- openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c b/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c index 37c8382ec5..0999f92de4 100644 --- a/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c +++ b/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c @@ -493,8 +493,8 @@ int nr_rx_pdsch(PHY_VARS_NR_UE *ue, uint32_t csi_re_count = 0; uint32_t csi_res_even = csi_res_bitmap & 0xfff; uint32_t csi_res_odd = (csi_res_bitmap >> 16) & 0xfff; - - for (int rb = 0; rb < nb_rb_pdsch; rb++) { + int start = start_rb + dlsch_config->BWPStart; + for (int rb = start; rb < start + nb_rb_pdsch; rb++) { uint32_t rb_csi_pattern = (rb % 2 == 0) ? csi_res_even : csi_res_odd; csi_re_count += __builtin_popcount(rb_csi_pattern); }