srsEPC: Deleted unsued bool in ue context removal interface

master
Pedro Alvarez 5 years ago
parent 163c078c42
commit 5746375b05

@ -45,7 +45,7 @@ public:
bool handle_initial_context_setup_response(const asn1::s1ap::init_context_setup_resp_s& in_ctxt_resp); 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, bool handle_ue_context_release_request(const asn1::s1ap::ue_context_release_request_s& ue_rel,
struct sctp_sndrcvinfo* enb_sri); 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); bool handle_ue_context_release_complete(const asn1::s1ap::ue_context_release_complete_s& rel_comp);
private: private:

@ -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"); m_s1ap_log->error("Error finding NAS context when sending UE Context Setup Release\n");
return false; 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; return true;
} }

@ -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 // Send release context command to eNB, so that it can release it's bearers
if (ecm_ctx->state == ECM_STATE_CONNECTED) { if (ecm_ctx->state == ECM_STATE_CONNECTED) {
send_ue_context_release_command(nas_ctx, true); send_ue_context_release_command(nas_ctx);
} else { } else {
// No ECM Context to release // 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); 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; return true;
} }
// On some circusntan bool s1ap_ctx_mngmt_proc::send_ue_context_release_command(nas* nas_ctx)
bool s1ap_ctx_mngmt_proc::send_ue_context_release_command(nas* nas_ctx, bool send_release_erabs)
{ {
emm_ctx_t* emm_ctx = &nas_ctx->m_emm_ctx; emm_ctx_t* emm_ctx = &nas_ctx->m_emm_ctx;
ecm_ctx_t* ecm_ctx = &nas_ctx->m_ecm_ctx; ecm_ctx_t* ecm_ctx = &nas_ctx->m_ecm_ctx;

Loading…
Cancel
Save