From c35b467d5701d2d63a7c2217d6e445558ba8a2c6 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 5 Oct 2018 15:12:06 +0200 Subject: [PATCH] suppress scheduler warning for failed PUCCH allocation for 6 PRBs --- srsenb/src/mac/scheduler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsenb/src/mac/scheduler.cc b/srsenb/src/mac/scheduler.cc index b79396549..cac75af2d 100644 --- a/srsenb/src/mac/scheduler.cc +++ b/srsenb/src/mac/scheduler.cc @@ -876,12 +876,12 @@ int sched::ul_sched(uint32_t tti, srsenb::sched_interface::ul_sched_res_t* sched // Allocate PUCCH resources if (cfg.nrb_pucch >= 0) { ul_harq_proc::ul_alloc_t pucch = {0, (uint32_t) cfg.nrb_pucch}; - if(!ul_metric->update_allocation(pucch)) { + if (!ul_metric->update_allocation(pucch) and cfg.cell.nof_prb != 6) { log_h->warning("SCHED: There was a collision with the PUCCH (%d, %d)\n", pucch.RB_start, pucch.RB_start+pucch.L); } pucch.RB_start = cfg.cell.nof_prb-cfg.nrb_pucch; pucch.L = (uint32_t) cfg.nrb_pucch; - if(!ul_metric->update_allocation(pucch)) { + if (!ul_metric->update_allocation(pucch) and cfg.cell.nof_prb != 6) { log_h->warning("SCHED: There was a collision with the PUCCH (%d, %d)\n", pucch.RB_start, pucch.RB_start+pucch.L); } } else {