From 5746375b0502a7c9aa2db6ad2f779217dae9c49e Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 25 Jun 2020 14:51:16 +0100 Subject: [PATCH] srsEPC: Deleted unsued bool in ue context removal interface --- srsepc/hdr/mme/s1ap_ctx_mngmt_proc.h | 2 +- srsepc/src/mme/s1ap.cc | 2 +- srsepc/src/mme/s1ap_ctx_mngmt_proc.cc | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/srsepc/hdr/mme/s1ap_ctx_mngmt_proc.h b/srsepc/hdr/mme/s1ap_ctx_mngmt_proc.h index 944a6920c..fa9f44e55 100644 --- a/srsepc/hdr/mme/s1ap_ctx_mngmt_proc.h +++ b/srsepc/hdr/mme/s1ap_ctx_mngmt_proc.h @@ -45,7 +45,7 @@ public: bool handle_initial_context_setup_response(const asn1::s1ap::init_context_setup_resp_s& in_ctxt_resp); bool handle_ue_context_release_request(const asn1::s1ap::ue_context_release_request_s& ue_rel, struct sctp_sndrcvinfo* enb_sri); - bool send_ue_context_release_command(nas* nas_ctx, bool send_release_bearers); + bool send_ue_context_release_command(nas* nas_ctx); bool handle_ue_context_release_complete(const asn1::s1ap::ue_context_release_complete_s& rel_comp); private: diff --git a/srsepc/src/mme/s1ap.cc b/srsepc/src/mme/s1ap.cc index 353114318..669fc4c42 100644 --- a/srsepc/src/mme/s1ap.cc +++ b/srsepc/src/mme/s1ap.cc @@ -625,7 +625,7 @@ bool s1ap::send_ue_context_release_command(uint32_t mme_ue_s1ap_id) m_s1ap_log->error("Error finding NAS context when sending UE Context Setup Release\n"); return false; } - m_s1ap_ctx_mngmt_proc->send_ue_context_release_command(nas_ctx, false); + m_s1ap_ctx_mngmt_proc->send_ue_context_release_command(nas_ctx); return true; } diff --git a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc index e58f0c926..e218f6904 100644 --- a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc +++ b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc @@ -261,7 +261,7 @@ bool s1ap_ctx_mngmt_proc::handle_ue_context_release_request(const asn1::s1ap::ue // Send release context command to eNB, so that it can release it's bearers if (ecm_ctx->state == ECM_STATE_CONNECTED) { - send_ue_context_release_command(nas_ctx, true); + send_ue_context_release_command(nas_ctx); } else { // No ECM Context to release m_s1ap_log->info("UE is not ECM connected. No need to release S1-U. MME UE S1AP Id %d\n", mme_ue_s1ap_id); @@ -275,8 +275,7 @@ bool s1ap_ctx_mngmt_proc::handle_ue_context_release_request(const asn1::s1ap::ue return true; } -// On some circusntan -bool s1ap_ctx_mngmt_proc::send_ue_context_release_command(nas* nas_ctx, bool send_release_erabs) +bool s1ap_ctx_mngmt_proc::send_ue_context_release_command(nas* nas_ctx) { emm_ctx_t* emm_ctx = &nas_ctx->m_emm_ctx; ecm_ctx_t* ecm_ctx = &nas_ctx->m_ecm_ctx;