From d54cef63b228ca7e050d893f37638e45339c338b Mon Sep 17 00:00:00 2001 From: Francisco Date: Wed, 3 Mar 2021 12:30:07 +0000 Subject: [PATCH] avoid reallocating CC in mac::ue when an SCell Activation CE is sent --- srsenb/src/stack/mac/ue.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/stack/mac/ue.cc b/srsenb/src/stack/mac/ue.cc index 3c0c6e0f6..8ae03fa68 100644 --- a/srsenb/src/stack/mac/ue.cc +++ b/srsenb/src/stack/mac/ue.cc @@ -490,7 +490,7 @@ void ue::allocate_ce(srslte::sch_pdu* pdu, uint32_t lcid) phy->set_activation_deactivation_scell(rnti, active_scell_list); // Allocate and initialize Rx/Tx softbuffers for new carriers (exclude PCell) for (size_t i = 0; i < std::min(active_scell_list.size(), cc_buffers.size()); ++i) { - if (active_scell_list[i]) { + if (active_scell_list[i] and cc_buffers[i].empty()) { cc_buffers[i].allocate_cc(nof_prb, nof_rx_harq_proc, nof_tx_harq_proc); } }