From d7718fb2989beebcbd7bd2e73f54e3c9ca8d3696 Mon Sep 17 00:00:00 2001
From: Eurecom <eurecom@smtp.eurecom.fr>
Date: Wed, 20 Dec 2017 15:41:26 +0100
Subject: [PATCH] signal output when sync

---
 targets/RT/USER/lte-ru.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/targets/RT/USER/lte-ru.c b/targets/RT/USER/lte-ru.c
index 67682a36430..bd1e4b07348 100644
--- a/targets/RT/USER/lte-ru.c
+++ b/targets/RT/USER/lte-ru.c
@@ -1210,15 +1210,17 @@ void wakeup_eNBs(RU_t *ru) {
     
     pthread_mutex_lock(&proc->mutex_RU);
     for (i=0;i<eNB->num_RU;i++) {
-      if (ru->state == RU_SYNC){
-	proc->RU_mask |= (1<<i);
-	break;
-      }
+     // if (ru->state == RU_SYNC){
+	//proc->RU_mask |= (1<<i);
+	//break;
+      //}
       if (ru == eNB->RU_list[i]) {
         //AssertFatal(((proc->RU_mask&(1<<i)) == 0) ,
         if ((proc->RU_mask&(1<<i)) > 0)            
 		LOG_E(PHY, "eNB %d frame %d, subframe %d : previous information from RU %d (num_RU %d,mask %x) has not been served yet!\n",eNB->Mod_id,ru->proc.frame_rx,ru->proc.subframe_rx,ru->idx,eNB->num_RU,proc->RU_mask);
         proc->RU_mask |= (1<<i);
+      }else if (eNB->RU_list[i]->state == RU_SYNC){
+      	proc->RU_mask |= (1<<i);
       }
     }
     if (proc->RU_mask != (1<<eNB->num_RU)-1) {  // not all RUs have provided their information so return
@@ -1729,7 +1731,7 @@ static void* ru_thread( void* param ) {
 	    pthread_mutex_unlock(&proc->mutex_asynch_rxtx);
 	    pthread_cond_signal(&proc->cond_asynch_rxtx);
 	  }
-	  else LOG_I(PHY,"RU %d no asynch_south interface\n",ru->idx);
+	  else LOG_D(PHY,"RU %d no asynch_south interface\n",ru->idx);
 
 	  // if this is a slave RRU, try to synchronize on the DL frequency
 	  if ((ru->is_slave == 1) && (ru->if_south == LOCAL_RF)) do_ru_synch(ru);
-- 
GitLab