From 14b3a65dfe821a783a96fd759652097ab27da7f7 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Fri, 1 Oct 2021 13:10:24 +0200 Subject: [PATCH] sched,nr: fix assignment of PID for PUSCH grants that the scheduler outputs --- srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc b/srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc index 819273469..b7ab204bf 100644 --- a/srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc +++ b/srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc @@ -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();