Remove unused parameter

master
Bedran Karakoc 3 years ago committed by Bedran Karakoc
parent aaaaea0537
commit 441251bdd1

@ -125,8 +125,7 @@ private:
int send_registration_request(); int send_registration_request();
int send_authentication_response(const uint8_t res[16]); int send_authentication_response(const uint8_t res[16]);
int send_security_mode_reject(const srsran::nas_5g::cause_5gmm_t::cause_5gmm_type_::options cause); int send_security_mode_reject(const srsran::nas_5g::cause_5gmm_t::cause_5gmm_type_::options cause);
int send_authentication_failure(const srsran::nas_5g::cause_5gmm_t::cause_5gmm_type_::options cause, int send_authentication_failure(const srsran::nas_5g::cause_5gmm_t::cause_5gmm_type_::options cause);
const uint8_t* auth_fail_param);
int send_security_mode_complete(const srsran::nas_5g::security_mode_command_t& security_mode_command); int send_security_mode_complete(const srsran::nas_5g::security_mode_command_t& security_mode_command);
int send_registration_complete(); int send_registration_complete();
int send_pdu_session_establishment_request(uint32_t transaction_identity, int send_pdu_session_establishment_request(uint32_t transaction_identity,

@ -457,8 +457,7 @@ int nas_5g::send_security_mode_complete(const srsran::nas_5g::security_mode_comm
return SRSRAN_SUCCESS; return SRSRAN_SUCCESS;
} }
int nas_5g::send_authentication_failure(const cause_5gmm_t::cause_5gmm_type_::options cause, int nas_5g::send_authentication_failure(const cause_5gmm_t::cause_5gmm_type_::options cause)
const uint8_t* auth_fail_param)
{ {
unique_byte_buffer_t pdu = srsran::make_byte_buffer(); unique_byte_buffer_t pdu = srsran::make_byte_buffer();
if (!pdu) { if (!pdu) {
@ -785,10 +784,10 @@ int nas_5g::handle_authentication_request(authentication_request_t& authenticati
} else if (auth_result == AUTH_FAILED) { } else if (auth_result == AUTH_FAILED) {
logger.error("Network authentication failure."); logger.error("Network authentication failure.");
send_authentication_failure(cause_5gmm_t::cause_5gmm_type::mac_failure, res); send_authentication_failure(cause_5gmm_t::cause_5gmm_type::mac_failure);
} else if (auth_result == AUTH_SYNCH_FAILURE) { } else if (auth_result == AUTH_SYNCH_FAILURE) {
logger.error("Network authentication synchronization failure."); logger.error("Network authentication synchronization failure.");
send_authentication_failure(cause_5gmm_t::cause_5gmm_type::synch_failure, res); send_authentication_failure(cause_5gmm_t::cause_5gmm_type::synch_failure);
} else { } else {
logger.error("Unhandled authentication failure cause"); logger.error("Unhandled authentication failure cause");
} }

Loading…
Cancel
Save