From 759bd813acab3c7845f64f1da3109c8333e845de Mon Sep 17 00:00:00 2001
From: Rajeev Gangula <gangula@eurecom.fr>
Date: Fri, 20 Jul 2018 10:04:00 +0200
Subject: [PATCH] Issue with bad EVM in SF 0 and %.

---
 openair1/SCHED/ru_procedures.c | 40 ++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 19 deletions(-)

diff --git a/openair1/SCHED/ru_procedures.c b/openair1/SCHED/ru_procedures.c
index 17b12e7622..6d0ceedf4f 100644
--- a/openair1/SCHED/ru_procedures.c
+++ b/openair1/SCHED/ru_procedures.c
@@ -343,25 +343,27 @@ void feptx_ofdm(RU_t *ru) {
        }
      }
       */
-     if ((fp->frame_type == TDD) && 
-         ((fp->tdd_config==0) ||
-	   (fp->tdd_config==1) ||
-	   (fp->tdd_config==2) ||
-	   (fp->tdd_config==6)) && 
-	     ((subframe==0) || (subframe==5))) {
-       // turn on tx switch N_TA_offset before
-       //LOG_D(HW,"subframe %d, time to switch to tx (N_TA_offset %d, slot_offset %d) \n",subframe,ru->N_TA_offset,slot_offset);
-       for (i=0; i<ru->N_TA_offset; i++) {
-         tx_offset = (int)slot_offset+i-ru->N_TA_offset/2;
-         if (tx_offset<0)
-           tx_offset += LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*fp->samples_per_tti;
-	 
-         if (tx_offset>=(LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*fp->samples_per_tti))
-           tx_offset -= LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*fp->samples_per_tti;
-	 
-         ru->common.txdata[aa][tx_offset] = 0x00000000;
-       }
-     }
+
+//     if ((fp->frame_type == TDD) &&
+//         ((fp->tdd_config==0) ||
+//	   (fp->tdd_config==1) ||
+//	   (fp->tdd_config==2) ||
+//	   (fp->tdd_config==6)) &&
+//	     ((subframe==0) || (subframe==5))) {
+//       // turn on tx switch N_TA_offset before
+//       //LOG_D(HW,"subframe %d, time to switch to tx (N_TA_offset %d, slot_offset %d) \n",subframe,ru->N_TA_offset,slot_offset);
+//       for (i=0; i<ru->N_TA_offset; i++) {
+//         tx_offset = (int)slot_offset+i-ru->N_TA_offset/2;
+//         if (tx_offset<0)
+//           tx_offset += LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*fp->samples_per_tti;
+//
+//         if (tx_offset>=(LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*fp->samples_per_tti))
+//           tx_offset -= LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*fp->samples_per_tti;
+//
+//         ru->common.txdata[aa][tx_offset] = 0x00000000;
+//       }
+//     }
+
      stop_meas(&ru->ofdm_mod_stats);
      LOG_D(PHY,"feptx_ofdm (TXPATH): frame %d, subframe %d: txp (time %p) %d dB, txp (freq) %d dB\n",
 	   ru->proc.frame_tx,subframe,txdata,dB_fixed(signal_energy((int32_t*)txdata,fp->samples_per_tti)),
-- 
2.26.2