From 238b22e5b52c45ca72b64d55af9a6789265ca82f Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Thu, 23 Mar 2017 09:23:07 +0100
Subject: [PATCH] fixes for IF5

This work was done by Bruno Mongazon.
---
 targets/RT/USER/lte-enb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/targets/RT/USER/lte-enb.c b/targets/RT/USER/lte-enb.c
index 21d34d40b1..b88b094f08 100644
--- a/targets/RT/USER/lte-enb.c
+++ b/targets/RT/USER/lte-enb.c
@@ -1724,7 +1724,7 @@ void init_eNB_proc(int inst) {
     proc->CC_id = CC_id;    
     proc->instance_cnt_synch        =  -1;
 
-    proc->first_rx=2;
+    proc->first_rx=1;
     proc->first_tx=1;
     proc->frame_offset = 0;
 
@@ -2060,6 +2060,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
           printf("Exiting, cannot initialize transport protocol\n");
           exit(-1);
         }
+	malloc_IF5_buffer(eNB);
 	break;
       case NGFI_RRU_IF4p5:
 	eNB->do_precoding         = 0;
@@ -2149,6 +2150,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
           printf("Exiting, cannot initialize transport protocol\n");
           exit(-1);
         }
+	malloc_IF5_buffer(eNB);
 	break;
       case NGFI_RCC_IF4p5:
 	eNB->do_precoding         = 0;
-- 
GitLab