Commit 846e7b88 authored by Wang He's avatar Wang He

modify for --UE build error.

parent 5bd38be7
...@@ -52,8 +52,7 @@ ...@@ -52,8 +52,7 @@
//#define UE_IP_NB_INSTANCES_MAX NUMBER_OF_UE_MAX /*MAX_MOBILES_PER_ENB*/ #define UE_IP_NB_INSTANCES_MAX 256 /* NUMBER_OF_UE_MAX or MAX_MOBILES_PER_ENB*/
signed int UE_IP_NB_INSTANCES_MAX;
#endif #endif
...@@ -48,8 +48,7 @@ ...@@ -48,8 +48,7 @@
//struct net_device *ue_ip_dev[UE_IP_NB_INSTANCES_MAX]; struct net_device *ue_ip_dev[UE_IP_NB_INSTANCES_MAX];
struct net_device **ue_ip_dev;
#ifdef OAI_NW_DRIVER_USE_NETLINK #ifdef OAI_NW_DRIVER_USE_NETLINK
extern void ue_ip_netlink_release(void); extern void ue_ip_netlink_release(void);
...@@ -367,8 +366,6 @@ int init_module (void) { ...@@ -367,8 +366,6 @@ int init_module (void) {
// Initialize parameters shared with RRC // Initialize parameters shared with RRC
printk("[UE_IP_DRV][%s] Starting OAI IP driver", __FUNCTION__); printk("[UE_IP_DRV][%s] Starting OAI IP driver", __FUNCTION__);
UE_IP_NB_INSTANCES_MAX = NUMBER_OF_UE_MAX;
ue_ip_dev = (struct net_device **)malloc(sizeof(struct net_device*)*UE_IP_NB_INSTANCES_MAX);
for (inst=0; inst<UE_IP_NB_INSTANCES_MAX; inst++) { for (inst=0; inst<UE_IP_NB_INSTANCES_MAX; inst++) {
printk("[UE_IP_DRV][%s] begin init instance %d\n", __FUNCTION__,inst); printk("[UE_IP_DRV][%s] begin init instance %d\n", __FUNCTION__,inst);
sprintf(devicename,"oip%d",inst+1); sprintf(devicename,"oip%d",inst+1);
......
...@@ -109,7 +109,6 @@ typedef struct pdcp_data_ind_header_s { ...@@ -109,7 +109,6 @@ typedef struct pdcp_data_ind_header_s {
//extern struct net_device *ue_ip_dev[UE_IP_NB_INSTANCES_MAX]; extern struct net_device *ue_ip_dev[UE_IP_NB_INSTANCES_MAX];
extern struct net_device **ue_ip_dev;
#endif #endif
#ifndef OPENAIRINTERFACE5G_LIMITS_H_ #ifndef OPENAIRINTERFACE5G_LIMITS_H_
#define OPENAIRINTERFACE5G_LIMITS_H_ #define OPENAIRINTERFACE5G_LIMITS_H_
signed int NUMBER_OF_UE_MAX; extern unsigned int NUMBER_OF_UE_MAX;
signed int NUMBER_OF_UCI_VARS_MAX; extern unsigned int NUMBER_OF_UCI_VARS_MAX;
#if defined(CBMIMO1) || defined(EXMIMO) || defined(OAI_USRP) || defined(OAI_LMSSDR) #if defined(CBMIMO1) || defined(EXMIMO) || defined(OAI_USRP) || defined(OAI_LMSSDR)
# define NUMBER_OF_eNB_MAX 1 # define NUMBER_OF_eNB_MAX 1
......
...@@ -100,7 +100,8 @@ pthread_cond_t nfapi_sync_cond; ...@@ -100,7 +100,8 @@ pthread_cond_t nfapi_sync_cond;
pthread_mutex_t nfapi_sync_mutex; pthread_mutex_t nfapi_sync_mutex;
int nfapi_sync_var=-1; //!< protected by mutex \ref nfapi_sync_mutex int nfapi_sync_var=-1; //!< protected by mutex \ref nfapi_sync_mutex
uint32_t NUMBER_OF_UE_MAX = 16;
uint32_t NUMBER_OF_UCI_VARS_MAX = 16;
uint16_t sf_ahead=4; uint16_t sf_ahead=4;
pthread_cond_t sync_cond; pthread_cond_t sync_cond;
......
...@@ -105,7 +105,8 @@ int nfapi_sync_var=-1; //!< protected by mutex \ref nfapi_sync_mutex ...@@ -105,7 +105,8 @@ int nfapi_sync_var=-1; //!< protected by mutex \ref nfapi_sync_mutex
uint16_t sf_ahead=2; uint16_t sf_ahead=2;
int tddflag; int tddflag;
char *emul_iface; char *emul_iface;
uint32_t NUMBER_OF_UE_MAX = 16;
uint32_t NUMBER_OF_UCI_VARS_MAX = 16;
pthread_cond_t sync_cond; pthread_cond_t sync_cond;
pthread_mutex_t sync_mutex; pthread_mutex_t sync_mutex;
......
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