From 214805b481cff76a3b0e347c19c4ab9d371d6419 Mon Sep 17 00:00:00 2001
From: winckel <winckel@eurecom.fr>
Date: Tue, 10 Dec 2013 13:33:26 +0000
Subject: [PATCH] Fixed lte phy procedure not called every 6 first frames.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4656 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 targets/RTAI/USER/lte-enb.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/targets/RTAI/USER/lte-enb.c b/targets/RTAI/USER/lte-enb.c
index 28c3261be5..f05eddd624 100644
--- a/targets/RTAI/USER/lte-enb.c
+++ b/targets/RTAI/USER/lte-enb.c
@@ -287,6 +287,7 @@ static void *eNB_thread(void *arg)
   unsigned char last_slot, next_slot;
   int subframe = 0, hw_subframe;
   int frame=0;
+  int skip_first=1;
   unsigned int msg1;
   unsigned int aa,slot_offset, slot_offset_F;
   int diff;
@@ -392,9 +393,9 @@ static void *eNB_thread(void *arg)
 	last_slot+=20;
       next_slot = ((subframe<<1)+4)%LTE_SLOTS_PER_FRAME;
 
-      if ((frame>5)&&1)
+      if ((skip_first == 0) || (frame>5))
 	{
-
+          skip_first = 0;
 	  timing_info.time_last = rt_get_time_ns();
 
 	  //msg("subframe %d, last_slot %d,next_slot %d\n", subframe,last_slot,next_slot);
-- 
GitLab