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
417bbc14
Commit
417bbc14
authored
May 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
93cd83c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
7 deletions
+45
-7
src/ue/rrc/idle.cpp
src/ue/rrc/idle.cpp
+44
-7
src/ue/types.hpp
src/ue/types.hpp
+1
-0
No files found.
src/ue/rrc/idle.cpp
View file @
417bbc14
...
...
@@ -32,9 +32,9 @@ void UeRrcTask::performCellSelection()
if
(
!
m_cellDesc
.
empty
())
{
m_logger
->
warn
(
"Suitable cell selection failed in [%d] cells. [%d] out of PLMN, [%d] no SI, [%d] reserved, "
"[%d] barred"
,
"[%d] barred
, ftai [%d]
"
,
static_cast
<
int
>
(
m_cellDesc
.
size
()),
report
.
outOfPlmnCells
,
report
.
sib1MissingCells
,
report
.
reservedCells
,
report
.
barredCells
);
report
.
reservedCells
,
report
.
barredCells
,
report
.
forbiddenTaiCells
);
}
else
{
...
...
@@ -47,9 +47,10 @@ void UeRrcTask::performCellSelection()
{
if
(
!
m_cellDesc
.
empty
())
{
m_logger
->
warn
(
"Acceptable cell selection failed in [%d] cells. [%d] no SI, [%d] reserved, [%d] barred"
,
static_cast
<
int
>
(
m_cellDesc
.
size
()),
report
.
sib1MissingCells
,
report
.
reservedCells
,
report
.
barredCells
);
m_logger
->
warn
(
"Acceptable cell selection failed in [%d] cells. [%d] no SI, [%d] reserved, [%d] barred, ftai [%d]"
,
static_cast
<
int
>
(
m_cellDesc
.
size
()),
report
.
sib1MissingCells
,
report
.
reservedCells
,
report
.
barredCells
,
report
.
forbiddenTaiCells
);
}
else
{
...
...
@@ -115,7 +116,25 @@ bool UeRrcTask::lookForSuitableCell(CurrentCellInfo &cellInfo, CellSelectionRepo
continue
;
}
// TODO: Check TAI if forbidden by service area or forbidden list
Tai
tai
{
cell
.
sib1
.
plmn
,
cell
.
sib1
.
tac
};
if
(
m_base
->
shCtx
.
forbiddenTaiRoaming
.
get
<
bool
>
([
&
tai
](
auto
&
item
)
{
return
std
::
any_of
(
item
.
begin
(),
item
.
end
(),
[
&
tai
](
auto
&
element
)
{
return
element
==
tai
;
});
}))
{
report
.
forbiddenTaiCells
++
;
continue
;
}
if
(
m_base
->
shCtx
.
forbiddenTaiRps
.
get
<
bool
>
([
&
tai
](
auto
&
item
)
{
return
std
::
any_of
(
item
.
begin
(),
item
.
end
(),
[
&
tai
](
auto
&
element
)
{
return
element
==
tai
;
});
}))
{
report
.
forbiddenTaiCells
++
;
continue
;
}
// TODO: Check TAI if forbidden by service area
// TODO: Do we need to check by access identity?
// It seems suitable
...
...
@@ -173,7 +192,25 @@ bool UeRrcTask::lookForAcceptableCell(CurrentCellInfo &cellInfo, CellSelectionRe
continue
;
}
// TODO: Check TAI if forbidden by service area or forbidden list
Tai
tai
{
cell
.
sib1
.
plmn
,
cell
.
sib1
.
tac
};
if
(
m_base
->
shCtx
.
forbiddenTaiRoaming
.
get
<
bool
>
([
&
tai
](
auto
&
item
)
{
return
std
::
any_of
(
item
.
begin
(),
item
.
end
(),
[
&
tai
](
auto
&
element
)
{
return
element
==
tai
;
});
}))
{
report
.
forbiddenTaiCells
++
;
continue
;
}
if
(
m_base
->
shCtx
.
forbiddenTaiRps
.
get
<
bool
>
([
&
tai
](
auto
&
item
)
{
return
std
::
any_of
(
item
.
begin
(),
item
.
end
(),
[
&
tai
](
auto
&
element
)
{
return
element
==
tai
;
});
}))
{
report
.
forbiddenTaiCells
++
;
continue
;
}
// TODO: Check TAI if forbidden by service area
// TODO: Do we need to check by access identity?
// It seems acceptable
...
...
src/ue/types.hpp
View file @
417bbc14
...
...
@@ -145,6 +145,7 @@ struct CellSelectionReport
int
sib1MissingCells
{};
int
reservedCells
{};
int
barredCells
{};
int
forbiddenTaiCells
{};
};
struct
CurrentCellInfo
...
...
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