From 59513c0eed93a453ad38288898dba8c857d438fe Mon Sep 17 00:00:00 2001 From: Francisco Date: Fri, 21 May 2021 13:58:52 +0100 Subject: [PATCH] fix bearer reactivation in case the RRC session is recovered after max KO --- srsenb/src/stack/rrc/mac_controller.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srsenb/src/stack/rrc/mac_controller.cc b/srsenb/src/stack/rrc/mac_controller.cc index 56f3a8136..247d8052f 100644 --- a/srsenb/src/stack/rrc/mac_controller.cc +++ b/srsenb/src/stack/rrc/mac_controller.cc @@ -299,8 +299,11 @@ void mac_controller::handle_ho_prep(const asn1::rrc::ho_prep_info_r8_ies_s& ho_p void mac_controller::set_radio_bearer_state(sched_interface::ue_bearer_cfg_t::direction_t dir) { - for (auto& ue_bearer : current_sched_ue_cfg.ue_bearers) { - ue_bearer.direction = dir; + for (uint32_t i = srb_to_lcid(lte_srb::srb0); i <= srb_to_lcid(lte_srb::srb2); ++i) { + current_sched_ue_cfg.ue_bearers[i].direction = dir; + } + for (auto& drb : bearer_list.get_established_drbs()) { + current_sched_ue_cfg.ue_bearers[drb.lc_ch_id].direction = dir; } update_mac(config_tx); }