sched_nr: move DCI config for SIB to fill_dci_sib()

This commit is contained in:
Andre Puschmann 2021-11-16 21:14:31 +01:00
parent c73a77330f
commit fe0db905c2
2 changed files with 2 additions and 3 deletions

View File

@ -99,9 +99,6 @@ alloc_result bwp_slot_allocator::alloc_si(uint32_t aggr_idx,
return alloc_result::invalid_coderate;
}
pdcch.dci.coreset0_bw = pdcch.dci_cfg.coreset0_bw;
pdcch.dci.ctx.coreset_start_rb = cfg.cfg.pdcch.coreset[0].offset_rb;
// Generate PDSCH
bwp_pdcch_slot.dl.phy.pdsch.emplace_back();
pdsch_t& pdsch = bwp_pdcch_slot.dl.phy.pdsch.back();

View File

@ -114,6 +114,8 @@ bool fill_dci_sib(prb_interval interv,
dci.ctx.rnti_type = srsran_rnti_type_si;
dci.ctx.rnti = SRSRAN_SIRNTI;
dci.ctx.coreset_id = 0;
dci.ctx.coreset_start_rb = bwp_cfg.cfg.pdcch.coreset[0].offset_rb;
dci.coreset0_bw = srsran_coreset_get_bw(&bwp_cfg.cfg.pdcch.coreset[0]);
dci.freq_domain_assigment =
srsran_ra_nr_type1_riv(srsran_coreset_get_bw(&bwp_cfg.cfg.pdcch.coreset[0]), interv.start(), interv.length());
dci.time_domain_assigment = 0;