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
oai
openairinterface5G
Commits
9dbbd0a3
Commit
9dbbd0a3
authored
Oct 02, 2014
by
gauthier
Browse files
To resolv mnc length
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5831
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
f4c0d6e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/ENB_APP/enb_config.c
View file @
9dbbd0a3
...
...
@@ -237,7 +237,10 @@ static void enb_config_display(void) {
printf
(
"
\t
Cell type:
\t
%s:
\n
"
,
enb_properties
.
properties
[
i
]
->
cell_type
==
CELL_MACRO_ENB
?
"CELL_MACRO_ENB"
:
"CELL_HOME_ENB"
);
printf
(
"
\t
TAC:
\t
%u:
\n
"
,
enb_properties
.
properties
[
i
]
->
tac
);
printf
(
"
\t
MCC:
\t
%u:
\n
"
,
enb_properties
.
properties
[
i
]
->
mcc
);
printf
(
"
\t
MNC:
\t
%u:
\n
"
,
enb_properties
.
properties
[
i
]
->
mnc
);
if
(
enb_properties
.
properties
[
i
]
->
mnc_digit_length
==
3
)
printf
(
"
\t
MNC:
\t
%03u:
\n
"
,
enb_properties
.
properties
[
i
]
->
mnc
);
else
printf
(
"
\t
MNC:
\t
%02u:
\n
"
,
enb_properties
.
properties
[
i
]
->
mnc
);
for
(
j
=
0
;
j
<
enb_properties
.
properties
[
i
]
->
nb_cc
;
j
++
)
{
printf
(
"
\t
eutra band for CC %d:
\t
%d:
\n
"
,
j
,
enb_properties
.
properties
[
i
]
->
eutra_band
[
j
]);
...
...
@@ -545,9 +548,13 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
enb_properties
.
properties
[
enb_properties_index
]
->
mcc
=
(
uint16_t
)
atoi
(
mcc
);
enb_properties
.
properties
[
enb_properties_index
]
->
mnc
=
(
uint16_t
)
atoi
(
mnc
);
enb_properties
.
properties
[
enb_properties_index
]
->
mnc_digit_length
=
strlen
(
mnc
);
AssertFatal
((
enb_properties
.
properties
[
enb_properties_index
]
->
mnc_digit_length
==
2
)
||
(
enb_properties
.
properties
[
enb_properties_index
]
->
mnc_digit_length
==
3
),
"BAD MNC DIGIT LENGTH %d"
,
enb_properties
.
properties
[
i
]
->
mnc_digit_length
);
// Parse optional physical parameters
// Parse optional physical parameters
setting_component_carriers
=
config_setting_get_member
(
setting_enb
,
ENB_CONFIG_STRING_COMPONENT_CARRIERS
);
...
...
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