Commit 50f7cd00 authored by Matthieu Kanj's avatar Matthieu Kanj

removing some included .h files from eNB_scheduler_primitives_NB_IoT.c

parent 5cd93065
...@@ -29,36 +29,38 @@ ...@@ -29,36 +29,38 @@
*/ */
#include "assertions.h" //#include "assertions.h"
//#include "PHY/defs.h" //#include "PHY/defs.h"
#include "PHY/extern.h" //#include "PHY/extern.h"
#include "SCHED/defs.h" //#include "SCHED/defs.h"
#include "SCHED/extern.h" //#include "SCHED/extern.h"
#include "LAYER2/MAC/defs.h" #include "LAYER2/MAC/defs.h"
#include "LAYER2/MAC/extern.h" //#include "LAYER2/MAC/extern.h"
#include "LAYER2/MAC/proto.h" //#include "LAYER2/MAC/proto.h"
#include "UTIL/LOG/log.h" #include "UTIL/LOG/log.h"
#include "UTIL/LOG/vcd_signal_dumper.h" //#include "UTIL/LOG/vcd_signal_dumper.h"
#include "UTIL/OPT/opt.h" //#include "UTIL/OPT/opt.h"
#include "OCG.h" //#include "OCG.h"
#include "OCG_extern.h" //#include "OCG_extern.h"
#include "RRC/LITE/extern.h" //#include "RRC/LITE/extern.h"
#include "RRC/L2_INTERFACE/openair_rrc_L2_interface.h" //#include "RRC/L2_INTERFACE/openair_rrc_L2_interface.h"
//NB-IoT //NB-IoT
#include "PHY/defs_NB_IoT.h" //#include "PHY/defs_NB_IoT.h"
#include "defs_NB_IoT.h" #include "LAYER2/MAC/defs_NB_IoT.h"
#include "proto_NB_IoT.h" #include "LAYER2/MAC/proto_NB_IoT.h"
#include "LAYER2/MAC/extern_NB_IoT.h"
//#include "LAYER2/MAC/pre_processor.c" //#include "LAYER2/MAC/pre_processor.c"
#include "pdcp.h" //#include "pdcp.h"
/*
#if defined(ENABLE_ITTI) #if defined(ENABLE_ITTI)
# include "intertask_interface.h" # include "intertask_interface.h"
#endif #endif
*/
#define ENABLE_MAC_PAYLOAD_DEBUG #define ENABLE_MAC_PAYLOAD_DEBUG
#define DEBUG_eNB_SCHEDULER 1 #define DEBUG_eNB_SCHEDULER 1
...@@ -69,7 +71,7 @@ int find_UE_id_NB_IoT(module_id_t mod_idP, rnti_t rntiP) ...@@ -69,7 +71,7 @@ int find_UE_id_NB_IoT(module_id_t mod_idP, rnti_t rntiP)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
{ {
int UE_id; int UE_id;
UE_list_t *UE_list = &eNB_mac_inst[mod_idP].UE_list; UE_list_NB_IoT_t *UE_list = &eNB_mac_inst_NB_IoT[mod_idP].UE_list;
for (UE_id = 0; UE_id < NUMBER_OF_UE_MAX_NB_IoT; UE_id++) { for (UE_id = 0; UE_id < NUMBER_OF_UE_MAX_NB_IoT; UE_id++) {
if (UE_list->active[UE_id] != TRUE) continue; if (UE_list->active[UE_id] != TRUE) continue;
...@@ -96,7 +98,7 @@ int rrc_mac_remove_ue_NB_IoT( ...@@ -96,7 +98,7 @@ int rrc_mac_remove_ue_NB_IoT(
{ {
int i; int i;
UE_list_NB_IoT_t *UE_list = &eNB_mac_inst_NB_IoT[mod_idP].UE_list; UE_list_NB_IoT_t *UE_list = &eNB_mac_inst_NB_IoT[mod_idP].UE_list;
int UE_id = find_UE_id(mod_idP,rntiP); //may should be changed int UE_id = find_UE_id_NB_IoT(mod_idP,rntiP); //may should be changed
int pCC_id; int pCC_id;
if (UE_id == -1) { if (UE_id == -1) {
...@@ -106,7 +108,7 @@ printf("MAC: cannot remove UE rnti %x\n", rntiP); ...@@ -106,7 +108,7 @@ printf("MAC: cannot remove UE rnti %x\n", rntiP);
return 0; return 0;
} }
pCC_id = UE_PCCID(mod_idP,UE_id); pCC_id = UE_PCCID_NB_IoT(mod_idP,UE_id);
printf("MAC: remove UE %d rnti %x\n", UE_id, rntiP); printf("MAC: remove UE %d rnti %x\n", UE_id, rntiP);
LOG_I(MAC,"Removing UE %d from Primary CC_id %d (rnti %x)\n",UE_id,pCC_id, rntiP); LOG_I(MAC,"Removing UE %d from Primary CC_id %d (rnti %x)\n",UE_id,pCC_id, rntiP);
......
...@@ -73,8 +73,8 @@ extern eNB_MAC_INST_NB_IoT *eNB_mac_inst_NB_IoT; ...@@ -73,8 +73,8 @@ extern eNB_MAC_INST_NB_IoT *eNB_mac_inst_NB_IoT;
// extern uint8_t Is_rrc_registered; // extern uint8_t Is_rrc_registered;
// extern eNB_ULSCH_INFO eNB_ulsch_info[NUMBER_OF_eNB_MAX][MAX_NUM_CCs][NUMBER_OF_UE_MAX]; // eNBxUE = 8x8 extern eNB_ULSCH_INFO eNB_ulsch_info[NUMBER_OF_eNB_MAX][MAX_NUM_CCs][NUMBER_OF_UE_MAX]; // eNBxUE = 8x8
// extern eNB_DLSCH_INFO eNB_dlsch_info[NUMBER_OF_eNB_MAX][MAX_NUM_CCs][NUMBER_OF_UE_MAX]; // eNBxUE = 8x8 extern eNB_DLSCH_INFO eNB_dlsch_info[NUMBER_OF_eNB_MAX][MAX_NUM_CCs][NUMBER_OF_UE_MAX]; // eNBxUE = 8x8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment