From 40aef7674573094c51c6a9b21098ee517d7afe21 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 6 Aug 2018 18:29:14 +0200 Subject: [PATCH] fix logging when removing DRB --- srsue/hdr/upper/rrc.h | 4 ++-- srsue/src/upper/rrc.cc | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/srsue/hdr/upper/rrc.h b/srsue/hdr/upper/rrc.h index e4d06eb1f..72a5ff678 100644 --- a/srsue/hdr/upper/rrc.h +++ b/srsue/hdr/upper/rrc.h @@ -637,8 +637,8 @@ private: void handle_rrc_con_reconfig(uint32_t lcid, LIBLTE_RRC_CONNECTION_RECONFIGURATION_STRUCT *reconfig); void add_srb(LIBLTE_RRC_SRB_TO_ADD_MOD_STRUCT *srb_cnfg); void add_drb(LIBLTE_RRC_DRB_TO_ADD_MOD_STRUCT *drb_cnfg); - void release_drb(uint8_t lcid); - void add_mrb(uint32_t lcid, uint32_t port); + void release_drb(uint32_t drb_id); + void add_mrb(uint32_t lcid, uint32_t port); bool apply_rr_config_dedicated(LIBLTE_RRC_RR_CONFIG_DEDICATED_STRUCT *cnfg); void apply_phy_config_dedicated(LIBLTE_RRC_PHYSICAL_CONFIG_DEDICATED_STRUCT *phy_cnfg, bool apply_defaults); void apply_mac_config_dedicated(LIBLTE_RRC_MAC_MAIN_CONFIG_STRUCT *mac_cfg, bool apply_defaults); diff --git a/srsue/src/upper/rrc.cc b/srsue/src/upper/rrc.cc index 1b2d2607d..f09442cbb 100644 --- a/srsue/src/upper/rrc.cc +++ b/srsue/src/upper/rrc.cc @@ -2699,8 +2699,13 @@ void rrc::add_drb(LIBLTE_RRC_DRB_TO_ADD_MOD_STRUCT *drb_cnfg) { rrc_log->info("Added radio bearer %s\n", get_rb_name(lcid).c_str()); } -void rrc::release_drb(uint8_t lcid) { - // TODO +void rrc::release_drb(uint32_t drb_id) +{ + uint32_t lcid = RB_ID_SRB2 + drb_id; + rrc_log->info("Releasing radio bearer %s\n", get_rb_name(lcid).c_str()); + drbs.erase(lcid); + + // FIXME: add body } void rrc::add_mrb(uint32_t lcid, uint32_t port)