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
1a6d3c28
Commit
1a6d3c28
authored
Jun 06, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UAC Access category determination
parent
f1ee3190
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
src/ue/nas/mm/access.cpp
src/ue/nas/mm/access.cpp
+55
-0
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+1
-0
No files found.
src/ue/nas/mm/access.cpp
View file @
1a6d3c28
...
@@ -126,4 +126,59 @@ std::bitset<16> NasMm::determineAccessIdentities()
...
@@ -126,4 +126,59 @@ std::bitset<16> NasMm::determineAccessIdentities()
return
ais
;
return
ais
;
}
}
int
NasMm
::
determineAccessCategory
()
{
/* Check for Rule #1 */
if
(
m_procCtl
.
mobilityRegistration
)
{
if
(
m_procCtl
.
mobilityRegistration
==
ERegUpdateCause
::
PAGING_OR_NOTIFICATION
)
{
return
0
;
}
}
if
(
m_procCtl
.
serviceRequest
)
{
if
(
m_procCtl
.
serviceRequest
==
EServiceReqCause
::
IDLE_PAGING
||
m_procCtl
.
serviceRequest
==
EServiceReqCause
::
CONNECTED_3GPP_NOTIFICATION_N3GPP
||
m_procCtl
.
serviceRequest
==
EServiceReqCause
::
IDLE_3GPP_NOTIFICATION_N3GPP
)
{
return
0
;
}
}
/* Check for Rule #2 */
if
(
hasEmergency
())
return
2
;
/* Check for Rule #3 */
// TODO: Operator defined access category not supported
/* Check for Rule #4 */
// TODO: Access attempt for delay tolerant service
/* Check for Rule #5 */
// TODO: MO MMTel voice call
/* Check for Rule #6 */
// TODO: MO MMTel video call
/* Check for Rule #7 */
// TODO: MO SMS over NAS or MO SMSoIP
/* Check for Rule #8 */
if
(
hasPendingProcedure
()
&&
!
m_sm
->
anyUplinkDataPending
())
return
3
;
/* Check for Rule #9 */
if
(
hasPendingProcedure
()
&&
m_sm
->
anyUplinkDataPending
())
return
7
;
/* Check for Rule #10 */
if
(
m_sm
->
anyUplinkDataPending
())
return
7
;
return
0
;
}
}
// namespace nr::ue
}
// namespace nr::ue
src/ue/nas/mm/mm.hpp
View file @
1a6d3c28
...
@@ -175,6 +175,7 @@ class NasMm
...
@@ -175,6 +175,7 @@ class NasMm
void
setN1Capability
(
bool
enabled
);
void
setN1Capability
(
bool
enabled
);
bool
isInNonAllowedArea
();
bool
isInNonAllowedArea
();
std
::
bitset
<
16
>
determineAccessIdentities
();
std
::
bitset
<
16
>
determineAccessIdentities
();
int
determineAccessCategory
();
private:
/* eCall */
private:
/* eCall */
bool
startECallInactivityIfNeeded
();
bool
startECallInactivityIfNeeded
();
...
...
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