diff --git a/lib/include/srslte/upper/rlc_tm.h b/lib/include/srslte/upper/rlc_tm.h index 9d1e4d05f..283692803 100644 --- a/lib/include/srslte/upper/rlc_tm.h +++ b/lib/include/srslte/upper/rlc_tm.h @@ -34,12 +34,7 @@ namespace srslte { class rlc_tm final : public rlc_common { public: - rlc_tm(srslte::log_ref log_, - uint32_t lcid_, - srsue::pdcp_interface_rlc* pdcp_, - srsue::rrc_interface_rlc* rrc_, - srslte::timer_handler* timers_, - uint32_t queue_len = 16); + rlc_tm(srslte::log_ref log_, uint32_t lcid_, srsue::pdcp_interface_rlc* pdcp_, srsue::rrc_interface_rlc* rrc_); ~rlc_tm() override; bool configure(const rlc_config_t& cnfg) override; void stop() override; diff --git a/lib/src/upper/rlc.cc b/lib/src/upper/rlc.cc index 951ea8798..e9cee00e9 100644 --- a/lib/src/upper/rlc.cc +++ b/lib/src/upper/rlc.cc @@ -393,7 +393,7 @@ void rlc::add_bearer(uint32_t lcid, const rlc_config_t& cnfg) if (cnfg.rat == srslte_rat_t::lte) { switch (cnfg.rlc_mode) { case rlc_mode_t::tm: - rlc_entity = new rlc_tm(rlc_log, lcid, pdcp, rrc, timers); + rlc_entity = new rlc_tm(rlc_log, lcid, pdcp, rrc); break; case rlc_mode_t::am: rlc_entity = new rlc_am_lte(rlc_log, lcid, pdcp, rrc, timers); @@ -412,7 +412,7 @@ void rlc::add_bearer(uint32_t lcid, const rlc_config_t& cnfg) } else if (cnfg.rat == srslte_rat_t::nr) { switch (cnfg.rlc_mode) { case rlc_mode_t::tm: - rlc_entity = new rlc_tm(rlc_log, lcid, pdcp, rrc, timers); + rlc_entity = new rlc_tm(rlc_log, lcid, pdcp, rrc); break; case rlc_mode_t::um: rlc_entity = new rlc_um_nr(rlc_log, lcid, pdcp, rrc, timers); diff --git a/lib/src/upper/rlc_tm.cc b/lib/src/upper/rlc_tm.cc index 714ef2972..d6bc93e7e 100644 --- a/lib/src/upper/rlc_tm.cc +++ b/lib/src/upper/rlc_tm.cc @@ -23,17 +23,8 @@ namespace srslte { -rlc_tm::rlc_tm(srslte::log_ref log_, - uint32_t lcid_, - srsue::pdcp_interface_rlc* pdcp_, - srsue::rrc_interface_rlc* rrc_, - srslte::timer_handler* timers_, - uint32_t queue_len_) : - ul_queue(queue_len_), - log(log_), - pdcp(pdcp_), - rrc(rrc_), - lcid(lcid_) +rlc_tm::rlc_tm(srslte::log_ref log_, uint32_t lcid_, srsue::pdcp_interface_rlc* pdcp_, srsue::rrc_interface_rlc* rrc_) : + log(log_), pdcp(pdcp_), rrc(rrc_), lcid(lcid_) { pool = byte_buffer_pool::get_instance(); }