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
promise
OpenXG-RAN
Commits
a40d90ff
Commit
a40d90ff
authored
Mar 18, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5184
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
071d0349
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+22
-1
No files found.
openair2/ENB_APP/enb_config.c
View file @
a40d90ff
...
...
@@ -40,6 +40,7 @@ Address : EURECOM,
#include <string.h>
#include <libconfig.h>
#include "log.h"
#include "assertions.h"
#include "enb_config.h"
#if defined(OAI_EMU)
...
...
@@ -133,6 +134,25 @@ static const eutra_band_t eutra_bands[] =
static
Enb_properties_array_t
enb_properties
;
static
void
enb_config_display
(
void
)
{
int
i
;
printf
(
"
\n
----------------------------------------------------------------------
\n
"
);
printf
(
" ENB CONFIG FILE CONTENT LOADED (TBC):
\n
"
);
printf
(
"----------------------------------------------------------------------
\n
"
);
for
(
i
=
0
;
i
<
enb_properties
.
number
;
i
++
)
{
printf
(
"ENB CONFIG no %u:
\n\n
"
,
i
);
printf
(
"
\t
eNB name:
\t
%s:
\n
"
,
enb_properties
.
properties
[
i
]
->
eNB_name
);
printf
(
"
\t
eNB ID:
\t
%u:
\n
"
,
enb_properties
.
properties
[
i
]
->
eNB_id
);
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
);
printf
(
"
\n
--------------------------------------------------------
\n
"
);
}
}
static
int
enb_check_band_frequencies
(
char
*
lib_config_file_name_pP
,
int
enb_properties_index
,
int16_t
band
,
...
...
@@ -475,7 +495,7 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
AssertFatal
(
parse_errors
==
0
,
"Failed to parse eNB configuration file %s, found %d error%s !
\n
"
,
lib_config_file_name_pP
,
parse_errors
,
parse_errors
>
1
?
"s"
:
""
);
enb_config_display
();
return
&
enb_properties
;
}
...
...
@@ -483,3 +503,4 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
const
Enb_properties_array_t
*
enb_config_get
(
void
)
{
return
&
enb_properties
;
}
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