mirror of https://github.com/PentHertz/srsLTE.git
feature - support eia0 during S1 Handover
This commit is contained in:
parent
a43dd68d57
commit
051530177e
|
@ -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,
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue