Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Li-Wei Liu
openairinterface5G
Commits
a6be54a6
Commit
a6be54a6
authored
Jun 24, 2019
by
Robert Schmidt
Browse files
Fix: X2 Setup Req/Resp: first check, then increase number of cells
parent
960e8dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/RRC/LTE/rrc_eNB.c
View file @
a6be54a6
...
...
@@ -4592,9 +4592,6 @@ rrc_eNB_generate_HandoverPreparationInformation(
}
void
rrc_eNB_process_x2_setup_request
(
int
mod_id
,
x2ap_setup_req_t
*
m
)
{
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
++
;
if
(
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
>
MAX_NUM_NEIGH_CELLs
)
{
LOG_E
(
RRC
,
"Error: number of neighbouring cells is exceeded
\n
"
);
return
;
...
...
@@ -4605,18 +4602,14 @@ void rrc_eNB_process_x2_setup_request(int mod_id, x2ap_setup_req_t *m) {
return
;
}
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
++
;
RC
.
rrc
[
mod_id
]
->
num_neigh_cells_cc
[
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
-
1
]
=
m
->
num_cc
;
for
(
int
i
=
0
;
i
<
m
->
num_cc
;
i
++
)
{
RC
.
rrc
[
mod_id
]
->
neigh_cells_id
[
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
-
1
][
i
]
=
m
->
Nid_cell
[
i
];
}
}
void
rrc_eNB_process_x2_setup_response
(
int
mod_id
,
x2ap_setup_resp_t
*
m
)
{
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
++
;
if
(
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
>
MAX_NUM_NEIGH_CELLs
)
{
LOG_E
(
RRC
,
"Error: number of neighbouring cells is exceeded
\n
"
);
return
;
...
...
@@ -4627,12 +4620,11 @@ void rrc_eNB_process_x2_setup_response(int mod_id, x2ap_setup_resp_t *m) {
return
;
}
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
++
;
RC
.
rrc
[
mod_id
]
->
num_neigh_cells_cc
[
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
-
1
]
=
m
->
num_cc
;
for
(
int
i
=
0
;
i
<
m
->
num_cc
;
i
++
)
{
RC
.
rrc
[
mod_id
]
->
neigh_cells_id
[
RC
.
rrc
[
mod_id
]
->
num_neigh_cells
-
1
][
i
]
=
m
->
Nid_cell
[
i
];
}
}
void
rrc_eNB_process_handoverPreparationInformation
(
int
mod_id
,
x2ap_handover_req_t
*
m
)
{
...
...
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