From 3e9590fd13cafa5f9a2ff647a74c354fdc5b7f49 Mon Sep 17 00:00:00 2001 From: Fabian Eckermann Date: Tue, 26 Oct 2021 16:11:14 +0200 Subject: [PATCH] Initialize variable. --- srsenb/test/mac/nr/sched_nr_rar_test.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srsenb/test/mac/nr/sched_nr_rar_test.cc b/srsenb/test/mac/nr/sched_nr_rar_test.cc index 27622c318..f7a6a4227 100644 --- a/srsenb/test/mac/nr/sched_nr_rar_test.cc +++ b/srsenb/test/mac/nr/sched_nr_rar_test.cc @@ -83,10 +83,11 @@ void test_single_prach() // A PRACH arrives... sched_nr_interface::rar_info_t rainfo{}; - rainfo.preamble_idx = 10; - rainfo.temp_crnti = rnti; - rainfo.prach_slot = prach_slot; - rainfo.msg3_size = 7; + rainfo.ofdm_symbol_idx = 0; + rainfo.preamble_idx = 10; + rainfo.temp_crnti = rnti; + rainfo.prach_slot = prach_slot; + rainfo.msg3_size = 7; TESTASSERT_SUCCESS(rasched.dl_rach_info(rainfo)); uint16_t ra_rnti = 1 + rainfo.ofdm_symbol_idx + 14 * rainfo.prach_slot.slot_idx() + 14 * 80 * rainfo.freq_idx;