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()