Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shweta Shrivastava
openairinterface5G
Commits
a40d90ff
Commit
a40d90ff
authored
11 years ago
by
gauthier
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5184
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
071d0349
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/ENB_APP/enb_config.c
+22
-1
22 additions, 1 deletion
openair2/ENB_APP/enb_config.c
with
22 additions
and
1 deletion
openair2/ENB_APP/enb_config.c
+
22
−
1
View file @
a40d90ff
...
@@ -40,6 +40,7 @@ Address : EURECOM,
...
@@ -40,6 +40,7 @@ Address : EURECOM,
#include
<string.h>
#include
<string.h>
#include
<libconfig.h>
#include
<libconfig.h>
#include
"log.h"
#include
"assertions.h"
#include
"assertions.h"
#include
"enb_config.h"
#include
"enb_config.h"
#if defined(OAI_EMU)
#if defined(OAI_EMU)
...
@@ -133,6 +134,25 @@ static const eutra_band_t eutra_bands[] =
...
@@ -133,6 +134,25 @@ static const eutra_band_t eutra_bands[] =
static
Enb_properties_array_t
enb_properties
;
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
,
static
int
enb_check_band_frequencies
(
char
*
lib_config_file_name_pP
,
int
enb_properties_index
,
int
enb_properties_index
,
int16_t
band
,
int16_t
band
,
...
@@ -475,7 +495,7 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
...
@@ -475,7 +495,7 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
AssertFatal
(
parse_errors
==
0
,
AssertFatal
(
parse_errors
==
0
,
"Failed to parse eNB configuration file %s, found %d error%s !
\n
"
,
"Failed to parse eNB configuration file %s, found %d error%s !
\n
"
,
lib_config_file_name_pP
,
parse_errors
,
parse_errors
>
1
?
"s"
:
""
);
lib_config_file_name_pP
,
parse_errors
,
parse_errors
>
1
?
"s"
:
""
);
enb_config_display
();
return
&
enb_properties
;
return
&
enb_properties
;
}
}
...
@@ -483,3 +503,4 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
...
@@ -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
)
{
const
Enb_properties_array_t
*
enb_config_get
(
void
)
{
return
&
enb_properties
;
return
&
enb_properties
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment