Commit 0905be13 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for Security Command Reject

parent cd24d349
...@@ -586,19 +586,17 @@ void amf_n1::registration_request_handle(bool isNasSig, std::shared_ptr<nas_cont ...@@ -586,19 +586,17 @@ void amf_n1::registration_request_handle(bool isNasSig, std::shared_ptr<nas_cont
uint8_t _5g_mm_cap = regReq->get5GMMCapability(); uint8_t _5g_mm_cap = regReq->get5GMMCapability();
if (_5g_mm_cap == -1) { if (_5g_mm_cap == -1) {
Logger::amf_n1().warn("No Optional IE 5GMMCapability available"); Logger::amf_n1().warn("No Optional IE 5GMMCapability available");
} else {
nc.get()->mmCapability = _5g_mm_cap;
} }
nc.get()->mmCapability = _5g_mm_cap;
//Get UE Security Capability IE (optional), not included for periodic registration updating procedure //Get UE Security Capability IE (optional), not included for periodic registration updating procedure
uint8_t encrypt_alg = {0}; uint8_t encrypt_alg = {0};
uint8_t integrity_alg = {0}; uint8_t integrity_alg = {0};
if (!regReq->getUeSecurityCapability(encrypt_alg, integrity_alg)) { if (!regReq->getUeSecurityCapability(encrypt_alg, integrity_alg)) {
Logger::amf_n1().warn("No Optional IE UESecurityCapability available"); Logger::amf_n1().warn("No Optional IE UESecurityCapability available");
} else { }
nc.get()->ueSecurityCapEnc = encrypt_alg; nc.get()->ueSecurityCapEnc = encrypt_alg;
nc.get()->ueSecurityCapInt = integrity_alg; nc.get()->ueSecurityCapInt = integrity_alg;
}
//Get Requested NSSAI (Optional IE), if provided //Get Requested NSSAI (Optional IE), if provided
std::vector<SNSSAI_t> requestedNssai = {}; std::vector<SNSSAI_t> requestedNssai = {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment