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
alex037yang
OpenXG-RAN
Commits
f1a1ff03
Commit
f1a1ff03
authored
Jun 24, 2019
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FlexRAN: HO request first check whether X2 is active, minor indentation fixes
parent
a6be54a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+9
-12
No files found.
openair2/RRC/LTE/rrc_eNB.c
View file @
f1a1ff03
...
@@ -4819,12 +4819,17 @@ flexran_rrc_eNB_trigger_handover (int mod_id,
...
@@ -4819,12 +4819,17 @@ flexran_rrc_eNB_trigger_handover (int mod_id,
rrc_eNB_ue_context_t
*
ue_context_pP
,
rrc_eNB_ue_context_t
*
ue_context_pP
,
int
target_cell_id
)
{
int
target_cell_id
)
{
uint32_t
earfcn_dl
;
uint32_t
earfcn_dl
;
uint8_t
KeNB_star
[
32
]
=
{
0
};
uint8_t
KeNB_star
[
32
]
=
{
0
};
int
cell_found
=
0
;
int
cell_found
=
0
;
/* Check if eNB id belongs to the supported ones-Extend for multiple carrieres */
/* if X2AP is disabled, do nothing */
if
(
!
is_x2ap_enabled
())
{
LOG_E
(
RRC
,
"X2 is disabled
\n
"
);
return
-
1
;
}
/* Check if eNB id belongs to the supported ones-Extend for multiple carrieres */
for
(
int
i
=
0
;
i
<
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
;
i
++
)
{
for
(
int
i
=
0
;
i
<
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
;
i
++
)
{
if
(
RC
.
rrc
[
mod_id
]
->
neigh_cells_id
[
i
][
0
]
==
target_cell_id
)
{
if
(
RC
.
rrc
[
mod_id
]
->
neigh_cells_id
[
i
][
0
]
==
target_cell_id
)
{
cell_found
=
1
;
cell_found
=
1
;
...
@@ -4833,20 +4838,12 @@ int cell_found = 0;
...
@@ -4833,20 +4838,12 @@ int cell_found = 0;
}
}
/* Check if eNB id was found */
/* Check if eNB id was found */
if
(
!
cell_found
)
{
if
(
!
cell_found
)
{
LOG_E
(
RRC
,
"%s(): cannot find target eNB with phyCellId %d
\n
"
,
__func__
,
target_cell_id
);
LOG_E
(
RRC
,
"%s(): cannot find target eNB with phyCellId %d
\n
"
,
__func__
,
target_cell_id
);
return
-
1
;
return
-
1
;
}
}
/* Handover process is following */
/* Handover process is following */
/* if X2AP is disabled, do nothing */
if
(
!
is_x2ap_enabled
())
{
LOG_E
(
RRC
,
"X2 is disabled
\n
"
);
return
-
1
;
}
LOG_D
(
RRC
,
"Handover is triggered by FlexRAN controller...
\n
"
);
LOG_D
(
RRC
,
"Handover is triggered by FlexRAN controller...
\n
"
);
/* if the UE is not in handover mode, start handover procedure */
/* if the UE is not in handover mode, start handover procedure */
...
...
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