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

master
Pedro Alvarez 3 years ago
parent 520128162e
commit 031b91a180

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

Loading…
Cancel
Save