From 6578cf1d016604e94338115b25c846ec554714eb Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 26 Apr 2019 12:16:01 +0100 Subject: [PATCH] Making sure that next_pdcp_rx_sn is reset at reestablish. --- lib/src/upper/pdcp_entity.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc index 9dd574d2d..71b16073e 100644 --- a/lib/src/upper/pdcp_entity.cc +++ b/lib/src/upper/pdcp_entity.cc @@ -81,15 +81,17 @@ void pdcp_entity::reestablish() { // For SRBs if (cfg.is_control) { - tx_count = 0; - rx_hfn = 0; - rx_count = 0; + tx_count = 0; + rx_count = 0; + rx_hfn = 0; + next_pdcp_rx_sn = 0; } else { // Only reset counter in RLC-UM if (rlc->rb_is_um(lcid)) { - tx_count = 0; - rx_hfn = 0; - rx_count = 0; + tx_count = 0; + rx_count = 0; + rx_hfn = 0; + next_pdcp_rx_sn = 0; } } }