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
spbro
OpenXG-RAN
Commits
28cd2388
Commit
28cd2388
authored
Jan 27, 2021
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update NR Measurements periodically, remove rsrq typo
parent
184f0953
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
23 deletions
+26
-23
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+26
-23
No files found.
openair2/RRC/LTE/rrc_eNB.c
View file @
28cd2388
...
...
@@ -4679,29 +4679,6 @@ rrc_eNB_process_MeasurementReport(
X2AP_ENDC_SGNB_ADDITION_REQ
(
msg
).
rrc_buffer_size
=
enc_size
;
X2AP_ENDC_SGNB_ADDITION_REQ
(
msg
).
target_physCellId
=
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
pci_r15
;
if
(
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
==
NULL
)
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
=
calloc
(
1
,
sizeof
(
*
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
));
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
present
=
LTE_MeasResults__measResultNeighCells_PR_measResultNeighCellListNR_r15
;
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
pci_r15
=
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
pci_r15
;
if
(
!
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
)
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
=
calloc
(
1
,
sizeof
(
LTE_RSRP_RangeNR_r15_t
));
if
(
!
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
)
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrqResult_r15
=
calloc
(
1
,
sizeof
(
LTE_RSRQ_RangeNR_r15_t
));
*
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
=
*
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
;
*
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrqResult_r15
=
*
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrqResult_r15
;
if
(
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
)
{
if
(
!
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
)
{
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
=
calloc
(
1
,
sizeof
(
struct
LTE_MeasResultSSB_IndexList_r15
));
memset
(
&
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
,
0
,
sizeof
(
struct
LTE_MeasResultSSB_IndexList_r15
));
ASN_SEQUENCE_ADD
(
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
,
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]);
}
else
{
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]
->
ssb_Index_r15
=
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]
->
ssb_Index_r15
;
}
}
//For the moment we have a single E-RAB which will be the one to be added to the gNB
//Not sure how to select bearers to be added if there are multiple.
...
...
@@ -4723,6 +4700,32 @@ rrc_eNB_process_MeasurementReport(
return
;
}
}
if
(
!
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
)
{
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
=
calloc
(
1
,
sizeof
(
*
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
));
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
present
=
LTE_MeasResults__measResultNeighCells_PR_measResultNeighCellListNR_r15
;
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
=
calloc
(
1
,
sizeof
(
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
));
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
=
calloc
(
1
,
sizeof
(
*
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
));
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
count
=
1
;
}
struct
LTE_MeasResultCellNR_r15
*
ueCtxtMeasResultCellNR_r15
=
ue_context_pP
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
];
const
struct
LTE_MeasResultCellNR_r15
*
measNeighCellNR0
=
measResults2
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
];
ueCtxtMeasResultCellNR_r15
->
pci_r15
=
measNeighCellNR0
->
pci_r15
;
if
(
!
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrpResult_r15
)
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrpResult_r15
=
calloc
(
1
,
sizeof
(
*
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrpResult_r15
));
if
(
!
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrqResult_r15
)
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrqResult_r15
=
calloc
(
1
,
sizeof
(
*
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrqResult_r15
));
*
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrpResult_r15
=
*
measNeighCellNR0
->
measResultCell_r15
.
rsrpResult_r15
;
*
ueCtxtMeasResultCellNR_r15
->
measResultCell_r15
.
rsrqResult_r15
=
*
measNeighCellNR0
->
measResultCell_r15
.
rsrqResult_r15
;
if
(
measNeighCellNR0
->
measResultRS_IndexList_r15
)
{
if
(
!
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
)
{
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
=
calloc
(
1
,
sizeof
(
*
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
));
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
->
list
.
array
=
calloc
(
1
,
sizeof
(
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
->
list
.
array
));
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]
=
calloc
(
1
,
sizeof
(
*
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
->
list
.
array
));
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
->
list
.
count
=
1
;
}
ueCtxtMeasResultCellNR_r15
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]
->
ssb_Index_r15
=
measNeighCellNR0
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]
->
ssb_Index_r15
;
}
}
if
(
measResults2
->
measResultNeighCells
==
NULL
)
...
...
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