feature - support eia0 during S1 Handover

This commit is contained in:
Francisco 2021-04-30 18:22:31 +01:00 committed by Francisco Paisana
parent a43dd68d57
commit 051530177e
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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]);