From 442ce0d7b01ddb59e4ed66ba97c5e67674a901d6 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Thu, 30 Apr 2020 13:27:16 +0100 Subject: [PATCH] fix cqi allocated check in rrc::ue --- srsenb/hdr/stack/rrc/rrc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/hdr/stack/rrc/rrc.h b/srsenb/hdr/stack/rrc/rrc.h index dd64f5800..1ff5a0ac7 100644 --- a/srsenb/hdr/stack/rrc/rrc.h +++ b/srsenb/hdr/stack/rrc/rrc.h @@ -241,7 +241,7 @@ private: int get_n_pucch_cs(uint16_t* N_pucch_cs); bool is_allocated() const { - return cqi_allocated and sr_allocated and (parent->cfg.cell_list.size() <= 1 or n_pucch_cs_alloc); + return not cell_res_list.empty() and sr_allocated and (parent->cfg.cell_list.size() <= 1 or n_pucch_cs_alloc); } bool select_security_algorithms();