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