sched,nr: fix assignment of PID for PUSCH grants that the scheduler outputs

This commit is contained in:
Francisco Paisana 2021-10-01 13:10:24 +02:00
parent 2b1be3dbce
commit 14b3a65dfe
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ alloc_result bwp_slot_allocator::alloc_pusch(slot_ue& ue, const prb_grant& ul_pr
pusch_t& pusch = bwp_pusch_slot.puschs.back();
srsran_slot_cfg_t slot_cfg;
slot_cfg.idx = ue.pusch_slot.to_uint();
pusch.pid = ue.h_ul->pid;
bool success = ue.cfg->phy().get_pusch_cfg(slot_cfg, pdcch.dci, pusch.sch);
srsran_assert(success, "Error converting DCI to PUSCH grant");
pusch.sch.grant.tb[0].softbuffer.rx = ue.h_ul->get_softbuffer().get();