From 031b91a1807b3e693bea3e78f17e58e543f6af93 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 1 Mar 2022 12:23:59 +0000 Subject: [PATCH] ue,nas5g: fix using wrong serving network name in authentication request --- srsue/src/stack/upper/nas_5g.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/srsue/src/stack/upper/nas_5g.cc b/srsue/src/stack/upper/nas_5g.cc index 6f98d1a7f..01c9fc668 100644 --- a/srsue/src/stack/upper/nas_5g.cc +++ b/srsue/src/stack/upper/nas_5g.cc @@ -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 \ No newline at end of file +} // namespace srsue