correctly instantiate flexran agent
This commit is contained in:
@@ -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 )
|
|||||||
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user