@ -11,13 +11,12 @@
*/
*/
# include "srsenb/hdr/stack/rrc/rrc_ue.h"
# include "srsenb/hdr/stack/rrc/rrc_ue.h"
# include "srsenb/hdr/common/common_enb.h"
# include "srsenb/hdr/stack/rrc/mac_controller.h"
# include "srsenb/hdr/stack/rrc/mac_controller.h"
# include "srsenb/hdr/stack/rrc/rrc_mobility.h"
# include "srsenb/hdr/stack/rrc/rrc_mobility.h"
# include "srsenb/hdr/stack/rrc/ue_rr_cfg.h"
# include "srsenb/hdr/stack/rrc/ue_rr_cfg.h"
# include "srsran/adt/pool/mem_pool.h"
# include "srsran/asn1/rrc_utils.h"
# include "srsran/asn1/rrc_utils.h"
# include "srsran/common/enb_events.h"
# include "srsran/common/enb_events.h"
# include "srsran/common/int_helpers.h"
# include "srsran/common/standard_streams.h"
# include "srsran/common/standard_streams.h"
# include "srsran/interfaces/enb_pdcp_interfaces.h"
# include "srsran/interfaces/enb_pdcp_interfaces.h"
# include "srsran/interfaces/enb_rlc_interfaces.h"
# include "srsran/interfaces/enb_rlc_interfaces.h"
@ -575,7 +574,7 @@ void rrc::ue::handle_rrc_con_reest_req(rrc_conn_reest_request_s* msg)
// Get PDCP entity state (required when using RLC AM)
// Get PDCP entity state (required when using RLC AM)
for ( const auto & erab_pair : old_ue - > bearer_list . get_erabs ( ) ) {
for ( const auto & erab_pair : old_ue - > bearer_list . get_erabs ( ) ) {
uint16_t lcid = erab_pair . second . id - 2 ;
uint16_t lcid = erab_pair . second . lc id;
old_reest_pdcp_state [ lcid ] = { } ;
old_reest_pdcp_state [ lcid ] = { } ;
parent - > pdcp - > get_bearer_state ( old_rnti , lcid , & old_reest_pdcp_state [ lcid ] ) ;
parent - > pdcp - > get_bearer_state ( old_rnti , lcid , & old_reest_pdcp_state [ lcid ] ) ;
@ -1327,7 +1326,7 @@ void rrc::ue::apply_pdcp_srb_updates(const rr_cfg_ded_s& pending_rr_cfg)
void rrc : : ue : : apply_pdcp_drb_updates ( const rr_cfg_ded_s & pending_rr_cfg )
void rrc : : ue : : apply_pdcp_drb_updates ( const rr_cfg_ded_s & pending_rr_cfg )
{
{
for ( uint8_t drb_id : pending_rr_cfg . drb_to_release_list ) {
for ( uint8_t drb_id : pending_rr_cfg . drb_to_release_list ) {
parent - > pdcp - > del_bearer ( rnti , drb_ id + 2 ) ;
parent - > pdcp - > del_bearer ( rnti , drb_ to_lcid( ( lte_drb ) drb_id ) ) ;
}
}
for ( const drb_to_add_mod_s & drb : pending_rr_cfg . drb_to_add_mod_list ) {
for ( const drb_to_add_mod_s & drb : pending_rr_cfg . drb_to_add_mod_list ) {
// Configure DRB1 in PDCP
// Configure DRB1 in PDCP
@ -1349,7 +1348,7 @@ void rrc::ue::apply_pdcp_drb_updates(const rr_cfg_ded_s& pending_rr_cfg)
// If reconf due to reestablishment, recover PDCP state
// If reconf due to reestablishment, recover PDCP state
if ( state = = RRC_STATE_REESTABLISHMENT_COMPLETE ) {
if ( state = = RRC_STATE_REESTABLISHMENT_COMPLETE ) {
for ( const auto & erab_pair : bearer_list . get_erabs ( ) ) {
for ( const auto & erab_pair : bearer_list . get_erabs ( ) ) {
uint16_t lcid = erab_pair . second . id - 2 ;
uint16_t lcid = erab_pair . second . lc id;
bool is_am = parent - > cfg . qci_cfg [ erab_pair . second . qos_params . qci ] . rlc_cfg . type ( ) . value = =
bool is_am = parent - > cfg . qci_cfg [ erab_pair . second . qos_params . qci ] . rlc_cfg . type ( ) . value = =
asn1 : : rrc : : rlc_cfg_c : : types_opts : : am ;
asn1 : : rrc : : rlc_cfg_c : : types_opts : : am ;
if ( is_am ) {
if ( is_am ) {
@ -1377,7 +1376,7 @@ void rrc::ue::apply_rlc_rb_updates(const rr_cfg_ded_s& pending_rr_cfg)
}
}
if ( pending_rr_cfg . drb_to_release_list . size ( ) > 0 ) {
if ( pending_rr_cfg . drb_to_release_list . size ( ) > 0 ) {
for ( uint8_t drb_id : pending_rr_cfg . drb_to_release_list ) {
for ( uint8_t drb_id : pending_rr_cfg . drb_to_release_list ) {
parent - > rlc - > del_bearer ( rnti , drb_ id + 2 ) ;
parent - > rlc - > del_bearer ( rnti , drb_ to_lcid( ( lte_drb ) drb_id ) ) ;
}
}
}
}
for ( const drb_to_add_mod_s & drb : pending_rr_cfg . drb_to_add_mod_list ) {
for ( const drb_to_add_mod_s & drb : pending_rr_cfg . drb_to_add_mod_list ) {