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
effbacb2
Commit
effbacb2
authored
May 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
31f77086
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
src/ue/nas/mm/base.cpp
src/ue/nas/mm/base.cpp
+2
-0
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+2
-0
src/ue/nas/mm/radio.cpp
src/ue/nas/mm/radio.cpp
+16
-1
No files found.
src/ue/nas/mm/base.cpp
View file @
effbacb2
...
@@ -183,6 +183,8 @@ void NasMm::switchMmState(EMmState state, EMmSubState subState)
...
@@ -183,6 +183,8 @@ void NasMm::switchMmState(EMmState state, EMmSubState subState)
m_mmState
=
state
;
m_mmState
=
state
;
m_mmSubState
=
subState
;
m_mmSubState
=
subState
;
m_lastTimeMmStateChange
=
utils
::
CurrentTimeMillis
();
onSwitchMmState
(
oldState
,
m_mmState
,
oldSubState
,
m_mmSubState
);
onSwitchMmState
(
oldState
,
m_mmState
,
oldSubState
,
m_mmSubState
);
if
(
m_base
->
nodeListener
)
if
(
m_base
->
nodeListener
)
...
...
src/ue/nas/mm/mm.hpp
View file @
effbacb2
...
@@ -64,6 +64,8 @@ class NasMm
...
@@ -64,6 +64,8 @@ class NasMm
int
m_nwConsecutiveAuthFailure
{};
int
m_nwConsecutiveAuthFailure
{};
// Last time PLMN search failure logged
// Last time PLMN search failure logged
int64_t
m_lastTimePlmnSearchFailureLogged
{};
int64_t
m_lastTimePlmnSearchFailureLogged
{};
// Last time MM state changed
int64_t
m_lastTimeMmStateChange
{};
friend
class
UeCmdHandler
;
friend
class
UeCmdHandler
;
...
...
src/ue/nas/mm/radio.cpp
View file @
effbacb2
...
@@ -23,10 +23,25 @@ void NasMm::performPlmnSelection()
...
@@ -23,10 +23,25 @@ void NasMm::performPlmnSelection()
{
{
int64_t
currentTime
=
utils
::
CurrentTimeMillis
();
int64_t
currentTime
=
utils
::
CurrentTimeMillis
();
// After some timeout in PLMN_SEARCH states, NO_CELL_AVAILABLE state is selected
if
(
currentTime
-
m_lastTimeMmStateChange
>=
5'000LL
)
{
if
(
m_mmSubState
==
EMmSubState
::
MM_REGISTERED_PLMN_SEARCH
)
{
switchMmState
(
EMmState
::
MM_REGISTERED
,
EMmSubState
::
MM_REGISTERED_NO_CELL_AVAILABLE
);
return
;
}
else
if
(
m_mmSubState
==
EMmSubState
::
MM_DEREGISTERED_PLMN_SEARCH
)
{
switchMmState
(
EMmState
::
MM_DEREGISTERED
,
EMmSubState
::
MM_DEREGISTERED_NO_CELL_AVAILABLE
);
return
;
}
}
// If the state is PLMN_SEARCH instead of NO_CELL_AVAILABLE, then we log the errors more intensely.
// If the state is PLMN_SEARCH instead of NO_CELL_AVAILABLE, then we log the errors more intensely.
int64_t
loggingThreshold
=
m_mmSubState
==
EMmSubState
::
MM_DEREGISTERED_PLMN_SEARCH
||
int64_t
loggingThreshold
=
m_mmSubState
==
EMmSubState
::
MM_DEREGISTERED_PLMN_SEARCH
||
m_mmSubState
==
EMmSubState
::
MM_REGISTERED_PLMN_SEARCH
m_mmSubState
==
EMmSubState
::
MM_REGISTERED_PLMN_SEARCH
?
1
'000LL
?
2
'000LL
:
10'000LL
;
:
10'000LL
;
bool
logFailures
=
currentTime
-
m_lastTimePlmnSearchFailureLogged
>=
loggingThreshold
;
bool
logFailures
=
currentTime
-
m_lastTimePlmnSearchFailureLogged
>=
loggingThreshold
;
...
...
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