ue_phy_test: fix test

master
Andre Puschmann 4 years ago
parent 98a91a2057
commit f43e82a8a6

@ -12,10 +12,10 @@
#include <srsran/common/test_common.h> #include <srsran/common/test_common.h>
#include <srsran/common/threads.h> #include <srsran/common/threads.h>
#include <srsran/common/tsan_options.h>
#include <srsran/interfaces/ue_interfaces.h> #include <srsran/interfaces/ue_interfaces.h>
#include <srsran/phy/utils/random.h> #include <srsran/phy/utils/random.h>
#include <srsran/srslog/srslog.h> #include <srsran/srslog/srslog.h>
#include <srsran/srsran.h>
#include <srsue/hdr/phy/phy.h> #include <srsue/hdr/phy/phy.h>
#define CALLBACK(NAME, ...) \ #define CALLBACK(NAME, ...) \
@ -375,6 +375,9 @@ public:
phy = std::unique_ptr<srsue::phy>(new srsue::phy); phy = std::unique_ptr<srsue::phy>(new srsue::phy);
phy->init(phy_args, &stack, &radio); phy->init(phy_args, &stack, &radio);
// Wait PHY init to end
phy->wait_initialize();
// Initialise DL baseband buffers // Initialise DL baseband buffers
for (uint32_t i = 0; i < cell.nof_ports; i++) { for (uint32_t i = 0; i < cell.nof_ports; i++) {
enb_dl_buffer[i] = srsran_vec_cf_malloc(sf_len); enb_dl_buffer[i] = srsran_vec_cf_malloc(sf_len);
@ -386,9 +389,6 @@ public:
// Initialise eNb DL // Initialise eNb DL
srsran_enb_dl_init(&enb_dl, enb_dl_buffer, SRSRAN_MAX_PRB); srsran_enb_dl_init(&enb_dl, enb_dl_buffer, SRSRAN_MAX_PRB);
srsran_enb_dl_set_cell(&enb_dl, cell); srsran_enb_dl_set_cell(&enb_dl, cell);
// Wait PHY init to end
phy->wait_initialize();
} }
~phy_test_bench() ~phy_test_bench()

Loading…
Cancel
Save