From 553f8260bbaed5f650dca74e5c284ab3f3653eb4 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 30 Nov 2018 13:36:39 +0000 Subject: [PATCH] Fixing up logs and comments. --- lib/src/upper/pdcp_entity.cc | 1 - srsue/src/upper/nas.cc | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc index e62677e4e..0e0877414 100644 --- a/lib/src/upper/pdcp_entity.cc +++ b/lib/src/upper/pdcp_entity.cc @@ -84,7 +84,6 @@ void pdcp_entity::init(srsue::rlc_interface_pdcp *rlc_, // Reestablishment procedure: 36.323 5.2 void pdcp_entity::reestablish() { - log->debug("Re-establishing %s\n", rrc->get_rb_name(lcid).c_str()); // For SRBs if (cfg.is_control) { tx_count = 0; diff --git a/srsue/src/upper/nas.cc b/srsue/src/upper/nas.cc index 8e46a988d..92c30c3fa 100644 --- a/srsue/src/upper/nas.cc +++ b/srsue/src/upper/nas.cc @@ -389,15 +389,13 @@ void nas::write_pdu(uint32_t lcid, byte_buffer_t *pdu) { } 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. - // This function should be called after sending these messages, for later derivation of the keys. + // UL count for RRC key derivation depends on UL Count of the Attach Request or Service Request. + // 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; return; } 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; }