Skip to content

Commit 7c611e5

Browse files
committed
du-high: add extra validation checks for coreset0 config to avoid arm compilation issue
1 parent 0d28a85 commit 7c611e5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/du/du_cell_config_validation.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,12 @@ static check_outcome check_tdd_ul_dl_config(const du_cell_config& cell_cfg)
525525
// See TS 38.214, Table 5.1.2.1-1: Valid S and L combinations.
526526
static const unsigned pdsch_mapping_typeA_min_L_value = 3;
527527
528-
const pdcch_config_common& common_pdcch_cfg = cell_cfg.dl_cfg_common.init_dl_bwp.pdcch_common;
529-
const pdcch_config& ded_pdcch_cfg = cell_cfg.ue_ded_serv_cell_cfg.init_dl_bwp.pdcch_cfg.value();
530-
const optional<coreset_configuration> coreset0 = common_pdcch_cfg.coreset0;
531-
const optional<coreset_configuration> common_coreset = common_pdcch_cfg.common_coreset;
528+
const pdcch_config_common& common_pdcch_cfg = cell_cfg.dl_cfg_common.init_dl_bwp.pdcch_common;
529+
const pdcch_config& ded_pdcch_cfg = cell_cfg.ue_ded_serv_cell_cfg.init_dl_bwp.pdcch_cfg.value();
530+
const optional<coreset_configuration>& coreset0 = common_pdcch_cfg.coreset0;
531+
const optional<coreset_configuration>& common_coreset = common_pdcch_cfg.common_coreset;
532+
CHECK_TRUE(coreset0.has_value(), "CORESET#0 not configured");
533+
532534
const pdcch_type0_css_occasion_pattern1_description ss0_occasion = pdcch_type0_css_occasions_get_pattern1(
533535
pdcch_type0_css_occasion_pattern1_configuration{.is_fr2 = false,
534536
.ss_zero_index = static_cast<uint8_t>(cell_cfg.searchspace0_idx),

0 commit comments

Comments
 (0)