From bd08a64b5eb6c6bb8d160eaba80e2cfe25526a48 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Mon, 26 Jul 2021 12:44:20 +0100 Subject: [PATCH] sched: fix crash for 100 prbs and subband CQI reporting --- lib/src/phy/phch/cqi.c | 2 +- srsenb/src/stack/mac/sched_ue_ctrl/sched_ue_cell.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/phch/cqi.c b/lib/src/phy/phch/cqi.c index b06fe753d..0dd98a4b9 100644 --- a/lib/src/phy/phch/cqi.c +++ b/lib/src/phy/phch/cqi.c @@ -550,7 +550,7 @@ static int cqi_hl_get_bwp_J(int nof_prb) return 2; } else if (nof_prb <= 63) { return 3; - } else if (nof_prb <= 63) { + } else if (nof_prb <= 110) { return 4; } else { return -1; diff --git a/srsenb/src/stack/mac/sched_ue_ctrl/sched_ue_cell.cc b/srsenb/src/stack/mac/sched_ue_ctrl/sched_ue_cell.cc index 2f33a85aa..92b71b8d2 100644 --- a/srsenb/src/stack/mac/sched_ue_ctrl/sched_ue_cell.cc +++ b/srsenb/src/stack/mac/sched_ue_ctrl/sched_ue_cell.cc @@ -179,6 +179,7 @@ int sched_ue_cell::set_dl_wb_cqi(tti_point tti_rx, uint32_t dl_cqi_) CHECK_VALID_CC("DL CQI"); dl_cqi_ctxt.cqi_wb_info(tti_rx, dl_cqi_); check_cc_activation(dl_cqi_); + logger.debug("SCHED: DL CQI cc=%d, cqi=%d", cell_cfg->enb_cc_idx, dl_cqi_); return SRSRAN_SUCCESS; } @@ -187,6 +188,7 @@ int sched_ue_cell::set_dl_sb_cqi(tti_point tti_rx, uint32_t sb_idx, uint32_t dl_ CHECK_VALID_CC("DL CQI"); dl_cqi_ctxt.cqi_sb_info(tti_rx, sb_idx, dl_cqi_); check_cc_activation(dl_cqi_); + logger.debug("SCHED: DL CQI cc=%d, sb_idx=%d, cqi=%d", cell_cfg->enb_cc_idx, sb_idx, dl_cqi_); return SRSRAN_SUCCESS; }