|
|
@ -27,7 +27,7 @@
|
|
|
|
#include "srslte/srslte.h"
|
|
|
|
#include "srslte/srslte.h"
|
|
|
|
#include "srsue/hdr/phy/phy.h"
|
|
|
|
#include "srsue/hdr/phy/phy.h"
|
|
|
|
#include "srsue/hdr/stack/ue_stack_lte.h"
|
|
|
|
#include "srsue/hdr/stack/ue_stack_lte.h"
|
|
|
|
#ifdef ENABLE_5GNR
|
|
|
|
#ifdef HAVE_5GNR
|
|
|
|
#include "srsue/hdr/phy/vnf_phy_nr.h"
|
|
|
|
#include "srsue/hdr/phy/vnf_phy_nr.h"
|
|
|
|
#include "srsue/hdr/stack/ue_stack_nr.h"
|
|
|
|
#include "srsue/hdr/stack/ue_stack_nr.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -122,7 +122,8 @@ int ue::init(const all_args_t& args_, srslte::logger* logger_)
|
|
|
|
phy = std::move(lte_phy);
|
|
|
|
phy = std::move(lte_phy);
|
|
|
|
radio = std::move(lte_radio);
|
|
|
|
radio = std::move(lte_radio);
|
|
|
|
} else if (args.stack.type == "nr") {
|
|
|
|
} else if (args.stack.type == "nr") {
|
|
|
|
#ifdef ENABLE_5GNR
|
|
|
|
log.info("Initializing NR stack.\n");
|
|
|
|
|
|
|
|
#ifdef HAVE_5GNR
|
|
|
|
std::unique_ptr<srsue::ue_stack_nr> nr_stack(new srsue::ue_stack_nr(logger));
|
|
|
|
std::unique_ptr<srsue::ue_stack_nr> nr_stack(new srsue::ue_stack_nr(logger));
|
|
|
|
std::unique_ptr<srslte::radio_null> nr_radio(new srslte::radio_null(logger));
|
|
|
|
std::unique_ptr<srslte::radio_null> nr_radio(new srslte::radio_null(logger));
|
|
|
|
std::unique_ptr<srsue::vnf_phy_nr> nr_phy(new srsue::vnf_phy_nr(logger));
|
|
|
|
std::unique_ptr<srsue::vnf_phy_nr> nr_phy(new srsue::vnf_phy_nr(logger));
|
|
|
@ -155,7 +156,8 @@ int ue::init(const all_args_t& args_, srslte::logger* logger_)
|
|
|
|
phy = std::move(nr_phy);
|
|
|
|
phy = std::move(nr_phy);
|
|
|
|
radio = std::move(nr_radio);
|
|
|
|
radio = std::move(nr_radio);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
log.error("5G NR stack not compiled. Please, activate CMAKE ENABLE_5GNR flag.\n");
|
|
|
|
log.console("ERROR: 5G NR stack not compiled. Please, activate CMAKE HAVE_5GNR flag.\n");
|
|
|
|
|
|
|
|
log.error("5G NR stack not compiled. Please, activate CMAKE HAVE_5GNR flag.\n");
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
log.console("Invalid stack type %s. Supported values are [lte].\n", args.stack.type.c_str());
|
|
|
|
log.console("Invalid stack type %s. Supported values are [lte].\n", args.stack.type.c_str());
|
|
|
|