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
9b20fb79
Commit
9b20fb79
authored
Jun 06, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UAC implementation
parent
1a6d3c28
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
79 deletions
+75
-79
src/ue/nas/mm/access.cpp
src/ue/nas/mm/access.cpp
+74
-77
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+1
-2
No files found.
src/ue/nas/mm/access.cpp
View file @
9b20fb79
...
...
@@ -73,8 +73,9 @@ bool NasMm::isInNonAllowedArea()
return
false
;
}
std
::
bitset
<
16
>
NasMm
::
determineAccessIdentities
()
void
NasMm
::
performUac
()
{
auto
accessIdentities
=
[
this
]()
{
std
::
bitset
<
16
>
ais
;
auto
currentPlmn
=
m_base
->
shCtx
.
getCurrentPlmn
();
...
...
@@ -83,19 +84,15 @@ std::bitset<16> NasMm::determineAccessIdentities()
{
if
(
currentPlmn
==
m_base
->
config
->
hplmn
||
m_storage
->
equivalentPlmnList
->
contains
(
currentPlmn
)
||
currentPlmn
.
mcc
==
m_base
->
config
->
hplmn
.
mcc
)
{
ais
[
1
]
=
true
;
}
}
if
(
m_base
->
config
->
uacAic
.
mcs
&&
m_rmState
==
ERmState
::
RM_REGISTERED
&&
currentPlmn
.
hasValue
())
{
if
(
currentPlmn
==
m_base
->
config
->
hplmn
||
m_storage
->
equivalentPlmnList
->
contains
(
currentPlmn
)
||
currentPlmn
.
mcc
==
m_base
->
config
->
hplmn
.
mcc
)
{
ais
[
2
]
=
true
;
}
}
if
(
m_nwFeatureSupport
)
{
...
...
@@ -124,10 +121,9 @@ std::bitset<16> NasMm::determineAccessIdentities()
ais
[
0
]
=
true
;
return
ais
;
}
}();
int
NasMm
::
determineAccessCategory
()
{
auto
accessCategory
=
[
this
]()
{
/* Check for Rule #1 */
if
(
m_procCtl
.
mobilityRegistration
)
{
...
...
@@ -179,6 +175,7 @@ int NasMm::determineAccessCategory()
return
7
;
return
0
;
}();
}
}
// namespace nr::ue
src/ue/nas/mm/mm.hpp
View file @
9b20fb79
...
...
@@ -174,8 +174,7 @@ class NasMm
bool
hasEmergency
();
void
setN1Capability
(
bool
enabled
);
bool
isInNonAllowedArea
();
std
::
bitset
<
16
>
determineAccessIdentities
();
int
determineAccessCategory
();
void
performUac
();
private:
/* eCall */
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