From dc07c752b3e463444335783ff7c8c2b065f4175f Mon Sep 17 00:00:00 2001 From: winckel Date: Wed, 11 Dec 2013 14:33:50 +0000 Subject: [PATCH] Added transmission of an INITIALIZE_MESSAGE to all TASK_NAS_UE tasks when eNB is registered to MME. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4667 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/ENB_APP/enb_app.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openair2/ENB_APP/enb_app.c b/openair2/ENB_APP/enb_app.c index 40034e3109..e1702a8b44 100644 --- a/openair2/ENB_APP/enb_app.c +++ b/openair2/ENB_APP/enb_app.c @@ -46,6 +46,8 @@ # include "s1ap_eNB.h" # include "sctp_eNB_task.h" # endif + +extern unsigned char NB_eNB_INST; #endif #if defined(ENABLE_ITTI) @@ -203,6 +205,16 @@ void *eNB_app_task(void *args_p) msg_init_p = itti_alloc_new_message (TASK_ENB_APP, INITIALIZE_MESSAGE); itti_send_msg_to_task (TASK_L2L1, INSTANCE_DEFAULT, msg_init_p); + +# if defined(OAI_EMU) + /* If also inform all NAS UE tasks */ + for (instance = NB_eNB_INST + oai_emulation.info.first_ue_local; + instance < (NB_eNB_INST + oai_emulation.info.first_ue_local + oai_emulation.info.nb_ue_local); instance ++) + { + msg_init_p = itti_alloc_new_message (TASK_ENB_APP, INITIALIZE_MESSAGE); + itti_send_msg_to_task (TASK_NAS_UE, instance, msg_init_p); + } +# endif } else {