|
|
@ -266,7 +266,7 @@ private:
|
|
|
|
static constexpr uint32_t cfi = 2;
|
|
|
|
static constexpr uint32_t cfi = 2;
|
|
|
|
|
|
|
|
|
|
|
|
srsenb::phy_cell_cfg_list_t phy_cell_cfg;
|
|
|
|
srsenb::phy_cell_cfg_list_t phy_cell_cfg;
|
|
|
|
srsenb::phy_interface_rrc_lte::phy_rrc_dedicated_list_t phy_rrc;
|
|
|
|
srsenb::phy_interface_rrc_lte::phy_rrc_cfg_list_t phy_rrc;
|
|
|
|
std::mutex mutex;
|
|
|
|
std::mutex mutex;
|
|
|
|
std::condition_variable cvar;
|
|
|
|
std::condition_variable cvar;
|
|
|
|
srslte::log_filter log_h;
|
|
|
|
srslte::log_filter log_h;
|
|
|
@ -330,7 +330,7 @@ private:
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit dummy_stack(const srsenb::phy_cfg_t& phy_cfg_,
|
|
|
|
explicit dummy_stack(const srsenb::phy_cfg_t& phy_cfg_,
|
|
|
|
const srsenb::phy_interface_rrc_lte::phy_rrc_dedicated_list_t& phy_rrc_,
|
|
|
|
const srsenb::phy_interface_rrc_lte::phy_rrc_cfg_list_t& phy_rrc_,
|
|
|
|
const std::string& log_level,
|
|
|
|
const std::string& log_level,
|
|
|
|
uint16_t rnti_) :
|
|
|
|
uint16_t rnti_) :
|
|
|
|
log_h("STACK"),
|
|
|
|
log_h("STACK"),
|
|
|
@ -764,7 +764,7 @@ private:
|
|
|
|
srslte_ul_sf_cfg_t sf_ul_cfg = {};
|
|
|
|
srslte_ul_sf_cfg_t sf_ul_cfg = {};
|
|
|
|
srslte_softbuffer_tx_t softbuffer_tx = {};
|
|
|
|
srslte_softbuffer_tx_t softbuffer_tx = {};
|
|
|
|
uint8_t* tx_data = nullptr;
|
|
|
|
uint8_t* tx_data = nullptr;
|
|
|
|
srsenb::phy_interface_rrc_lte::phy_rrc_dedicated_list_t phy_rrc_cfg = {};
|
|
|
|
srsenb::phy_interface_rrc_lte::phy_rrc_cfg_list_t phy_rrc_cfg = {};
|
|
|
|
srslte::log_filter log_h;
|
|
|
|
srslte::log_filter log_h;
|
|
|
|
std::map<uint32_t, uint32_t> last_ri = {};
|
|
|
|
std::map<uint32_t, uint32_t> last_ri = {};
|
|
|
|
|
|
|
|
|
|
|
@ -888,7 +888,7 @@ public:
|
|
|
|
srslte_softbuffer_tx_free(&softbuffer_tx);
|
|
|
|
srslte_softbuffer_tx_free(&softbuffer_tx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void reconfigure(const srsenb::phy_interface_rrc_lte::phy_rrc_dedicated_list_t& phy_rrc_cfg_)
|
|
|
|
void reconfigure(const srsenb::phy_interface_rrc_lte::phy_rrc_cfg_list_t& phy_rrc_cfg_)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Copy new configuration
|
|
|
|
// Copy new configuration
|
|
|
|
phy_rrc_cfg = phy_rrc_cfg_;
|
|
|
|
phy_rrc_cfg = phy_rrc_cfg_;
|
|
|
@ -1149,7 +1149,7 @@ private:
|
|
|
|
args_t args = {}; ///< Test arguments
|
|
|
|
args_t args = {}; ///< Test arguments
|
|
|
|
srsenb::phy_args_t phy_args; ///< PHY arguments
|
|
|
|
srsenb::phy_args_t phy_args; ///< PHY arguments
|
|
|
|
srsenb::phy_cfg_t phy_cfg; ///< eNb Cell/Carrier configuration
|
|
|
|
srsenb::phy_cfg_t phy_cfg; ///< eNb Cell/Carrier configuration
|
|
|
|
srsenb::phy_interface_rrc_lte::phy_rrc_dedicated_list_t phy_rrc_cfg; ///< UE PHY configuration
|
|
|
|
srsenb::phy_interface_rrc_lte::phy_rrc_cfg_list_t phy_rrc_cfg; ///< UE PHY configuration
|
|
|
|
|
|
|
|
|
|
|
|
uint64_t tti_counter = 0;
|
|
|
|
uint64_t tti_counter = 0;
|
|
|
|
typedef enum {
|
|
|
|
typedef enum {
|
|
|
@ -1260,8 +1260,8 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
/// Initiate eNb PHY with the given RNTI
|
|
|
|
/// Initiate eNb PHY with the given RNTI
|
|
|
|
enb_phy->init(phy_args, phy_cfg, radio.get(), stack.get());
|
|
|
|
enb_phy->init(phy_args, phy_cfg, radio.get(), stack.get());
|
|
|
|
enb_phy->set_config_dedicated(args.rnti, phy_rrc_cfg);
|
|
|
|
enb_phy->set_config(args.rnti, phy_rrc_cfg);
|
|
|
|
enb_phy->complete_config_dedicated(args.rnti);
|
|
|
|
enb_phy->complete_config(args.rnti);
|
|
|
|
enb_phy->set_activation_deactivation_scell(args.rnti, activation);
|
|
|
|
enb_phy->set_activation_deactivation_scell(args.rnti, activation);
|
|
|
|
|
|
|
|
|
|
|
|
/// Create dummy UE instance
|
|
|
|
/// Create dummy UE instance
|
|
|
@ -1319,8 +1319,8 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Reconfigure eNb PHY
|
|
|
|
// Reconfigure eNb PHY
|
|
|
|
enb_phy->set_config_dedicated(args.rnti, phy_rrc_cfg);
|
|
|
|
enb_phy->set_config(args.rnti, phy_rrc_cfg);
|
|
|
|
enb_phy->complete_config_dedicated(args.rnti);
|
|
|
|
enb_phy->complete_config(args.rnti);
|
|
|
|
enb_phy->set_activation_deactivation_scell(args.rnti, activation);
|
|
|
|
enb_phy->set_activation_deactivation_scell(args.rnti, activation);
|
|
|
|
|
|
|
|
|
|
|
|
// Reconfigure UE PHY
|
|
|
|
// Reconfigure UE PHY
|
|
|
|