Commit 6198a673 authored by Robert Schmidt's avatar Robert Schmidt
Browse files

correctly instantiate flexran agent

parent ab3f9dad
...@@ -1268,7 +1268,9 @@ int main( int argc, char **argv ) ...@@ -1268,7 +1268,9 @@ int main( int argc, char **argv )
pthread_mutex_init(&mutex_node_ctrl, NULL); pthread_mutex_init(&mutex_node_ctrl, NULL);
pthread_cond_init(&cond_node_ctrl, NULL); pthread_cond_init(&cond_node_ctrl, NULL);
for (i = 0; i < NB_eNB_INST; i++) { /* create RC.flexran data structure */
RCconfig_flexran();
for (i = 0; i < RC.nb_L1_inst; i++) {
flexran_agent_start(i); flexran_agent_start(i);
} }
...@@ -1279,11 +1281,12 @@ int main( int argc, char **argv ) ...@@ -1279,11 +1281,12 @@ int main( int argc, char **argv )
pthread_mutex_unlock(&mutex_node_ctrl); pthread_mutex_unlock(&mutex_node_ctrl);
/* reconfigure eNB in case FlexRAN controller applied changes */ /* reconfigure eNB in case FlexRAN controller applied changes */
for (i=0; i < NB_eNB_INST; i++){ /* TODO needs to be done? */
LOG_I(ENB_APP, "Reconfigure eNB module %d and FlexRAN eNB variables\n", i); //for (i=0; i < NB_eNB_INST; i++){
reconfigure_enb_params(i); // LOG_I(ENB_APP, "Reconfigure eNB module %d and FlexRAN eNB variables\n", i);
flexran_set_enb_vars(i, RAN_LTE_OAI); // reconfigure_enb_params(i);
} // flexran_set_enb_vars(i, RAN_LTE_OAI);
//}
#endif #endif
if (UE_flag==1) { if (UE_flag==1) {
......
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