From 0cb76681a88b43d3068310ff3265cff0b1708072 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Mon, 4 Oct 2021 14:43:05 +0100 Subject: [PATCH] sched,nr: forbid concurrent SSB and PDSCH until it is supported --- srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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 0bffc4044..512ee7e0a 100644 --- a/srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc +++ b/srsenb/src/stack/mac/nr/sched_nr_grant_allocator.cc @@ -205,6 +205,12 @@ alloc_result bwp_slot_allocator::alloc_pdsch(slot_ue& ue, const prb_grant& dl_gr if (bwp_pdsch_slot.dl_prbs.collides(dl_grant)) { return alloc_result::sch_collision; } + if (not bwp_pdcch_slot.ssb.empty()) { + // TODO: support concurrent PDSCH and SSB + logger.info("SCHED: skipping rnti=0x%x PDSCH allocation. Cause: concurrent PDSCH and SSB not yet supported", + ue.rnti); + return alloc_result::no_sch_space; + } // Find space in PUCCH // TODO