diff --git a/srsue/hdr/phy/phy.h b/srsue/hdr/phy/phy.h index 48878a2aa..e6641eda5 100644 --- a/srsue/hdr/phy/phy.h +++ b/srsue/hdr/phy/phy.h @@ -65,7 +65,6 @@ public: void enable_pregen_signals(bool enable); void set_earfcn(std::vector earfcns); - void force_freq(float dl_freq, float ul_freq); void radio_overflow(); void radio_failure(); diff --git a/srsue/hdr/phy/ue_lte_phy_base.h b/srsue/hdr/phy/ue_lte_phy_base.h index e2b775c30..83402fcb1 100644 --- a/srsue/hdr/phy/ue_lte_phy_base.h +++ b/srsue/hdr/phy/ue_lte_phy_base.h @@ -47,7 +47,6 @@ public: virtual void stop() = 0; virtual void set_earfcn(std::vector earfcns) = 0; - virtual void force_freq(float dl_freq, float ul_freq) = 0; virtual void wait_initialize() = 0; virtual void start_plot() = 0; diff --git a/srsue/hdr/phy/ue_phy_base.h b/srsue/hdr/phy/ue_phy_base.h index 57dc44740..5d4fcf79d 100644 --- a/srsue/hdr/phy/ue_phy_base.h +++ b/srsue/hdr/phy/ue_phy_base.h @@ -48,7 +48,6 @@ public: virtual void stop() = 0; virtual void set_earfcn(std::vector earfcns) = 0; - virtual void force_freq(float dl_freq, float ul_freq) = 0; virtual void wait_initialize() = 0; virtual void start_plot() = 0; diff --git a/srsue/src/phy/phy.cc b/srsue/src/phy/phy.cc index 32d807705..22c9bbb79 100644 --- a/srsue/src/phy/phy.cc +++ b/srsue/src/phy/phy.cc @@ -133,6 +133,11 @@ int phy::init(const phy_args_t& args_, srslte::logger* logger_) set_earfcn(args.earfcn_list); + // Force frequency if given as argument + if (args.dl_freq > 0 && args.ul_freq > 0) { + sfsync.force_freq(args.dl_freq, args.ul_freq); + } + // Create array of pointers to phy_logs for (int i = 0; i < args.nof_phy_threads; i++) { srslte::log_filter* mylog = new srslte::log_filter; @@ -406,11 +411,6 @@ void phy::set_earfcn(vector< uint32_t > earfcns) sfsync.set_earfcn(earfcns); } -void phy::force_freq(float dl_freq, float ul_freq) -{ - sfsync.force_freq(dl_freq, ul_freq); -} - void phy::set_rar_grant(uint8_t grant_payload[SRSLTE_RAR_GRANT_LEN], uint16_t rnti) { common.set_rar_grant(grant_payload, rnti, tdd_config);