From 6c6fa11fd8680a5dbab1074f3730839ad81d2032 Mon Sep 17 00:00:00 2001 From: francescomani Date: Mon, 24 Mar 2025 16:53:06 +0100 Subject: [PATCH] do not compile full LTE L2 eNB in nr-softmodem (at the cost of a small dummy file) --- CMakeLists.txt | 4 +- openair2/LAYER2/MAC/dummy_functions.c | 61 +++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 openair2/LAYER2/MAC/dummy_functions.c diff --git a/CMakeLists.txt b/CMakeLists.txt index ac13632407..ad84b0ca02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1335,8 +1335,8 @@ if(E2_AGENT) endif() add_library(L2_LTE_NR - ${L2_RRC_SRC} - ${MAC_SRC} + # temporary solution until 4G/5G code completely untangled (as evidenced by deletion of the following file) + ${MAC_DIR}/dummy_functions.c ${ENB_APP_SRC} ) diff --git a/openair2/LAYER2/MAC/dummy_functions.c b/openair2/LAYER2/MAC/dummy_functions.c new file mode 100644 index 0000000000..adc73d0dfa --- /dev/null +++ b/openair2/LAYER2/MAC/dummy_functions.c @@ -0,0 +1,61 @@ +/* + * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The OpenAirInterface Software Alliance licenses this file to You under + * the OAI Public License, Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.openairinterface.org/?page_id=698 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *------------------------------------------------------------------------------- + * For more information about the OpenAirInterface (OAI) Software Alliance: + * contact@openairinterface.org + */ + +#include "openair2/LAYER2/MAC/mac_proto.h" + +// TODO temporary solution +// to be removed once separation between NR and LTE is achieved + +int sf_ahead = 4; +SCHEDULER_MODES global_scheduler_mode; + +int rrc_mac_config_req_eNB(const module_id_t Mod_idP, const rrc_mac_config_req_eNB_t *param) +{ + return 0; +} + +void mac_top_init_eNB(void) +{ +} + +uint32_t to_earfcn_UL(int eutra_bandP, long long int ul_CarrierFreq, uint32_t bw) +{ + return 0; +} + +int32_t get_uldl_offset(int nr_bandP) { + return 0; +} + +IF_Module_t *IF_Module_init(int Mod_id) +{ + return NULL; +} + +uint32_t from_earfcn(int eutra_bandP, uint32_t dl_earfcn) +{ + return 0; +} + +uint32_t to_earfcn_DL(int eutra_bandP, long long int dl_CarrierFreq, uint32_t bw) +{ + return 0; +}