sched,nr: when sched allocates PUSCH, SR doesn't need to be decoded

This commit is contained in:
Francisco 2021-10-14 15:46:22 +01:00 committed by Francisco Paisana
parent b034a9c983
commit 01d8814f39
2 changed files with 7 additions and 0 deletions

View File

@ -167,6 +167,10 @@ void slot_cc_worker::postprocess_decisions()
if (pusch.sch.grant.rnti == ue.rnti) {
// Put UCI configuration in PUSCH config
has_pusch = true;
// If has PUSCH, no SR shall be received
uci_cfg.o_sr = 0;
if (not ue.cfg->phy().get_pusch_uci_cfg(slot_cfg, uci_cfg, pusch.sch)) {
logger.error("Error setting UCI configuration in PUSCH");
continue;

View File

@ -570,6 +570,9 @@ public:
// Schedule PUSCH
if (has_pusch) {
// If has PUSCH, no SR shall be received
uci_cfg.o_sr = 0;
// Put UCI configuration in PUSCH config
if (not phy_cfg.get_pusch_uci_cfg(slot_cfg, uci_cfg, pusch.sch)) {
logger.error("Error setting UCI configuration in PUSCH");