|
|
|
@ -70,6 +70,14 @@ int enb::init(const all_args_t& args_)
|
|
|
|
|
return SRSRAN_ERROR;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Only init Stack if both radio and PHY could be initialized
|
|
|
|
|
if (ret == SRSRAN_SUCCESS) {
|
|
|
|
|
if (lte_stack->init(args.stack, rrc_cfg, lte_phy.get()) != SRSRAN_SUCCESS) {
|
|
|
|
|
srsran::console("Error initializing stack.\n");
|
|
|
|
|
ret = SRSRAN_ERROR;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Init Radio
|
|
|
|
|
if (lte_radio->init(args.rf, lte_phy.get())) {
|
|
|
|
|
srsran::console("Error initializing radio.\n");
|
|
|
|
@ -84,14 +92,6 @@ int enb::init(const all_args_t& args_)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Only init Stack if both radio and PHY could be initialized
|
|
|
|
|
if (ret == SRSRAN_SUCCESS) {
|
|
|
|
|
if (lte_stack->init(args.stack, rrc_cfg, lte_phy.get()) != SRSRAN_SUCCESS) {
|
|
|
|
|
srsran::console("Error initializing stack.\n");
|
|
|
|
|
ret = SRSRAN_ERROR;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stack = std::move(lte_stack);
|
|
|
|
|
phy = std::move(lte_phy);
|
|
|
|
|
radio = std::move(lte_radio);
|
|
|
|
|