From 3eab97340bca90b00494455f978c5e759f4cb1da Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 17 Feb 2021 15:32:06 +0000 Subject: [PATCH] Fix issue in getting PDCP discard timer from configs --- lib/src/asn1/rrc_utils.cc | 42 +++++++++++++++++++++++++++++++++++++++ srsenb/drb.conf.example | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/lib/src/asn1/rrc_utils.cc b/lib/src/asn1/rrc_utils.cc index 97a283835..b59cf3b17 100644 --- a/lib/src/asn1/rrc_utils.cc +++ b/lib/src/asn1/rrc_utils.cc @@ -252,6 +252,48 @@ srslte::pdcp_config_t make_drb_pdcp_config_t(const uint8_t bearer_id, bool is_ue case 10: discard_timer = pdcp_discard_timer_t::ms10; break; + case 20: + discard_timer = pdcp_discard_timer_t::ms20; + break; + case 30: + discard_timer = pdcp_discard_timer_t::ms30; + break; + case 40: + discard_timer = pdcp_discard_timer_t::ms40; + break; + case 50: + discard_timer = pdcp_discard_timer_t::ms50; + break; + case 60: + discard_timer = pdcp_discard_timer_t::ms60; + break; + case 75: + discard_timer = pdcp_discard_timer_t::ms75; + break; + case 100: + discard_timer = pdcp_discard_timer_t::ms100; + break; + case 150: + discard_timer = pdcp_discard_timer_t::ms150; + break; + case 200: + discard_timer = pdcp_discard_timer_t::ms200; + break; + case 250: + discard_timer = pdcp_discard_timer_t::ms250; + break; + case 300: + discard_timer = pdcp_discard_timer_t::ms300; + break; + case 500: + discard_timer = pdcp_discard_timer_t::ms500; + break; + case 750: + discard_timer = pdcp_discard_timer_t::ms750; + break; + case 1500: + discard_timer = pdcp_discard_timer_t::ms1500; + break; default: discard_timer = pdcp_discard_timer_t::infinity; break; diff --git a/srsenb/drb.conf.example b/srsenb/drb.conf.example index a13cc9203..55a1a1491 100644 --- a/srsenb/drb.conf.example +++ b/srsenb/drb.conf.example @@ -28,7 +28,7 @@ qci_config = ( { qci=9; pdcp_config = { - discard_timer = 200; + discard_timer = 150; status_report_required = true; } rlc_config = {