From 10e7d9f2e105168f2036885fa1acebe46b48f2de Mon Sep 17 00:00:00 2001
From: Matthieu Kanj <Matthieu.kanj@b-com.com>
Date: Tue, 5 Feb 2019 17:54:52 +0100
Subject: [PATCH] bug fix

---
 openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation_NB_IoT.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation_NB_IoT.c b/openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation_NB_IoT.c
index 0eec74a142..e2de4b414e 100644
--- a/openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation_NB_IoT.c
+++ b/openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation_NB_IoT.c
@@ -313,7 +313,7 @@ int ul_chest_tmp_NB_IoT(int32_t             **rxdataF_ext,
     {
         received_data = (int16_t *)&rxdataF_ext[aa][symbol_offset];
         estimated_channel = (int16_t *)&ul_ch_estimates[aa][symbol_offset]; 
-        pilot_sig  = &ul_ref_sigs_rx_NB_IoT[u][index_Nsc_RU][24 + 24*((8-counter_msg3)*2+Ns)-(ul_sc_start<<1)]; // pilot values depends on the slots
+        pilot_sig  = &ul_ref_sigs_rx_NB_IoT[u][index_Nsc_RU][24 + 24*((N_SF_per_word-counter_msg3)*2+Ns)-(ul_sc_start<<1)]; // pilot values depends on the slots
 
         for (k=0;k<12;k++)
         {
-- 
2.26.2