Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
ZhouShuya
OpenXG-RAN
Commits
5e148d43
Commit
5e148d43
authored
May 17, 2019
by
Konstantinos Alexandris
Committed by
Robert Schmidt
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legal 3GPP values check for measurement report parameters
parent
939251e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+7
-0
No files found.
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
5e148d43
...
...
@@ -1821,6 +1821,7 @@ int flexran_set_rrc_ofp(mid_t mod_id, rnti_t rnti, long offsetFreq) {
struct
rrc_eNB_ue_context_s
*
ue_context_p
=
rrc_eNB_get_ue_context
(
RC
.
rrc
[
mod_id
],
rnti
);
if
(
!
ue_context_p
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
)
return
-
1
;
if
(
!
((
offsetFreq
>=
-
15
)
&&
(
offsetFreq
<=
15
)))
return
-
1
;
ue_context_p
->
ue_context
.
measurement_info
->
offsetFreq
=
offsetFreq
;
return
0
;
}
...
...
@@ -1830,6 +1831,7 @@ int flexran_set_rrc_ofn(mid_t mod_id, rnti_t rnti, long offsetFreq) {
struct
rrc_eNB_ue_context_s
*
ue_context_p
=
rrc_eNB_get_ue_context
(
RC
.
rrc
[
mod_id
],
rnti
);
if
(
!
ue_context_p
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
)
return
-
1
;
if
(
!
((
offsetFreq
>=
-
15
)
&&
(
offsetFreq
<=
15
)))
return
-
1
;
ue_context_p
->
ue_context
.
measurement_info
->
offsetFreq
=
offsetFreq
;
return
0
;
}
...
...
@@ -1985,6 +1987,7 @@ int flexran_set_rrc_per_event_maxReportCells(mid_t mod_id, rnti_t rnti, long max
if
(
!
ue_context_p
->
ue_context
.
measurement_info
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
->
per_event
)
return
-
1
;
if
(
!
((
maxReportCells
>=
1
)
&&
(
maxReportCells
<=
8
)))
return
-
1
;
ue_context_p
->
ue_context
.
measurement_info
->
events
->
per_event
->
maxReportCells
=
maxReportCells
;
return
0
;
}
...
...
@@ -1998,6 +2001,7 @@ int flexran_set_rrc_a3_event_hysteresis(mid_t mod_id, rnti_t rnti, long hysteres
if
(
!
ue_context_p
->
ue_context
.
measurement_info
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
)
return
-
1
;
if
(
!
((
hysteresis
>=
0
)
&&
(
hysteresis
<=
30
)))
return
-
1
;
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
->
hysteresis
=
hysteresis
;
return
0
;
}
...
...
@@ -2039,6 +2043,7 @@ int flexran_set_rrc_a3_event_maxReportCells(mid_t mod_id, rnti_t rnti, long maxR
if
(
!
ue_context_p
->
ue_context
.
measurement_info
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
)
return
-
1
;
if
(
!
((
maxReportCells
>=
1
)
&&
(
maxReportCells
<=
8
)))
return
-
1
;
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
->
maxReportCells
=
maxReportCells
;
return
0
;
}
...
...
@@ -2050,6 +2055,7 @@ int flexran_set_rrc_a3_event_a3_offset(mid_t mod_id, rnti_t rnti, long a3_offset
if
(
!
ue_context_p
->
ue_context
.
measurement_info
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
)
return
-
1
;
if
(
!
((
a3_offset
>=
-
30
)
&&
(
a3_offset
<=
30
)))
return
-
1
;
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
->
a3_offset
=
a3_offset
;
return
0
;
}
...
...
@@ -2061,6 +2067,7 @@ int flexran_set_rrc_a3_event_reportOnLeave(mid_t mod_id, rnti_t rnti, int report
if
(
!
ue_context_p
->
ue_context
.
measurement_info
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
)
return
-
1
;
if
(
!
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
)
return
-
1
;
if
(
!
((
reportOnLeave
==
0
)
||
(
reportOnLeave
==
1
)))
return
-
1
;
ue_context_p
->
ue_context
.
measurement_info
->
events
->
a3_event
->
reportOnLeave
=
reportOnLeave
;
return
0
;
}
...
...
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