Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Libraries
UERANSIM
Commits
4f597b8f
Commit
4f597b8f
authored
Feb 27, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE registration abnormal cases improvement
parent
b15d899f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/ue/mm/base.cpp
src/ue/mm/base.cpp
+4
-1
src/ue/mm/register.cpp
src/ue/mm/register.cpp
+2
-2
No files found.
src/ue/mm/base.cpp
View file @
4f597b8f
...
...
@@ -251,10 +251,13 @@ void NasMm::setN1Capability(bool enabled)
bool
NasMm
::
hasEmergency
()
{
// Indicates emergency services are required (even if registered for normal initial registration)
// This
usually happens if it 'has' or 'need' some emergency PDU Session
.
// This
happens if it 'has' or 'need' some emergency PDU Session, as well
.
if
(
m_rmState
==
ERmState
::
RM_REGISTERED
&&
m_registeredForEmergency
)
return
true
;
if
(
m_mmState
==
EMmState
::
MM_REGISTERED_INITIATED
&&
m_lastRegistrationRequest
&&
m_lastRegistrationRequest
->
registrationType
.
registrationType
==
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
return
true
;
// TODO: Other case which is an emergency PDU session is established, or need to be established (and wanted to be
// established soon)
...
...
src/ue/mm/register.cpp
View file @
4f597b8f
...
...
@@ -26,7 +26,7 @@ void NasMm::sendRegistration(nas::ERegistrationType regType, bool dueToDereg)
// 5.5.1.2.7 Abnormal cases in the UE
// a) Timer T3346 is running.
if
(
m_timers
->
t3346
.
isRunning
()
&&
regType
==
nas
::
ERegistrationType
::
INITIAL_REGISTRATION
)
if
(
m_timers
->
t3346
.
isRunning
()
&&
regType
==
nas
::
ERegistrationType
::
INITIAL_REGISTRATION
&&
!
hasEmergency
()
)
{
// From 24.501: A UE configured with one or more access identities equal to 1, 2, or 11-15 applicable in the
// selected PLMN as specified in subclause 4.5.2. Definition derived from 3GPP TS 22.261
...
...
@@ -129,7 +129,7 @@ void NasMm::receiveRegistrationAccept(const nas::RegistrationAccept &msg)
m_storage
.
m_equivalentPlmnList
=
msg
.
equivalentPLMNs
.
value_or
(
nas
::
IEPlmnList
{});
// .. if the initial registration procedure is not for emergency services, the UE shall remove from the list any
// PLMN code that is already in the list of "forbidden PLMNs". ..
if
(
m_lastRegistrationRequest
->
registrationType
.
registrationType
!=
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
if
(
!
hasEmergency
()
)
{
utils
::
EraseWhere
(
m_storage
.
m_equivalentPlmnList
.
plmns
,
[
this
](
auto
&
plmn
)
{
return
std
::
any_of
(
m_storage
.
m_forbiddenPlmnList
.
plmns
.
begin
(),
m_storage
.
m_forbiddenPlmnList
.
plmns
.
end
(),
...
...
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