Remove ifndef PHYSIM conditions.
This commit is contained in:
@@ -1298,7 +1298,6 @@ rrc_gNB_process_RRCReconfigurationComplete(
|
|||||||
|
|
||||||
ue_context_pP->ue_context.ue_reestablishment_timer = 0;
|
ue_context_pP->ue_context.ue_reestablishment_timer = 0;
|
||||||
|
|
||||||
#ifndef PHYSIM
|
|
||||||
/* Derive the keys from kgnb */
|
/* Derive the keys from kgnb */
|
||||||
if (DRB_configList != NULL) {
|
if (DRB_configList != NULL) {
|
||||||
nr_derive_key_up_enc(ue_context_pP->ue_context.ciphering_algorithm,
|
nr_derive_key_up_enc(ue_context_pP->ue_context.ciphering_algorithm,
|
||||||
@@ -1315,7 +1314,6 @@ rrc_gNB_process_RRCReconfigurationComplete(
|
|||||||
nr_derive_key_rrc_int(ue_context_pP->ue_context.integrity_algorithm,
|
nr_derive_key_rrc_int(ue_context_pP->ue_context.integrity_algorithm,
|
||||||
ue_context_pP->ue_context.kgnb,
|
ue_context_pP->ue_context.kgnb,
|
||||||
&kRRCint);
|
&kRRCint);
|
||||||
#endif
|
|
||||||
/* Refresh SRBs/DRBs */
|
/* Refresh SRBs/DRBs */
|
||||||
MSC_LOG_TX_MESSAGE(MSC_RRC_GNB, MSC_PDCP_ENB, NULL, 0, MSC_AS_TIME_FMT" CONFIG_REQ UE %x DRB (security unchanged)",
|
MSC_LOG_TX_MESSAGE(MSC_RRC_GNB, MSC_PDCP_ENB, NULL, 0, MSC_AS_TIME_FMT" CONFIG_REQ UE %x DRB (security unchanged)",
|
||||||
MSC_AS_TIME_ARGS(ctxt_pP),
|
MSC_AS_TIME_ARGS(ctxt_pP),
|
||||||
|
|||||||
@@ -308,7 +308,6 @@ nr_rrc_pdcp_config_security(
|
|||||||
uint8_t *kUPenc = NULL;
|
uint8_t *kUPenc = NULL;
|
||||||
static int print_keys= 1;
|
static int print_keys= 1;
|
||||||
|
|
||||||
#ifndef PHYSIM
|
|
||||||
/* Derive the keys from kgnb */
|
/* Derive the keys from kgnb */
|
||||||
if (SRB_configList != NULL) {
|
if (SRB_configList != NULL) {
|
||||||
nr_derive_key_up_enc(ue_context_pP->ue_context.ciphering_algorithm,
|
nr_derive_key_up_enc(ue_context_pP->ue_context.ciphering_algorithm,
|
||||||
@@ -322,7 +321,6 @@ nr_rrc_pdcp_config_security(
|
|||||||
nr_derive_key_rrc_int(ue_context_pP->ue_context.integrity_algorithm,
|
nr_derive_key_rrc_int(ue_context_pP->ue_context.integrity_algorithm,
|
||||||
ue_context_pP->ue_context.kgnb,
|
ue_context_pP->ue_context.kgnb,
|
||||||
&kRRCint);
|
&kRRCint);
|
||||||
#endif
|
|
||||||
if (!IS_SOFTMODEM_IQPLAYER) {
|
if (!IS_SOFTMODEM_IQPLAYER) {
|
||||||
SET_LOG_DUMP(DEBUG_SECURITY) ;
|
SET_LOG_DUMP(DEBUG_SECURITY) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1653,7 +1653,6 @@ int8_t nr_rrc_ue_decode_ccch( const protocol_ctxt_t *const ctxt_pP, const NR_SRB
|
|||||||
uint8_t *kRRCenc = NULL;
|
uint8_t *kRRCenc = NULL;
|
||||||
uint8_t *kUPenc = NULL;
|
uint8_t *kUPenc = NULL;
|
||||||
uint8_t *kRRCint = NULL;
|
uint8_t *kRRCint = NULL;
|
||||||
#ifndef PHYSIM
|
|
||||||
nr_derive_key_up_enc(NR_UE_rrc_inst[ctxt_pP->module_id].cipheringAlgorithm,
|
nr_derive_key_up_enc(NR_UE_rrc_inst[ctxt_pP->module_id].cipheringAlgorithm,
|
||||||
NR_UE_rrc_inst[ctxt_pP->module_id].kgnb,
|
NR_UE_rrc_inst[ctxt_pP->module_id].kgnb,
|
||||||
&kUPenc);
|
&kUPenc);
|
||||||
@@ -1663,7 +1662,6 @@ int8_t nr_rrc_ue_decode_ccch( const protocol_ctxt_t *const ctxt_pP, const NR_SRB
|
|||||||
nr_derive_key_rrc_int(NR_UE_rrc_inst[ctxt_pP->module_id].integrityProtAlgorithm,
|
nr_derive_key_rrc_int(NR_UE_rrc_inst[ctxt_pP->module_id].integrityProtAlgorithm,
|
||||||
NR_UE_rrc_inst[ctxt_pP->module_id].kgnb,
|
NR_UE_rrc_inst[ctxt_pP->module_id].kgnb,
|
||||||
&kRRCint);
|
&kRRCint);
|
||||||
#endif
|
|
||||||
LOG_I(NR_RRC, "driving kRRCenc, kRRCint and kUPenc from KgNB="
|
LOG_I(NR_RRC, "driving kRRCenc, kRRCint and kUPenc from KgNB="
|
||||||
"%02x%02x%02x%02x"
|
"%02x%02x%02x%02x"
|
||||||
"%02x%02x%02x%02x"
|
"%02x%02x%02x%02x"
|
||||||
|
|||||||
Reference in New Issue
Block a user