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
52fe70b7
Commit
52fe70b7
authored
May 23, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
2a66fe90
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
12 deletions
+19
-12
src/ue/nas/mm/base.cpp
src/ue/nas/mm/base.cpp
+14
-3
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+3
-1
src/ue/nas/mm/radio.cpp
src/ue/nas/mm/radio.cpp
+2
-0
src/ue/nas/mm/register.cpp
src/ue/nas/mm/register.cpp
+0
-8
No files found.
src/ue/nas/mm/base.cpp
View file @
52fe70b7
...
...
@@ -70,6 +70,7 @@ void NasMm::onStart(NasSm *sm, Usim *usim)
{
m_sm
=
sm
;
m_usim
=
usim
;
triggerMmCycle
();
}
...
...
@@ -436,18 +437,28 @@ void NasMm::onSwitchUState(E5UState oldState, E5UState newState)
{
}
void
NasMm
::
onS
imRemoval
()
void
NasMm
::
onS
witchOn
()
{
m_storage
->
equivalentPlmnList
->
clear
();
resetRegAttemptCounter
();
}
void
NasMm
::
onSimInsertion
()
{
resetRegAttemptCounter
();
}
void
NasMm
::
onSwitchOff
()
{
m_storage
->
serviceAreaList
->
clear
();
m_storage
->
forbiddenTaiListRoaming
->
clear
();
m_storage
->
forbiddenTaiListRps
->
clear
();
}
void
NasMm
::
onS
witchOff
()
void
NasMm
::
onS
imRemoval
()
{
m_storage
->
equivalentPlmnList
->
clear
();
m_storage
->
serviceAreaList
->
clear
();
m_storage
->
forbiddenTaiListRoaming
->
clear
();
...
...
src/ue/nas/mm/mm.hpp
View file @
52fe70b7
...
...
@@ -87,8 +87,10 @@ class NasMm
void
onSwitchRmState
(
ERmState
oldState
,
ERmState
newState
);
void
onSwitchCmState
(
ECmState
oldState
,
ECmState
newState
);
void
onSwitchUState
(
E5UState
oldState
,
E5UState
newState
);
void
onSimRemoval
();
void
onSwitchOn
();
void
onSimInsertion
();
void
onSwitchOff
();
void
onSimRemoval
();
private:
/* Messaging */
void
sendNasMessage
(
const
nas
::
PlainMmMessage
&
msg
);
...
...
src/ue/nas/mm/radio.cpp
View file @
52fe70b7
...
...
@@ -107,6 +107,8 @@ void NasMm::performPlmnSelection()
{
m_logger
->
info
(
"Selected plmn[%s]"
,
ToJson
(
selected
).
str
().
c_str
());
m_base
->
rrcTask
->
push
(
new
NwUeNasToRrc
(
NwUeNasToRrc
::
RRC_NOTIFY
));
resetRegAttemptCounter
();
}
m_base
->
shCtx
.
selectedPlmn
.
set
(
selected
);
...
...
src/ue/nas/mm/register.cpp
View file @
52fe70b7
...
...
@@ -948,14 +948,6 @@ void NasMm::resetRegAttemptCounter()
m_regCounter
=
0
;
m_timers
->
t3519
.
stop
();
m_storage
->
storedSuci
->
clear
();
// TODO: Registration attempt counter shall be reset for these cases as well (not implemented yet)
// - the UE is powered on;
// - a USIM is inserted
// "Additionally, the registration attempt counter shall be reset when the UE is in substate
// 5GMM-DEREGISTERED.ATTEMPTING-REGISTRATION or 5GMM-REGISTERED.ATTEMPTING-REGISTRATION-UPDATE, and:"
// - a new tracking area is entered;
// - timer T3346 is started.
}
}
// namespace nr::ue
\ No newline at end of file
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