From 8670558692f60efc5e1b8f34435de54d749d693c Mon Sep 17 00:00:00 2001 From: Francisco Date: Wed, 2 Dec 2020 11:56:00 +0000 Subject: [PATCH] fix failing scheduler ca test --- srsenb/src/stack/mac/sched_ue.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srsenb/src/stack/mac/sched_ue.cc b/srsenb/src/stack/mac/sched_ue.cc index 772901995..cbaa77725 100644 --- a/srsenb/src/stack/mac/sched_ue.cc +++ b/srsenb/src/stack/mac/sched_ue.cc @@ -227,7 +227,10 @@ void sched_ue::new_subframe(tti_point tti_rx, uint32_t enb_cc_idx) current_tti = tti_rx; lch_handler.new_tti(); } - carriers.at(enb_ue_cc_idx_map[enb_cc_idx]).tpc_fsm.new_tti(); + int ue_cc_idx = enb_ue_cc_idx_map[enb_cc_idx]; + if (ue_cc_idx >= 0) { + carriers.at(ue_cc_idx).tpc_fsm.new_tti(); + } } /// sanity check the UE CC configuration