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
zzha zzha
OpenXG-RAN
Commits
d6e99a82
Commit
d6e99a82
authored
Jul 12, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gnb_config.c: Simplify F1 Setup reading
parent
fd3ecb29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+16
-14
No files found.
openair2/GNB_APP/gnb_config.c
View file @
d6e99a82
...
@@ -1940,25 +1940,27 @@ int RCconfig_NR_DU_F1(MessageDef *msg_p, uint32_t i) {
...
@@ -1940,25 +1940,27 @@ int RCconfig_NR_DU_F1(MessageDef *msg_p, uint32_t i) {
config_getlist
(
&
PLMNParamList
,
PLMNParams
,
sizeof
(
PLMNParams
)
/
sizeof
(
paramdef_t
),
aprefix
);
config_getlist
(
&
PLMNParamList
,
PLMNParams
,
sizeof
(
PLMNParams
)
/
sizeof
(
paramdef_t
),
aprefix
);
f1Setup
->
num_cells_available
++
;
f1Setup
->
num_cells_available
++
;
f1Setup
->
gNB_DU_id
=
*
(
GNBParamList
.
paramarray
[
0
][
GNB_GNB_ID_IDX
].
uptr
);
f1Setup
->
gNB_DU_id
=
*
(
GNBParamList
.
paramarray
[
k
][
GNB_GNB_ID_IDX
].
uptr
);
LOG_I
(
GNB_APP
,
"F1AP: gNB_DU_id[%d] %ld
\n
"
,
k
,
f1Setup
->
gNB_DU_id
);
f1Setup
->
gNB_DU_name
=
strdup
(
*
(
GNBParamList
.
paramarray
[
k
][
GNB_GNB_NAME_IDX
].
strptr
));
f1Setup
->
gNB_DU_name
=
strdup
(
*
(
GNBParamList
.
paramarray
[
0
][
GNB_GNB_NAME_IDX
].
strptr
));
f1Setup
->
cell
[
k
].
tac
=
*
GNBParamList
.
paramarray
[
k
][
GNB_TRACKING_AREA_CODE_IDX
].
uptr
;
LOG_I
(
GNB_APP
,
"F1AP: gNB_DU_name[%d] %s
\n
"
,
k
,
f1Setup
->
gNB_DU_name
);
f1Setup
->
cell
[
k
].
mcc
=
*
PLMNParamList
.
paramarray
[
k
][
GNB_MOBILE_COUNTRY_CODE_IDX
].
uptr
;
f1Setup
->
cell
[
k
].
tac
=
*
GNBParamList
.
paramarray
[
i
][
GNB_TRACKING_AREA_CODE_IDX
].
uptr
;
f1Setup
->
cell
[
k
].
mnc
=
*
PLMNParamList
.
paramarray
[
k
][
GNB_MOBILE_NETWORK_CODE_IDX
].
uptr
;
LOG_I
(
GNB_APP
,
"F1AP: tac[%d] %d
\n
"
,
k
,
f1Setup
->
cell
[
k
].
tac
);
f1Setup
->
cell
[
k
].
mnc_digit_length
=
*
PLMNParamList
.
paramarray
[
k
][
GNB_MNC_DIGIT_LENGTH
].
u8ptr
;
f1Setup
->
cell
[
k
].
mcc
=
*
PLMNParamList
.
paramarray
[
0
][
GNB_MOBILE_COUNTRY_CODE_IDX
].
uptr
;
LOG_I
(
GNB_APP
,
"F1AP: mcc[%d] %d
\n
"
,
k
,
f1Setup
->
cell
[
k
].
mcc
);
f1Setup
->
cell
[
k
].
mnc
=
*
PLMNParamList
.
paramarray
[
0
][
GNB_MOBILE_NETWORK_CODE_IDX
].
uptr
;
LOG_I
(
GNB_APP
,
"F1AP: mnc[%d] %d
\n
"
,
k
,
f1Setup
->
cell
[
k
].
mnc
);
f1Setup
->
cell
[
k
].
mnc_digit_length
=
*
PLMNParamList
.
paramarray
[
0
][
GNB_MNC_DIGIT_LENGTH
].
u8ptr
;
LOG_I
(
GNB_APP
,
"F1AP: mnc_digit_length[%d] %d
\n
"
,
k
,
f1Setup
->
cell
[
k
].
mnc_digit_length
);
AssertFatal
((
f1Setup
->
cell
[
k
].
mnc_digit_length
==
2
)
||
AssertFatal
((
f1Setup
->
cell
[
k
].
mnc_digit_length
==
2
)
||
(
f1Setup
->
cell
[
k
].
mnc_digit_length
==
3
),
(
f1Setup
->
cell
[
k
].
mnc_digit_length
==
3
),
"BAD MNC DIGIT LENGTH %d"
,
"BAD MNC DIGIT LENGTH %d"
,
f1Setup
->
cell
[
k
].
mnc_digit_length
);
f1Setup
->
cell
[
k
].
mnc_digit_length
);
f1Setup
->
cell
[
k
].
nr_cellid
=
(
uint64_t
)
*
(
GNBParamList
.
paramarray
[
i
][
GNB_NRCELLID_IDX
].
u64ptr
);
f1Setup
->
cell
[
k
].
nr_cellid
=
(
uint64_t
)
*
(
GNBParamList
.
paramarray
[
i
][
GNB_NRCELLID_IDX
].
u64ptr
);
LOG_I
(
GNB_APP
,
"F1AP: nr_cellid[%d] %ld
\n
"
,
k
,
f1Setup
->
cell
[
k
].
nr_cellid
);
LOG_I
(
GNB_APP
,
LOG_I
(
GNB_APP
,
"F1AP: CU_ip4_address in DU %s
\n
"
,
RC
.
nrmac
[
k
]
->
eth_params_n
.
remote_addr
);
"F1AP: gNB idx %d gNB_DU_id %ld, gNB_DU_name %s, TAC %d MCC/MNC/length %d/%d/%d cellID %ld
\n
"
,
k
,
f1Setup
->
gNB_DU_id
,
f1Setup
->
gNB_DU_name
,
f1Setup
->
cell
[
k
].
tac
,
f1Setup
->
cell
[
k
].
mcc
,
f1Setup
->
cell
[
k
].
mnc
,
f1Setup
->
cell
[
k
].
mnc_digit_length
,
f1Setup
->
cell
[
k
].
nr_cellid
);
F1AP_DU_REGISTER_REQ
(
msg_p
).
net_config
=
read_DU_IP_config
(
&
RC
.
nrmac
[
k
]
->
eth_params_n
);
F1AP_DU_REGISTER_REQ
(
msg_p
).
net_config
=
read_DU_IP_config
(
&
RC
.
nrmac
[
k
]
->
eth_params_n
);
...
...
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