From 98efcd522077cb4cd3c08b6c50cf1d0cf1ec1191 Mon Sep 17 00:00:00 2001
From: Calisson <calisson@eurecom.fr>
Date: Tue, 21 Mar 2017 09:37:08 +0100
Subject: [PATCH] fixing a bug related to SRS procedures

---
 openair1/SCHED/phy_procedures_lte_eNb.c                |  5 +++--
 .../GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf  | 10 +++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/openair1/SCHED/phy_procedures_lte_eNb.c b/openair1/SCHED/phy_procedures_lte_eNb.c
index b9fdc5d226..36d6ca8ff9 100644
--- a/openair1/SCHED/phy_procedures_lte_eNb.c
+++ b/openair1/SCHED/phy_procedures_lte_eNb.c
@@ -843,6 +843,7 @@ void generate_eNB_ulsch_params(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC
 	1<<dci_alloc->L);
   
   is_srs_pos = is_srs_occasion_common(fp,pdcch_alloc2ul_frame(fp,frame,subframe),pdcch_alloc2ul_subframe(fp,subframe));
+  /*
   if (is_srs_pos && eNB->soundingrs_ul_config_dedicated[UE_id].srsConfigDedicatedSetup) {
     srsConfigIndex = eNB->soundingrs_ul_config_dedicated[UE_id].srs_ConfigIndex;
     compute_srs_pos(fp->frame_type, srsConfigIndex, &srsPeriodicity, &srsOffset);
@@ -850,10 +851,10 @@ void generate_eNB_ulsch_params(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC
       do_srs = 1;
     }
   }
-
       LOG_D(PHY,"frame %d (%d), subframe %d (%d), UE_id %d: is_srs_pos %d, do_SRS %d, index %d, period %d, offset %d \n",
 	    frame,pdcch_alloc2ul_frame(fp,frame,subframe),subframe,pdcch_alloc2ul_subframe(fp,subframe),
 	    UE_id,is_srs_pos,do_srs,srsConfigIndex,srsPeriodicity,srsOffset);
+  */
 
   generate_eNB_ulsch_params_from_dci(eNB,
 				     proc,
@@ -865,7 +866,7 @@ void generate_eNB_ulsch_params(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,DCI_ALLOC
 				     0,
 				     P_RNTI,
 				     CBA_RNTI,
-				     do_srs);  // do_srs
+				     is_srs_pos);  
   
   LOG_T(PHY,"[eNB %"PRIu8"] Frame %d subframe %d : CCE resources for UE spec DCI (PUSCH %"PRIx16") => %d\n",
 	eNB->Mod_id,frame,subframe,dci_alloc->rnti,
diff --git a/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf b/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf
index 024be3b775..a33c2eb41b 100644
--- a/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf
+++ b/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf
@@ -62,11 +62,11 @@ eNBs =
         pusch_nDMRS1                                       = 1;
         phich_duration                                     = "NORMAL";
         phich_resource                                     = "ONESIXTH";
-        srs_enable                                         = "DISABLE";
-        /*  srs_BandwidthConfig                                =;
-        srs_SubframeConfig                                 =;
-        srs_ackNackST                                      =;
-        srs_MaxUpPts                                       =;*/
+        srs_enable                                         = "ENABLE";
+        srs_BandwidthConfig                                = 2;
+        srs_SubframeConfig                                 = 7;
+        srs_ackNackST                                      = "DISABLE";
+        srs_MaxUpPts                                       = "DISABLE";
 
         pusch_p0_Nominal                                   = -90;
         pusch_alpha                                        = "AL1";
-- 
GitLab