Commit c44152e6 authored by Raymond Knopp's avatar Raymond Knopp

more warnings. Note: UE emulator stub is broken after merge.

parent 6c6915b8
...@@ -67,7 +67,7 @@ extern int NB_eNB_INST; ...@@ -67,7 +67,7 @@ extern int NB_eNB_INST;
extern int NB_UE_INST; extern int NB_UE_INST;
extern int NB_THREAD_INST; extern int NB_THREAD_INST;
extern int NB_RN_INST; extern int NB_RN_INST;
extern unsigned short NODE_ID[1]; extern int NODE_ID[1];
extern int cqi_to_mcs[16]; extern int cqi_to_mcs[16];
......
...@@ -98,7 +98,7 @@ typedef struct xer_sprint_string_s { ...@@ -98,7 +98,7 @@ typedef struct xer_sprint_string_s {
size_t string_index; size_t string_index;
} xer_sprint_string_t; } xer_sprint_string_t;
extern unsigned char NB_eNB_INST; extern int NB_eNB_INST;
extern RAN_CONTEXT_t RC; extern RAN_CONTEXT_t RC;
......
...@@ -44,16 +44,9 @@ extern LTE_LogicalChannelConfig_t SRB1_logicalChannelConfig_defaultValue; ...@@ -44,16 +44,9 @@ extern LTE_LogicalChannelConfig_t SRB1_logicalChannelConfig_defaultValue;
extern LTE_LogicalChannelConfig_t SRB2_logicalChannelConfig_defaultValue; extern LTE_LogicalChannelConfig_t SRB2_logicalChannelConfig_defaultValue;
#ifndef PHY_EMUL extern int NB_eNB_INST;
#ifndef PHYSIM extern int NB_UE_INST;
//#define NB_INST 1 extern int NODE_ID[1];
#else
extern unsigned char NB_INST;
#endif
extern unsigned char NB_eNB_INST;
extern uint16_t NB_UE_INST;
extern unsigned short NODE_ID[1];
#endif
//CONSTANTS //CONSTANTS
......
...@@ -1240,10 +1240,11 @@ static void *UE_phy_stub_single_thread_rxn_txnp4(void *arg) { ...@@ -1240,10 +1240,11 @@ static void *UE_phy_stub_single_thread_rxn_txnp4(void *arg) {
uint16_t ue_index = 0; uint16_t ue_index = 0;
uint16_t ue_num = NB_UE_INST/NB_THREAD_INST+((NB_UE_INST%NB_THREAD_INST > ue_thread_id) ? 1 :0); uint16_t ue_num = NB_UE_INST/NB_THREAD_INST+((NB_UE_INST%NB_THREAD_INST > ue_thread_id) ? 1 :0);
module_id_t ue_Mod_id; module_id_t ue_Mod_id;
PHY_VARS_UE *UE; //= rtd->UE; PHY_VARS_UE *UE = rtd->UE;
int ret; int ret;
uint8_t end_flag; uint8_t end_flag;
proc = &PHY_vars_UE_g[0][0]->proc.proc_rxtx[0]; AssertFatal(UE!=NULL,"UE context is null\n");
proc = &UE->proc.proc_rxtx[0];
phy_stub_ticking->num_single_thread[ue_thread_id] = -1; phy_stub_ticking->num_single_thread[ue_thread_id] = -1;
if(ue_thread_id == 0){ if(ue_thread_id == 0){
......
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