From 051530177e195cf43f75fc30916e59ed8a0596f6 Mon Sep 17 00:00:00 2001 From: Francisco Date: Fri, 30 Apr 2021 18:22:31 +0100 Subject: [PATCH] feature - support eia0 during S1 Handover --- srsenb/src/stack/rrc/rrc_bearer_cfg.cc | 2 ++ srsenb/src/stack/rrc/rrc_mobility.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/srsenb/src/stack/rrc/rrc_bearer_cfg.cc b/srsenb/src/stack/rrc/rrc_bearer_cfg.cc index 625b94453..e0ac3b6b8 100644 --- a/srsenb/src/stack/rrc/rrc_bearer_cfg.cc +++ b/srsenb/src/stack/rrc/rrc_bearer_cfg.cc @@ -105,6 +105,8 @@ bool security_cfg_handler::set_security_capabilities(const asn1::s1ap::ue_securi case srsran::INTEGRITY_ALGORITHM_ID_EIA0: // Null integrity is not supported logger.info("Skipping EIA0 as RRC integrity algorithm. Null integrity is not supported."); + sec_cfg.integ_algo = srsran::INTEGRITY_ALGORITHM_ID_EIA0; + integ_algo_found = true; break; case srsran::INTEGRITY_ALGORITHM_ID_128_EIA1: // “first bit” – 128-EIA1, diff --git a/srsenb/src/stack/rrc/rrc_mobility.cc b/srsenb/src/stack/rrc/rrc_mobility.cc index e0f2409c4..8c7c5a07c 100644 --- a/srsenb/src/stack/rrc/rrc_mobility.cc +++ b/srsenb/src/stack/rrc/rrc_mobility.cc @@ -106,7 +106,7 @@ uint16_t compute_mac_i(uint16_t crnti, mac_key); break; default: - printf("Unsupported integrity algorithm %d.", integ_algo); + srsran::console_stderr("ERROR: Unsupported integrity algorithm %d.\n", integ_algo); } uint16_t short_mac_i = (((uint16_t)mac_key[2] << 8u) | (uint16_t)mac_key[3]);