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
99173249
Commit
99173249
authored
May 16, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RRC developments
parent
2f54d450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
src/ue/nas/mm/radio.cpp
src/ue/nas/mm/radio.cpp
+18
-2
No files found.
src/ue/nas/mm/radio.cpp
View file @
99173249
...
...
@@ -23,7 +23,20 @@ void NasMm::performPlmnSelection()
{
int64_t
currentTime
=
utils
::
CurrentTimeMillis
();
bool
logFailures
=
currentTime
-
m_lastTimePlmnSearchFailureLogged
>=
10'000
;
// 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
||
m_mmSubState
==
EMmSubState
::
MM_REGISTERED_PLMN_SEARCH
?
1'000LL
:
10'000LL
;
bool
logFailures
=
currentTime
-
m_lastTimePlmnSearchFailureLogged
>=
loggingThreshold
;
// If the device just switched on, then no error logging for PLMN selection failures
if
(
m_lastTimePlmnSearchFailureLogged
==
0
)
{
m_lastTimePlmnSearchFailureLogged
=
currentTime
;
logFailures
=
false
;
}
Plmn
lastSelectedPlmn
=
m_base
->
shCtx
.
selectedPlmn
.
get
();
...
...
@@ -44,16 +57,19 @@ void NasMm::performPlmnSelection()
return
;
}
// Determine candidate PLMNs from the list. Candidates are in priority order
std
::
vector
<
Plmn
>
candidates
;
// Highest priority is for HPLMN, so just look for HPLMN first.
for
(
auto
&
plmn
:
plmns
)
if
(
plmn
==
m_base
->
config
->
hplmn
)
candidates
.
push_back
(
plmn
);
// Then again look for the all PLMNS
for
(
auto
&
plmn
:
plmns
)
{
if
(
plmn
==
m_base
->
config
->
hplmn
)
continue
;
continue
;
// If it's the HPLMN, it's already added above
if
(
nas
::
utils
::
PlmnListContains
(
m_usim
->
m_forbiddenPlmnList
,
plmn
))
continue
;
if
(
nas
::
utils
::
ServiceAreaListForbidsPlmn
(
m_usim
->
m_serviceAreaList
,
nas
::
utils
::
PlmnFrom
(
plmn
)))
...
...
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