mirror of https://github.com/PentHertz/srsLTE.git
ue_phy_test: fix test
This commit is contained in:
parent
98a91a2057
commit
f43e82a8a6
|
@ -12,10 +12,10 @@
|
|||
|
||||
#include <srsran/common/test_common.h>
|
||||
#include <srsran/common/threads.h>
|
||||
#include <srsran/common/tsan_options.h>
|
||||
#include <srsran/interfaces/ue_interfaces.h>
|
||||
#include <srsran/phy/utils/random.h>
|
||||
#include <srsran/srslog/srslog.h>
|
||||
#include <srsran/srsran.h>
|
||||
#include <srsue/hdr/phy/phy.h>
|
||||
|
||||
#define CALLBACK(NAME, ...) \
|
||||
|
@ -375,6 +375,9 @@ public:
|
|||
phy = std::unique_ptr<srsue::phy>(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()
|
||||
|
|
Loading…
Reference in New Issue