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
Show 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()
...
@@ -32,9 +32,9 @@ void UeRrcTask::performCellSelection()
if
(
!
m_cellDesc
.
empty
())
if
(
!
m_cellDesc
.
empty
())
{
{
m_logger
->
warn
(
"Suitable cell selection failed in [%d] cells. [%d] out of PLMN, [%d] no SI, [%d] reserved, "
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
,
static_cast
<
int
>
(
m_cellDesc
.
size
()),
report
.
outOfPlmnCells
,
report
.
sib1MissingCells
,
report
.
reservedCells
,
report
.
barredCells
);
report
.
reservedCells
,
report
.
barredCells
,
report
.
forbiddenTaiCells
);
}
}
else
else
{
{
...
@@ -47,9 +47,10 @@ void UeRrcTask::performCellSelection()
...
@@ -47,9 +47,10 @@ void UeRrcTask::performCellSelection()
{
{
if
(
!
m_cellDesc
.
empty
())
if
(
!
m_cellDesc
.
empty
())
{
{
m_logger
->
warn
(
"Acceptable cell selection failed in [%d] cells. [%d] no SI, [%d] reserved, [%d] barred"
,
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
,
static_cast
<
int
>
(
m_cellDesc
.
size
()),
report
.
sib1MissingCells
,
report
.
reservedCells
,
report
.
barred
Cells
);
report
.
barredCells
,
report
.
forbiddenTai
Cells
);
}
}
else
else
{
{
...
@@ -115,7 +116,25 @@ bool UeRrcTask::lookForSuitableCell(CurrentCellInfo &cellInfo, CellSelectionRepo
...
@@ -115,7 +116,25 @@ bool UeRrcTask::lookForSuitableCell(CurrentCellInfo &cellInfo, CellSelectionRepo
continue
;
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?
// TODO: Do we need to check by access identity?
// It seems suitable
// It seems suitable
...
@@ -173,7 +192,25 @@ bool UeRrcTask::lookForAcceptableCell(CurrentCellInfo &cellInfo, CellSelectionRe
...
@@ -173,7 +192,25 @@ bool UeRrcTask::lookForAcceptableCell(CurrentCellInfo &cellInfo, CellSelectionRe
continue
;
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?
// TODO: Do we need to check by access identity?
// It seems acceptable
// It seems acceptable
...
...
src/ue/types.hpp
View file @
417bbc14
...
@@ -145,6 +145,7 @@ struct CellSelectionReport
...
@@ -145,6 +145,7 @@ struct CellSelectionReport
int
sib1MissingCells
{};
int
sib1MissingCells
{};
int
reservedCells
{};
int
reservedCells
{};
int
barredCells
{};
int
barredCells
{};
int
forbiddenTaiCells
{};
};
};
struct
CurrentCellInfo
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