From b49fd36c151428acfb91949cdc0f697f1abd61bc Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Wed, 11 Oct 2017 12:18:31 +0200
Subject: [PATCH] bugfix: fix calls to CCE_allocation_infeasible (bad
 format_flag)

---
 openair2/LAYER2/MAC/eNB_scheduler_dlsch.c | 2 +-
 openair2/LAYER2/MAC/eNB_scheduler_ulsch.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c b/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
index 580c02525d..c38adca4fb 100644
--- a/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+++ b/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
@@ -749,7 +749,7 @@ schedule_ue_spec(
 		    UE_list->UE_template[CC_id][UE_id].oldmcs1[harq_pid]);
 	      
 	    }
-	    if (!CCE_allocation_infeasible(module_idP,CC_id,0,subframeP,
+	    if (!CCE_allocation_infeasible(module_idP,CC_id,1,subframeP,
 					   dl_config_pdu->dci_dl_pdu.dci_dl_pdu_rel8.aggregation_level,
 					   rnti)) {
 	      dl_req->number_dci++;
diff --git a/openair2/LAYER2/MAC/eNB_scheduler_ulsch.c b/openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
index d1a40612be..3124e45573 100644
--- a/openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+++ b/openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
@@ -952,7 +952,7 @@ abort();
 				  format0);
       */
 
-      if (CCE_allocation_infeasible(module_idP,CC_id,2,subframeP,aggregation,rnti)) {
+      if (CCE_allocation_infeasible(module_idP,CC_id,1,subframeP,aggregation,rnti)) {
         LOG_W(MAC,"[eNB %d] frame %d subframe %d, UE %d/%x CC %d: not enough nCCE\n", module_idP,frameP,subframeP,UE_id,rnti,CC_id);
         continue; // break;
       } 
-- 
GitLab