From fe2b7d80d3f43845e3e1a0404f92a9d1a4a77c7e Mon Sep 17 00:00:00 2001 From: "Wilson W.K. Thong" <wilsonthong@astri.org> Date: Mon, 2 May 2016 23:13:30 +0800 Subject: [PATCH] removed 'wilson' from the codes --- openair2/COMMON/as_message.h | 2 -- openair2/COMMON/rrc_messages_def.h | 2 -- openair2/COMMON/rrc_messages_types.h | 4 ---- openair2/RRC/LITE/defs.h | 4 ---- openair2/RRC/LITE/rrc_UE.c | 4 ---- openair3/NAS/COMMON/API/NETWORK/l2_message.h | 2 -- openair3/NAS/UE/EMM/SecurityModeControl.c | 2 -- openair3/NAS/UE/nas_itti_messaging.c | 2 -- openair3/NAS/UE/nas_itti_messaging.h | 2 -- 9 files changed, 24 deletions(-) diff --git a/openair2/COMMON/as_message.h b/openair2/COMMON/as_message.h index 5f7f6f3fa9..976a398061 100644 --- a/openair2/COMMON/as_message.h +++ b/openair2/COMMON/as_message.h @@ -220,7 +220,6 @@ typedef struct broadcast_info_ind_s { #define AS_HSDUPA (1 << NET_ACCESS_HSDUPA) #define AS_EUTRAN (1 << NET_ACCESS_EUTRAN) -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete /* * NAS->AS -K_eNB refresh request * NAS request AS to refresh its KeNB key @@ -228,7 +227,6 @@ typedef struct broadcast_info_ind_s { typedef struct kenb_refresh_req_s { Byte_t kenb[32]; } kenb_refresh_req_t; -#endif /* * NAS->AS - Cell Information request diff --git a/openair2/COMMON/rrc_messages_def.h b/openair2/COMMON/rrc_messages_def.h index d521eab0ff..83cd8558d4 100644 --- a/openair2/COMMON/rrc_messages_def.h +++ b/openair2/COMMON/rrc_messages_def.h @@ -64,9 +64,7 @@ MESSAGE_DEF(RRC_STATE_IND, MESSAGE_PRIORITY_MED, RrcStateInd, MESSAGE_DEF(RRC_CONFIGURATION_REQ, MESSAGE_PRIORITY_MED, RrcConfigurationReq, rrc_configuration_req) // UE: NAS -> RRC messages -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete MESSAGE_DEF(NAS_KENB_REFRESH_REQ, MESSAGE_PRIORITY_MED, NasKenbRefreshReq, nas_kenb_refresh_req) -#endif MESSAGE_DEF(NAS_CELL_SELECTION_REQ, MESSAGE_PRIORITY_MED, NasCellSelectionReq, nas_cell_selection_req) MESSAGE_DEF(NAS_CONN_ESTABLI_REQ, MESSAGE_PRIORITY_MED, NasConnEstabliReq, nas_conn_establi_req) MESSAGE_DEF(NAS_UPLINK_DATA_REQ, MESSAGE_PRIORITY_MED, NasUlDataReq, nas_ul_data_req) diff --git a/openair2/COMMON/rrc_messages_types.h b/openair2/COMMON/rrc_messages_types.h index 908510d94b..1befc4a676 100644 --- a/openair2/COMMON/rrc_messages_types.h +++ b/openair2/COMMON/rrc_messages_types.h @@ -70,9 +70,7 @@ typedef UL_DCCH_Message_t RrcUlDcchMessage; #define RRC_CONFIGURATION_REQ(mSGpTR) (mSGpTR)->ittiMsg.rrc_configuration_req -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete #define NAS_KENB_REFRESH_REQ(mSGpTR) (mSGpTR)->ittiMsg.nas_kenb_refresh_req -#endif #define NAS_CELL_SELECTION_REQ(mSGpTR) (mSGpTR)->ittiMsg.nas_cell_selection_req #define NAS_CONN_ESTABLI_REQ(mSGpTR) (mSGpTR)->ittiMsg.nas_conn_establi_req #define NAS_UPLINK_DATA_REQ(mSGpTR) (mSGpTR)->ittiMsg.nas_ul_data_req @@ -186,9 +184,7 @@ typedef struct RrcConfigurationReq_s { } RrcConfigurationReq; // UE: NAS -> RRC messages -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete typedef kenb_refresh_req_t NasKenbRefreshReq; -#endif typedef cell_info_req_t NasCellSelectionReq; typedef nas_establish_req_t NasConnEstabliReq; typedef ul_info_transfer_req_t NasUlDataReq; diff --git a/openair2/RRC/LITE/defs.h b/openair2/RRC/LITE/defs.h index e34c532990..b15b70b815 100644 --- a/openair2/RRC/LITE/defs.h +++ b/openair2/RRC/LITE/defs.h @@ -182,11 +182,7 @@ typedef enum HO_STATE_e { #define PAYLOAD_SIZE_MAX 1024 #define RRC_BUF_SIZE 255 #define UNDEF_SECURITY_MODE 0xff -#if 1 // wilson 2016-05-01 let RRC security mode command to return OK instead of failed #define NO_SECURITY_MODE 0x20 -#else -#define NO_SECURITY_MODE 0x33 -#endif #define CBA_OFFSET 0xfff4 // #define NUM_MAX_CBA_GROUP 4 // in the platform_constants diff --git a/openair2/RRC/LITE/rrc_UE.c b/openair2/RRC/LITE/rrc_UE.c index 51c7aa076d..d666e54684 100644 --- a/openair2/RRC/LITE/rrc_UE.c +++ b/openair2/RRC/LITE/rrc_UE.c @@ -1403,7 +1403,6 @@ rrc_ue_process_securityModeCommand( } -#if 1 // wilson 2016-01-05 config PDCP security mode #if defined(ENABLE_SECURITY) uint8_t *kRRCenc = NULL; uint8_t *kUPenc = NULL; @@ -1458,7 +1457,6 @@ rrc_ue_process_securityModeCommand( } #endif //#if defined(ENABLE_SECURITY) -#endif //#if 1 //wilson if (securityModeCommand->criticalExtensions.present == SecurityModeCommand__criticalExtensions_PR_c1) { if (securityModeCommand->criticalExtensions.choice.c1.present == SecurityModeCommand__criticalExtensions__c1_PR_securityModeCommand_r8) { @@ -4131,7 +4129,6 @@ void *rrc_ue_task( void *args_p ) # if defined(ENABLE_USE_MME) -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete case NAS_KENB_REFRESH_REQ: memcpy((void*)UE_rrc_inst[ue_mod_id].kenb, (void*)NAS_KENB_REFRESH_REQ(msg_p).kenb, sizeof(UE_rrc_inst[ue_mod_id].kenb)); @@ -4155,7 +4152,6 @@ void *rrc_ue_task( void *args_p ) UE_rrc_inst[ue_mod_id].kenb[28], UE_rrc_inst[ue_mod_id].kenb[29], UE_rrc_inst[ue_mod_id].kenb[30], UE_rrc_inst[ue_mod_id].kenb[31]); break; -#endif /* NAS messages */ case NAS_CELL_SELECTION_REQ: diff --git a/openair3/NAS/COMMON/API/NETWORK/l2_message.h b/openair3/NAS/COMMON/API/NETWORK/l2_message.h index 603f7c0d7d..9c349b8d06 100644 --- a/openair3/NAS/COMMON/API/NETWORK/l2_message.h +++ b/openair3/NAS/COMMON/API/NETWORK/l2_message.h @@ -124,7 +124,6 @@ typedef struct kenb_refresh_req_s { Byte_t kenb[32]; } kenb_refresh_req_t; -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete /* * NAS->AS - Cell Information request * NAS request AS to search for a suitable cell belonging to the selected @@ -134,7 +133,6 @@ typedef struct { plmn_t plmnID; /* PLMN identifier */ Byte_t rat; /* Bitmap - set of radio access technologies */ } cell_info_req_t; -#endif /* * AS->NAS - Cell Information response diff --git a/openair3/NAS/UE/EMM/SecurityModeControl.c b/openair3/NAS/UE/EMM/SecurityModeControl.c index fa500ad316..b3f2b6f8a8 100755 --- a/openair3/NAS/UE/EMM/SecurityModeControl.c +++ b/openair3/NAS/UE/EMM/SecurityModeControl.c @@ -295,9 +295,7 @@ int emm_proc_security_mode_command(int native_ksi, int ksi, _emm_data.security->selected_algorithms.encryption = seea; _emm_data.security->selected_algorithms.integrity = seia; -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete nas_itti_kenb_refresh_req(_security_data.kenb.value); -#endif } /* * NAS security mode command not accepted by the UE diff --git a/openair3/NAS/UE/nas_itti_messaging.c b/openair3/NAS/UE/nas_itti_messaging.c index ff16c83ebf..a28c7394b2 100755 --- a/openair3/NAS/UE/nas_itti_messaging.c +++ b/openair3/NAS/UE/nas_itti_messaging.c @@ -187,7 +187,6 @@ int nas_itti_protected_msg(const char *buffer, const nas_message_t *msg, const i extern unsigned char NB_eNB_INST; -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete int nas_itti_kenb_refresh_req(const Byte_t kenb[32]) { MessageDef *message_p; @@ -220,7 +219,6 @@ int nas_itti_kenb_refresh_req(const Byte_t kenb[32]) return itti_send_msg_to_task(TASK_RRC_UE, NB_eNB_INST + 0 /* TODO to be virtualized */, message_p); } -#endif int nas_itti_cell_info_req(const plmn_t plmnID, const Byte_t rat) { diff --git a/openair3/NAS/UE/nas_itti_messaging.h b/openair3/NAS/UE/nas_itti_messaging.h index dc8d41a239..a9db232d70 100755 --- a/openair3/NAS/UE/nas_itti_messaging.h +++ b/openair3/NAS/UE/nas_itti_messaging.h @@ -55,9 +55,7 @@ int nas_itti_protected_msg( # if defined(NAS_BUILT_IN_UE) -#if 1 // wilson 2016-05-02 add new message to update kenb in RRC after NAS SMC complete int nas_itti_kenb_refresh_req(const Byte_t kenb[32]); -#endif int nas_itti_cell_info_req(const plmn_t plmnID, const Byte_t rat); -- GitLab