ue,nas5g: fix using wrong serving network name in authentication request

This commit is contained in:
Pedro Alvarez 2022-03-01 12:23:59 +00:00
parent 520128162e
commit 031b91a180
1 changed files with 2 additions and 5 deletions

View File

@ -836,11 +836,8 @@ int nas_5g::handle_authentication_request(authentication_request_t& authenticati
logger.info("Handling Authentication Request");
ctxt_base.rx_count++;
// Generate authentication response using RAND, AUTN & KSI-ASME
uint16 mcc, mnc;
mcc = rrc_nr->get_mcc();
mnc = rrc_nr->get_mnc();
plmn_id_t plmn_id;
plmn_id.from_number(mcc, mnc);
usim->get_home_plmn_id(&plmn_id);
if (authentication_request.authentication_parameter_rand_present == false) {
logger.error("authentication_parameter_rand_present is not present");
@ -1359,4 +1356,4 @@ int nas_5g::add_pdu_session(uint16_t pdu_session_id,
return SRSRAN_SUCCESS;
}
} // namespace srsue
} // namespace srsue