From c69631462b26db41610c61f04d8c1249064df905 Mon Sep 17 00:00:00 2001 From: Francisco Date: Fri, 30 Apr 2021 14:36:30 +0100 Subject: [PATCH] sched, fix - limit UL cqi update to PUSCH SNR reports --- srsenb/src/stack/mac/sched_ue.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srsenb/src/stack/mac/sched_ue.cc b/srsenb/src/stack/mac/sched_ue.cc index 86b28d429..55e7f2504 100644 --- a/srsenb/src/stack/mac/sched_ue.cc +++ b/srsenb/src/stack/mac/sched_ue.cc @@ -302,8 +302,10 @@ void sched_ue::set_ul_snr(tti_point tti_rx, uint32_t enb_cc_idx, float snr, uint { if (cells[enb_cc_idx].cc_state() != cc_st::idle) { cells[enb_cc_idx].tpc_fsm.set_snr(snr, ul_ch_code); - cells[enb_cc_idx].ul_cqi = srsran_cqi_from_snr(snr); - cells[enb_cc_idx].ul_cqi_tti_rx = tti_rx; + if (ul_ch_code == tpc::PUSCH_CODE) { + cells[enb_cc_idx].ul_cqi = srsran_cqi_from_snr(snr); + cells[enb_cc_idx].ul_cqi_tti_rx = tti_rx; + } } else { logger.warning("Received SNR info for invalid cell index %d", enb_cc_idx); }