@@ -37,7 +37,7 @@ pdcp_entity_nr::~pdcp_entity_nr() {}
3737// Reestablishment procedure: 38.323 5.2
3838void pdcp_entity_nr::reestablish ()
3939{
40- logger.info (" Re-establish %s with bearer ID: %d" , rrc-> get_rb_name (lcid ), cfg.bearer_id );
40+ logger.info (" Re-establish %s with bearer ID: %d" , rb_name. c_str ( ), cfg.bearer_id );
4141 // TODO
4242}
4343
@@ -46,13 +46,14 @@ bool pdcp_entity_nr::configure(const pdcp_config_t& cnfg_)
4646 if (active) {
4747 // Already configured
4848 if (cnfg_ != cfg) {
49- logger.error (" Bearer reconfiguration not supported. LCID=%s." , rrc-> get_rb_name (lcid ));
49+ logger.error (" Bearer reconfiguration not supported. LCID=%s." , rb_name. c_str ( ));
5050 return false ;
5151 }
5252 return true ;
5353 }
5454
5555 cfg = cnfg_;
56+ rb_name = cfg.get_rb_name ();
5657 window_size = 1 << (cfg.sn_len - 1 );
5758
5859 // Timers
@@ -70,7 +71,7 @@ bool pdcp_entity_nr::configure(const pdcp_config_t& cnfg_)
7071void pdcp_entity_nr::reset ()
7172{
7273 active = false ;
73- logger.debug (" Reset %s" , rrc-> get_rb_name (lcid ));
74+ logger.debug (" Reset %s" , rb_name. c_str ( ));
7475}
7576
7677// SDAP/RRC interface
@@ -80,7 +81,7 @@ void pdcp_entity_nr::write_sdu(unique_byte_buffer_t sdu, int sn)
8081 logger.info (sdu->msg ,
8182 sdu->N_bytes ,
8283 " TX %s SDU, integrity=%s, encryption=%s" ,
83- rrc-> get_rb_name (lcid ),
84+ rb_name. c_str ( ),
8485 srsran_direction_text[integrity_direction],
8586 srsran_direction_text[encryption_direction]);
8687
@@ -136,7 +137,7 @@ void pdcp_entity_nr::write_pdu(unique_byte_buffer_t pdu)
136137 logger.info (pdu->msg ,
137138 pdu->N_bytes ,
138139 " RX %s PDU (%d B), integrity=%s, encryption=%s" ,
139- rrc-> get_rb_name (lcid ),
140+ rb_name. c_str ( ),
140141 pdu->N_bytes ,
141142 srsran_direction_text[integrity_direction],
142143 srsran_direction_text[encryption_direction]);
0 commit comments