From 1acf19c8b19f445ed01e654a35671120c1066d17 Mon Sep 17 00:00:00 2001 From: yagoda Date: Mon, 3 Apr 2023 15:31:50 +0200 Subject: [PATCH] eMBMS: adding mrb lcid checks to sdu_queue_is_full and rb_is_um functions in RLC. --- lib/src/rlc/rlc.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/rlc/rlc.cc b/lib/src/rlc/rlc.cc index 60186068b..638cc76cc 100644 --- a/lib/src/rlc/rlc.cc +++ b/lib/src/rlc/rlc.cc @@ -204,6 +204,8 @@ bool rlc::rb_is_um(uint32_t lcid) if (valid_lcid(lcid)) { ret = rlc_array.at(lcid)->get_mode() == rlc_mode_t::um; + } else if (valid_lcid_mrb(lcid)) { + ret = rlc_array_mrb.at(lcid)->get_mode() == rlc_mode_t::um; } else { logger.warning("LCID %d doesn't exist.", lcid); } @@ -225,6 +227,8 @@ bool rlc::sdu_queue_is_full(uint32_t lcid) { if (valid_lcid(lcid)) { return rlc_array.at(lcid)->sdu_queue_is_full(); + } else if (valid_lcid_mrb(lcid)) { + return rlc_array_mrb.at(lcid)->sdu_queue_is_full(); } logger.warning("RLC LCID %d doesn't exist. Ignoring queue check", lcid); return false;