Commit ff2aee63 authored by jperaldi's avatar jperaldi

Vijay's comment taken into account

parent e886ef17
...@@ -442,21 +442,23 @@ boolean_t pdcp_data_req( ...@@ -442,21 +442,23 @@ boolean_t pdcp_data_req(
((pdcp_p->integrityProtAlgorithm) != 0))) { ((pdcp_p->integrityProtAlgorithm) != 0))) {
uint8_t ciphyeringAlgorithm = pdcp_p->cipheringAlgorithm; uint8_t ciphyeringAlgorithm = pdcp_p->cipheringAlgorithm;
if (ctxt_pP->enb_flag == ENB_FLAG_YES) { if (ctxt_pP->enb_flag == ENB_FLAG_YES) {
if(srb_flagP && rb_idP==1){ if (RC.ss.mode >= SS_SOFTMODEM) {
LTE_DL_DCCH_Message_t *dl_dcch_msg = NULL; if(srb_flagP && rb_idP==1){
uper_decode(NULL, &asn_DEF_LTE_DL_DCCH_Message, LTE_DL_DCCH_Message_t *dl_dcch_msg = NULL;
uper_decode(NULL, &asn_DEF_LTE_DL_DCCH_Message,
(void **)&dl_dcch_msg, (void **)&dl_dcch_msg,
(const void *)sdu_buffer_pP, (const void *)sdu_buffer_pP,
sdu_buffer_sizeP, 0, 0); sdu_buffer_sizeP, 0, 0);
if(dl_dcch_msg){ if(dl_dcch_msg){
if(dl_dcch_msg->message.choice.c1.present == LTE_DL_DCCH_MessageType__c1_PR_securityModeCommand){ if(dl_dcch_msg->message.choice.c1.present == LTE_DL_DCCH_MessageType__c1_PR_securityModeCommand){
pdcp_p->cipheringAlgorithm = 0; pdcp_p->cipheringAlgorithm = 0;
pdcp_p->security_confirmed= 0; pdcp_p->security_confirmed= 0;
}
ASN_STRUCT_FREE(asn_DEF_LTE_DL_DCCH_Message,dl_dcch_msg);
} }
ASN_STRUCT_FREE(asn_DEF_LTE_DL_DCCH_Message,dl_dcch_msg);
} }
} }
start_meas(&eNB_pdcp_stats[ctxt_pP->module_id].apply_security); start_meas(&eNB_pdcp_stats[ctxt_pP->module_id].apply_security);
} else { } else {
start_meas(&UE_pdcp_stats[ctxt_pP->module_id].apply_security); start_meas(&UE_pdcp_stats[ctxt_pP->module_id].apply_security);
} }
......
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