From 1c086a182331f11314cc10f65bc0cb7526dd6499 Mon Sep 17 00:00:00 2001 From: wetterwa <wetterwa@eurecom.fr> Date: Thu, 26 Sep 2013 09:55:17 +0000 Subject: [PATCH] Update to support 2 mobiles. Requires an update in RLC and PDCP. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4167 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/RRC/CELLULAR/rrc_constant.h | 9 ++++++++- openair2/RRC/CELLULAR/rrc_rg_L2_intf_variables.h | 6 +++--- openair2/RRC/CELLULAR/rrc_rg_entity.h | 5 +++-- openair2/RRC/CELLULAR/rrc_rg_vars.h | 4 +--- openair2/RRC/CELLULAR/rrc_ue_vars.h | 1 + 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/openair2/RRC/CELLULAR/rrc_constant.h b/openair2/RRC/CELLULAR/rrc_constant.h index e7b2c822a3..ac6e9b5a20 100755 --- a/openair2/RRC/CELLULAR/rrc_constant.h +++ b/openair2/RRC/CELLULAR/rrc_constant.h @@ -13,7 +13,7 @@ /* ***Debug flags*** */ #define DEBUG_RRC_STATE -#define DEBUG_RRC_DETAILS +//#define DEBUG_RRC_DETAILS //#define DEBUG_RRC_DETAILS_2 #define RRC_DEBUG_DUMMIES @@ -38,6 +38,10 @@ // #define DEBUG_RRC_FORWARD_MT_MEASURE_REPORT // #endif +/* **** */ +/* ** FLAG DEFINED FOR HANDLING of 2UEs in EMULATION MODE ** */ +/* **** */ +#define RRC_OAI_EMU /* **** */ /* ** FLAG DEFINED FOR HANDLING of ENb Measures ** */ /* **** */ @@ -197,6 +201,9 @@ #define RRC_SRB_OFFSET 0 #endif +//MW 19/9/2013 - Hard coded value of DRB_ID for rrc_ue_outputs.c +#define RRC_OAI_DRB0_ID 3 + #define RRC_LTE_DCCH_ID 2+RRC_SRB_OFFSET // for openair scheduling #define RRC_LCHAN_SRB0_ID 4+RRC_SRB_OFFSET // traffic on CCCH #define RRC_LCHAN_SRB1_ID 5+RRC_SRB_OFFSET // any traffic on DCCH using RLC-UM diff --git a/openair2/RRC/CELLULAR/rrc_rg_L2_intf_variables.h b/openair2/RRC/CELLULAR/rrc_rg_L2_intf_variables.h index 1a0258a978..0276e06a61 100644 --- a/openair2/RRC/CELLULAR/rrc_rg_L2_intf_variables.h +++ b/openair2/RRC/CELLULAR/rrc_rg_L2_intf_variables.h @@ -45,9 +45,9 @@ struct rrc_srb_drb_asn1{ struct SRB_ToAddMod *SRB2_config; struct DRB_ToAddMod *DRB1_config; struct DRB_ToAddMod *DRB2_config;*/ - int SRB2_active; - int DRB1_active; - int DRB2_active; + int SRB2_active[NUMBER_OF_UE_MAX]; + int DRB1_active[NUMBER_OF_UE_MAX]; + int DRB2_active[NUMBER_OF_UE_MAX]; SRB_ToAddModList_t *SRB_configList[NUMBER_OF_UE_MAX]; DRB_ToAddModList_t *DRB_configList[NUMBER_OF_UE_MAX]; diff --git a/openair2/RRC/CELLULAR/rrc_rg_entity.h b/openair2/RRC/CELLULAR/rrc_rg_entity.h index bf6987ef1d..c409a6473b 100755 --- a/openair2/RRC/CELLULAR/rrc_rg_entity.h +++ b/openair2/RRC/CELLULAR/rrc_rg_entity.h @@ -29,8 +29,9 @@ ******************************************************************************/ struct rrc_rg_entity { //----------------------------------------------------------------------------- - u8 protocol_state[maxUsers]; + int current_SFN; + u8 protocol_state[maxUsers]; // Table to be changed into a list?? struct Mobile_Node Mobile_List[maxUsers]; u8 establishment_cause; // For NAS - A Revoir @@ -67,6 +68,7 @@ struct rrc_rg_entity { // Control block for srb-drb asn1-compliant struct rrc_srb_drb_asn1 rg_rb_asn1; int mod_id; + int ccch_current_UE_Id; //incremented each time a new UE sends ConnReq through CCH /* ** OAI compatible part - end **/ // Control block for Broadcast @@ -85,7 +87,6 @@ struct rrc_rg_entity { // RG measures struct rrc_rg_meas_blocks rg_meas_blocks; - int current_SFN; // Control block for MBMS struct rrc_rg_mbms_variables mbms; diff --git a/openair2/RRC/CELLULAR/rrc_rg_vars.h b/openair2/RRC/CELLULAR/rrc_rg_vars.h index 9ef56078da..80883e68c5 100644 --- a/openair2/RRC/CELLULAR/rrc_rg_vars.h +++ b/openair2/RRC/CELLULAR/rrc_rg_vars.h @@ -28,8 +28,6 @@ RRM_VARS *rrm_config; rrc_rg_mbms_variables * volatile p_rg_mbms; /** pointer reference to protocol_bs->rrc.mbms */ - - int rrc_release_all_ressources; - +int rrc_ethernet_id; #endif diff --git a/openair2/RRC/CELLULAR/rrc_ue_vars.h b/openair2/RRC/CELLULAR/rrc_ue_vars.h index 5076f4a692..743b7068ac 100644 --- a/openair2/RRC/CELLULAR/rrc_ue_vars.h +++ b/openair2/RRC/CELLULAR/rrc_ue_vars.h @@ -31,5 +31,6 @@ RRM_VARS *rrm_config; int rrc_release_all_ressources; int rrc_ue_mobileId; +int rrc_ethernet_id; #endif -- GitLab