mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
76 lines
2.2 KiB
C
76 lines
2.2 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
# include "intertask_interface.h"
|
|
# include "create_tasks.h"
|
|
# include "common/utils/LOG/log.h"
|
|
# include "executables/lte-softmodem.h"
|
|
# include "common/ran_context.h"
|
|
|
|
#include "sctp_eNB_task.h"
|
|
#include "x2ap_eNB.h"
|
|
#include "s1ap_eNB.h"
|
|
#include "openair3/ocp-gtpu/gtp_itf.h"
|
|
#include "m2ap_eNB.h"
|
|
#include "m2ap_MCE.h"
|
|
#include "m3ap_MME.h"
|
|
#include "m3ap_MCE.h"
|
|
#include "RRC/LTE/rrc_defs.h"
|
|
# include "enb_app.h"
|
|
# include "mce_app.h"
|
|
# include "mme_app.h"
|
|
|
|
#include <openair3/ocp-gtpu/gtp_itf.h>
|
|
//extern RAN_CONTEXT_t RC;
|
|
|
|
int create_tasks_mbms(uint32_t enb_nb) {
|
|
// LOG_D(ENB_APP, "%s(enb_nb:%d\n", __FUNCTION__, enb_nb);
|
|
AssertFatal(!get_softmodem_params()->nsa, "In NSA mode\n");
|
|
int rc;
|
|
|
|
if (enb_nb == 0) return 0;
|
|
|
|
if (IS_SOFTMODEM_NOS1) {
|
|
rc = itti_create_task(TASK_SCTP, sctp_eNB_task, NULL);
|
|
AssertFatal(rc >= 0, "Create task for SCTP failed\n");
|
|
}
|
|
|
|
LOG_I(MME_APP, "Creating MME_APP eNB Task\n");
|
|
rc = itti_create_task (TASK_MME_APP, MME_app_task, NULL);
|
|
AssertFatal(rc >= 0, "Create task for MME APP failed\n");
|
|
|
|
if (is_m3ap_MME_enabled()) {
|
|
rc = itti_create_task(TASK_M3AP_MME, m3ap_MME_task, NULL);
|
|
AssertFatal(rc >= 0, "Create task for M3AP MME failed\n");
|
|
}
|
|
|
|
LOG_I(MCE_APP, "Creating MCE_APP eNB Task\n");
|
|
rc = itti_create_task (TASK_MCE_APP, MCE_app_task, NULL);
|
|
AssertFatal(rc >= 0, "Create task for MCE APP failed\n");
|
|
|
|
if (IS_SOFTMODEM_NOS1) {
|
|
// rc = itti_create_task(TASK_SCTP, sctp_eNB_task, NULL);
|
|
// AssertFatal(rc >= 0, "Create task for SCTP failed\n");
|
|
rc = itti_create_task(TASK_GTPV1_U, gtpv1uTask, NULL);
|
|
AssertFatal(rc >= 0, "Create task for GTPV1U failed\n");
|
|
}
|
|
|
|
if (is_m3ap_MCE_enabled()) {
|
|
rc = itti_create_task(TASK_M3AP_MCE, m3ap_MCE_task, NULL);
|
|
AssertFatal(rc >= 0, "Create task for M3AP MCE failed\n");
|
|
|
|
}
|
|
if (is_m2ap_MCE_enabled()) {
|
|
rc = itti_create_task(TASK_M2AP_MCE, m2ap_MCE_task, NULL);
|
|
AssertFatal(rc >= 0, "Create task for M2AP failed\n");
|
|
}
|
|
|
|
if (is_m2ap_eNB_enabled()) {
|
|
rc = itti_create_task(TASK_M2AP_ENB, m2ap_eNB_task, NULL);
|
|
AssertFatal(rc >= 0, "Create task for M2AP failed\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|