mirror of https://github.com/pvnis/srsRAN_4G.git
sched,nr: fix RAR DCI values and extended RAR test
parent
2b114cb7b9
commit
3d810bc88a
@ -0,0 +1,28 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* \section COPYRIGHT
|
||||||
|
*
|
||||||
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||||||
|
*
|
||||||
|
* By using this file, you agree to the terms and conditions set
|
||||||
|
* forth in the LICENSE file which can be found at the top level of
|
||||||
|
* the distribution.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "sched_nr_common_test.h"
|
||||||
|
#include "srsran/support/srsran_test.h"
|
||||||
|
|
||||||
|
namespace srsenb {
|
||||||
|
|
||||||
|
void test_pdcch_consistency(srsran::const_span<sched_nr_impl::pdcch_dl_t> dl_pdcchs)
|
||||||
|
{
|
||||||
|
for (const auto& pdcch : dl_pdcchs) {
|
||||||
|
if (pdcch.dci.ctx.rnti_type == srsran_rnti_type_ra) {
|
||||||
|
TESTASSERT_EQ(pdcch.dci.ctx.format, srsran_dci_format_nr_1_0);
|
||||||
|
TESTASSERT_EQ(pdcch.dci.ctx.ss_type, srsran_search_space_type_common_1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace srsenb
|
@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* \section COPYRIGHT
|
||||||
|
*
|
||||||
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||||||
|
*
|
||||||
|
* By using this file, you agree to the terms and conditions set
|
||||||
|
* forth in the LICENSE file which can be found at the top level of
|
||||||
|
* the distribution.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRSRAN_SCHED_NR_COMMON_TEST_H
|
||||||
|
#define SRSRAN_SCHED_NR_COMMON_TEST_H
|
||||||
|
|
||||||
|
#include "srsenb/hdr/stack/mac/nr/sched_nr_pdcch.h"
|
||||||
|
#include "srsran/adt/span.h"
|
||||||
|
|
||||||
|
namespace srsenb {
|
||||||
|
|
||||||
|
void test_pdcch_consistency(srsran::const_span<sched_nr_impl::pdcch_dl_t> dl_pdcch);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // SRSRAN_SCHED_NR_COMMON_TEST_H
|
Loading…
Reference in New Issue