Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
52eafd19
Commit
52eafd19
authored
Nov 07, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup
parent
badd6274
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+3
-7
No files found.
src/amf-app/amf_n1.cpp
View file @
52eafd19
...
@@ -1133,7 +1133,6 @@ void amf_n1::registration_request_handle(
...
@@ -1133,7 +1133,6 @@ void amf_n1::registration_request_handle(
}
break
;
}
break
;
case
MOBILITY_REGISTRATION_UPDATING
:
{
case
MOBILITY_REGISTRATION_UPDATING
:
{
// TODO: check if the List Of PDU Sessions To Be Activated is available
Logger
::
amf_n1
().
debug
(
"Handling Mobility Registration Update..."
);
Logger
::
amf_n1
().
debug
(
"Handling Mobility Registration Update..."
);
run_mobility_registration_update_procedure
(
run_mobility_registration_update_procedure
(
nc
,
regReq
->
getUplinkDataStatus
(),
regReq
->
getPduSessionStatus
());
nc
,
regReq
->
getUplinkDataStatus
(),
regReq
->
getPduSessionStatus
());
...
@@ -2772,7 +2771,6 @@ void amf_n1::run_mobility_registration_update_procedure(
...
@@ -2772,7 +2771,6 @@ void amf_n1::run_mobility_registration_update_procedure(
std
::
shared_ptr
<
pdu_session_context
>
psc
=
{};
std
::
shared_ptr
<
pdu_session_context
>
psc
=
{};
std
::
shared_ptr
<
ue_context
>
uc
=
{};
std
::
shared_ptr
<
ue_context
>
uc
=
{};
if
(
!
find_ue_context
(
nc
,
uc
))
{
if
(
!
find_ue_context
(
nc
,
uc
))
{
Logger
::
amf_n1
().
warn
(
"Cannot find the UE context"
);
Logger
::
amf_n1
().
warn
(
"Cannot find the UE context"
);
return
;
return
;
...
@@ -2856,9 +2854,8 @@ void amf_n1::run_periodic_registration_update_procedure(
...
@@ -2856,9 +2854,8 @@ void amf_n1::run_periodic_registration_update_procedure(
auto
regAccept
=
std
::
make_unique
<
RegistrationAccept
>
();
auto
regAccept
=
std
::
make_unique
<
RegistrationAccept
>
();
initialize_registration_accept
(
regAccept
);
initialize_registration_accept
(
regAccept
);
//
amf_ue_
context
//
Get UE
context
std
::
shared_ptr
<
ue_context
>
uc
=
{};
std
::
shared_ptr
<
ue_context
>
uc
=
{};
if
(
!
find_ue_context
(
nc
,
uc
))
{
if
(
!
find_ue_context
(
nc
,
uc
))
{
Logger
::
amf_n1
().
warn
(
"Cannot find the UE context"
);
Logger
::
amf_n1
().
warn
(
"Cannot find the UE context"
);
return
;
return
;
...
@@ -2927,8 +2924,8 @@ void amf_n1::run_periodic_registration_update_procedure(
...
@@ -2927,8 +2924,8 @@ void amf_n1::run_periodic_registration_update_procedure(
auto
regAccept
=
std
::
make_unique
<
RegistrationAccept
>
();
auto
regAccept
=
std
::
make_unique
<
RegistrationAccept
>
();
initialize_registration_accept
(
regAccept
);
initialize_registration_accept
(
regAccept
);
// Get UE context
std
::
shared_ptr
<
ue_context
>
uc
=
{};
std
::
shared_ptr
<
ue_context
>
uc
=
{};
if
(
!
find_ue_context
(
nc
,
uc
))
{
if
(
!
find_ue_context
(
nc
,
uc
))
{
Logger
::
amf_n1
().
warn
(
"Cannot find the UE context"
);
Logger
::
amf_n1
().
warn
(
"Cannot find the UE context"
);
return
;
return
;
...
@@ -2991,13 +2988,12 @@ void amf_n1::set_5gmm_state(
...
@@ -2991,13 +2988,12 @@ void amf_n1::set_5gmm_state(
"Set 5GMM state to %s"
,
_5gmm_state_e2str
[
state
].
c_str
());
"Set 5GMM state to %s"
,
_5gmm_state_e2str
[
state
].
c_str
());
std
::
unique_lock
lock
(
m_nas_context
);
std
::
unique_lock
lock
(
m_nas_context
);
nc
.
get
()
->
_5gmm_state
=
state
;
nc
.
get
()
->
_5gmm_state
=
state
;
// TODO:
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
amf_n1
::
get_5gmm_state
(
void
amf_n1
::
get_5gmm_state
(
std
::
shared_ptr
<
nas_context
>
nc
,
_5gmm_state_t
&
state
)
{
std
::
shared_ptr
<
nas_context
>
nc
,
_5gmm_state_t
&
state
)
{
// TODO:
std
::
shared_lock
lock
(
m_nas_context
);
state
=
nc
.
get
()
->
_5gmm_state
;
state
=
nc
.
get
()
->
_5gmm_state
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment