Commit 99597dd0 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Code cleanup for gNB Context

parent 260bff8c
...@@ -2636,6 +2636,7 @@ void amf_n1::security_mode_complete_handle( ...@@ -2636,6 +2636,7 @@ void amf_n1::security_mode_complete_handle(
Logger::amf_n1().error( Logger::amf_n1().error(
"No existed gNB context with assoc_id (%d)", unc->gnb_assoc_id); "No existed gNB context with assoc_id (%d)", unc->gnb_assoc_id);
} else { } else {
// TODO: get_user_location(uc);
oai::amf::model::UserLocation user_location = {}; oai::amf::model::UserLocation user_location = {};
oai::amf::model::NrLocation nr_location = {}; oai::amf::model::NrLocation nr_location = {};
......
...@@ -99,17 +99,13 @@ void ngap_app::handle_sctp_new_association( ...@@ -99,17 +99,13 @@ void ngap_app::handle_sctp_new_association(
"Received a new association request on an association that is being " "Received a new association request on an association that is being "
"%s, ignoring", "%s, ignoring",
ng_gnb_state_str[gc->ng_state]); ng_gnb_state_str[gc->ng_state]);
return;
} else { } else {
Logger::ngap().debug("Update gNB context with assoc id (%d)", assoc_id); Logger::ngap().debug("Update gNB context with assoc id (%d)", assoc_id);
} }
} }
if (gc == nullptr) { // Update gNB Context
Logger::ngap().error(
"Failed to create gNB context for assoc_id (%d)", assoc_id);
return;
};
gc->sctp_assoc_id = assoc_id; gc->sctp_assoc_id = assoc_id;
gc->instreams = instreams; gc->instreams = instreams;
gc->outstreams = outstreams; gc->outstreams = outstreams;
......
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