From cbaba9c0bdd43c152a6221a09de3cef8fdb7d020 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 27 Mar 2020 07:41:27 +0100 Subject: [PATCH] Fix RRC and TTCN3 test --- srsue/test/ttcn3/hdr/lte_ttcn3_phy.h | 2 +- srsue/test/ttcn3/src/lte_ttcn3_phy.cc | 2 +- srsue/test/upper/rrc_meas_test.cc | 22 +++++++++++----------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/srsue/test/ttcn3/hdr/lte_ttcn3_phy.h b/srsue/test/ttcn3/hdr/lte_ttcn3_phy.h index 0ba81211f..c6f0fadd1 100644 --- a/srsue/test/ttcn3/hdr/lte_ttcn3_phy.h +++ b/srsue/test/ttcn3/hdr/lte_ttcn3_phy.h @@ -87,7 +87,7 @@ public: // Cell search and selection procedures cell_search_ret_t cell_search(phy_cell_t* found_cell); - bool cell_select(const phy_cell_t* cell) override; + bool cell_select(const phy_cell_t* cell, float cfo) override; bool cell_is_camping(); void reset(); diff --git a/srsue/test/ttcn3/src/lte_ttcn3_phy.cc b/srsue/test/ttcn3/src/lte_ttcn3_phy.cc index 99e118a3b..11b18001b 100644 --- a/srsue/test/ttcn3/src/lte_ttcn3_phy.cc +++ b/srsue/test/ttcn3/src/lte_ttcn3_phy.cc @@ -151,7 +151,7 @@ phy_interface_rrc_lte::cell_search_ret_t lte_ttcn3_phy::cell_search(phy_cell_t* return ret; }; -bool lte_ttcn3_phy::cell_select(const phy_cell_t* rrc_cell) +bool lte_ttcn3_phy::cell_select(const phy_cell_t* rrc_cell, float cfo) { // try to find RRC cell in current cell map for (auto& cell : cells) { diff --git a/srsue/test/upper/rrc_meas_test.cc b/srsue/test/upper/rrc_meas_test.cc index 667a50da4..1587d6136 100644 --- a/srsue/test/upper/rrc_meas_test.cc +++ b/srsue/test/upper/rrc_meas_test.cc @@ -55,7 +55,7 @@ public: void set_config_mbsfn_mcch(const srslte::mcch_msg_t& mcch) override {} cell_search_ret_t cell_search(phy_cell_t* cell) override { return {}; } bool cell_is_camping() override { return false; } - bool cell_select(const phy_cell_t* cell = nullptr) override { return false; } + bool cell_select(const phy_cell_t* cell = nullptr, float cfo = 0.0f) override { return false; } void reset() override {} void enable_pregen_signals(bool enable) override {} @@ -492,18 +492,18 @@ int meas_obj_test() log1->info("Test7: PHY finds new neighbours in frequency 1 and 2, check RRC instructs to search them\n"); std::vector phy_meas = {}; - phy_meas.push_back({0, 0, 1, 31}); - phy_meas.push_back({-1, 0, 1, 32}); - phy_meas.push_back({-2, 0, 1, 33}); - phy_meas.push_back({-3, 0, 1, 34}); + phy_meas.push_back({0, 0, 0.0f, 1, 31}); + phy_meas.push_back({-1, 0, 0.0f, 1, 32}); + phy_meas.push_back({-2, 0, 0.0f, 1, 33}); + phy_meas.push_back({-3, 0, 0.0f, 1, 34}); rrctest.new_cell_meas(phy_meas); rrctest.run_tti(1); phy_meas = {}; - phy_meas.push_back({-4, 0, 1, 35}); - phy_meas.push_back({-5, 0, 1, 36}); - phy_meas.push_back({-6, 0, 1, 37}); - phy_meas.push_back({1, 0, 1, 30}); - phy_meas.push_back({0, 0, 2, 31}); + phy_meas.push_back({-4, 0, 0.0f, 1, 35}); + phy_meas.push_back({-5, 0, 0.0f, 1, 36}); + phy_meas.push_back({-6, 0, 0.0f, 1, 37}); + phy_meas.push_back({1, 0, 0.0f, 1, 30}); + phy_meas.push_back({0, 0, 0.0f, 2, 31}); rrctest.new_cell_meas(phy_meas); rrctest.run_tti(1); @@ -624,7 +624,7 @@ void send_report(rrc_test& rrctest, if (earfcn.size() == pci.size()) { e = earfcn[i]; } - phy_meas.push_back({r, -5, e, pci[i]}); + phy_meas.push_back({r, -5, 0.0f, e, pci[i]}); } rrctest.new_cell_meas(phy_meas); rrctest.run_tti(1);