Commit 44b29d04 authored by Robert Schmidt's avatar Robert Schmidt

Read config before starting FlexRAN for node_type and ID

parent 0efde021
...@@ -1048,6 +1048,10 @@ int main( int argc, char **argv ) ...@@ -1048,6 +1048,10 @@ int main( int argc, char **argv )
LOG_I(HW, "CPU Affinity of main() function is... %s\n", cpu_affinity); LOG_I(HW, "CPU Affinity of main() function is... %s\n", cpu_affinity);
#endif #endif
/* Read configuration */
if (RC.nb_inst > 0)
read_config_and_init();
/* Start the agent. If it is turned off in the configuration, it won't start */ /* Start the agent. If it is turned off in the configuration, it won't start */
RCconfig_flexran(); RCconfig_flexran();
for (i = 0; i < RC.nb_inst; i++) { for (i = 0; i < RC.nb_inst; i++) {
...@@ -1055,7 +1059,6 @@ int main( int argc, char **argv ) ...@@ -1055,7 +1059,6 @@ int main( int argc, char **argv )
} }
if (RC.nb_inst > 0) { if (RC.nb_inst > 0) {
read_config_and_init();
if (create_tasks(1) < 0) { if (create_tasks(1) < 0) {
printf("cannot create ITTI tasks\n"); printf("cannot create ITTI tasks\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment