From f43e82a8a695f011c92c89c3daa8917734cc6228 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 27 May 2021 15:27:48 +0200 Subject: [PATCH] ue_phy_test: fix test --- srsue/test/phy/ue_phy_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srsue/test/phy/ue_phy_test.cc b/srsue/test/phy/ue_phy_test.cc index 83f3e98f3..b2e4881c6 100644 --- a/srsue/test/phy/ue_phy_test.cc +++ b/srsue/test/phy/ue_phy_test.cc @@ -12,10 +12,10 @@ #include #include +#include #include #include #include -#include #include #define CALLBACK(NAME, ...) \ @@ -375,6 +375,9 @@ public: phy = std::unique_ptr(new srsue::phy); phy->init(phy_args, &stack, &radio); + // Wait PHY init to end + phy->wait_initialize(); + // Initialise DL baseband buffers for (uint32_t i = 0; i < cell.nof_ports; i++) { enb_dl_buffer[i] = srsran_vec_cf_malloc(sf_len); @@ -386,9 +389,6 @@ public: // Initialise eNb DL srsran_enb_dl_init(&enb_dl, enb_dl_buffer, SRSRAN_MAX_PRB); srsran_enb_dl_set_cell(&enb_dl, cell); - - // Wait PHY init to end - phy->wait_initialize(); } ~phy_test_bench()