From f8f1fdf5ee43dbbd87055a78f18a1c3d70508ada Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Sun, 27 May 2018 13:35:52 +0100 Subject: [PATCH] Fix for SRB0 PDCP config settings --- lib/src/upper/pdcp_entity.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc index d8bb0556f..c2c829549 100644 --- a/lib/src/upper/pdcp_entity.cc +++ b/lib/src/upper/pdcp_entity.cc @@ -66,11 +66,17 @@ void pdcp_entity::init(srsue::rlc_interface_pdcp *rlc_, rx_count = 0; do_integrity = false; do_encryption = false; + + cfg.sn_len = 0; + sn_len_bytes = 0; + if(cfg.is_control) { cfg.sn_len = 5; sn_len_bytes = 1; - } else { - sn_len_bytes = (cfg.sn_len+7)/8; + } + if(cfg.is_data) { + cfg.sn_len = 12; + sn_len_bytes = 2; } log->debug("Init %s\n", rrc->get_rb_name(lcid).c_str());