Fixing up logs and comments.

master
Pedro Alvarez 6 years ago committed by Andre Puschmann
parent e3d7ccd7e1
commit 553f8260bb

@ -84,7 +84,6 @@ void pdcp_entity::init(srsue::rlc_interface_pdcp *rlc_,
// Reestablishment procedure: 36.323 5.2 // Reestablishment procedure: 36.323 5.2
void pdcp_entity::reestablish() { void pdcp_entity::reestablish() {
log->debug("Re-establishing %s\n", rrc->get_rb_name(lcid).c_str());
// For SRBs // For SRBs
if (cfg.is_control) { if (cfg.is_control) {
tx_count = 0; tx_count = 0;

@ -389,15 +389,13 @@ void nas::write_pdu(uint32_t lcid, byte_buffer_t *pdu) {
} }
void nas::set_k_enb_count(uint32_t count) { void nas::set_k_enb_count(uint32_t count) {
// UL count for RRC key derivation depends on UL count of the Authentication Request or Service Request. // UL count for RRC key derivation depends on UL Count of the Attach Request or Service Request.
// This function should be called after sending these messages, for later derivation of the keys. // On the case of an Authentication Request, the UL count used to generate K_enb must be reset to zero.
ctxt.k_enb_count = count; ctxt.k_enb_count = count;
return; return;
} }
uint32_t nas::get_k_enb_count() { uint32_t nas::get_k_enb_count() {
// UL count for RRC key derivation depends on UL count of the Authentication Request or Service Request.
// On the special case of Service Request without authentication, the UL count for the SR must be used.
return ctxt.k_enb_count; return ctxt.k_enb_count;
} }

Loading…
Cancel
Save