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
cba865df
Commit
cba865df
authored
Mar 14, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MM refactor
parent
61d09a6e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
13 deletions
+20
-13
src/ue/mm/interface.cpp
src/ue/mm/interface.cpp
+12
-0
src/ue/mm/mm.hpp
src/ue/mm/mm.hpp
+2
-1
src/ue/nas/task.cpp
src/ue/nas/task.cpp
+6
-11
src/ue/nas/task.hpp
src/ue/nas/task.hpp
+0
-1
No files found.
src/ue/mm/interface.cpp
View file @
cba865df
...
@@ -47,4 +47,16 @@ void NasMm::handleRrcEvent(const NwUeRrcToNas &msg)
...
@@ -47,4 +47,16 @@ void NasMm::handleRrcEvent(const NwUeRrcToNas &msg)
}
}
}
}
void
NasMm
::
handleNasEvent
(
const
NwUeNasToNas
&
msg
)
{
switch
(
msg
.
present
)
{
case
NwUeNasToNas
:
:
NAS_TIMER_EXPIRE
:
onTimerExpire
(
*
msg
.
timer
);
break
;
default:
break
;
}
}
}
// namespace nr::ue
}
// namespace nr::ue
src/ue/mm/mm.hpp
View file @
cba865df
...
@@ -157,11 +157,12 @@ class NasMm
...
@@ -157,11 +157,12 @@ class NasMm
bool
startECallInactivityIfNeeded
();
bool
startECallInactivityIfNeeded
();
bool
switchToECallInactivityIfNeeded
();
bool
switchToECallInactivityIfNeeded
();
p
ublic
:
/* Timer */
p
rivate
:
/* Timer */
void
onTimerExpire
(
nas
::
NasTimer
&
timer
);
void
onTimerExpire
(
nas
::
NasTimer
&
timer
);
public:
/* Interface */
public:
/* Interface */
void
handleRrcEvent
(
const
NwUeRrcToNas
&
msg
);
void
handleRrcEvent
(
const
NwUeRrcToNas
&
msg
);
void
handleNasEvent
(
const
NwUeNasToNas
&
msg
);
};
};
}
// namespace nr::ue
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/task.cpp
View file @
cba865df
...
@@ -67,7 +67,12 @@ void NasTask::onLoop()
...
@@ -67,7 +67,12 @@ void NasTask::onLoop()
mm
->
performMmCycle
();
mm
->
performMmCycle
();
break
;
break
;
case
NwUeNasToNas
:
:
NAS_TIMER_EXPIRE
:
case
NwUeNasToNas
:
:
NAS_TIMER_EXPIRE
:
onTimerExpire
(
*
w
->
timer
);
if
(
w
->
timer
->
isMmTimer
())
mm
->
handleNasEvent
(
*
w
);
else
{
// TODO, handle SM timer
}
break
;
break
;
case
NwUeNasToNas
:
:
ESTABLISH_INITIAL_SESSIONS
:
case
NwUeNasToNas
:
:
ESTABLISH_INITIAL_SESSIONS
:
sm
->
establishInitialSessions
();
sm
->
establishInitialSessions
();
...
@@ -98,16 +103,6 @@ void NasTask::onLoop()
...
@@ -98,16 +103,6 @@ void NasTask::onLoop()
delete
msg
;
delete
msg
;
}
}
void
NasTask
::
onTimerExpire
(
nas
::
NasTimer
&
timer
)
{
if
(
timer
.
isMmTimer
())
mm
->
onTimerExpire
(
timer
);
else
{
// TODO
}
}
void
NasTask
::
performTick
()
void
NasTask
::
performTick
()
{
{
auto
sendExpireMsg
=
[
this
](
nas
::
NasTimer
*
timer
)
{
auto
sendExpireMsg
=
[
this
](
nas
::
NasTimer
*
timer
)
{
...
...
src/ue/nas/task.hpp
View file @
cba865df
...
@@ -42,7 +42,6 @@ class NasTask : public NtsTask
...
@@ -42,7 +42,6 @@ class NasTask : public NtsTask
void
onQuit
()
override
;
void
onQuit
()
override
;
private:
private:
void
onTimerExpire
(
nas
::
NasTimer
&
timer
);
void
performTick
();
void
performTick
();
};
};
...
...
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