Making sure that next_pdcp_rx_sn is reset at reestablish.

This commit is contained in:
Pedro Alvarez 2019-04-26 12:16:01 +01:00 committed by Andre Puschmann
parent 6cbcc5154d
commit 6578cf1d01
1 changed files with 8 additions and 6 deletions

View File

@ -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;
}
}
}