diff --git a/utils/host_diag_log/inc/host_diag_core_event.h b/utils/host_diag_log/inc/host_diag_core_event.h index d820056ca8..fdb741a3a7 100644 --- a/utils/host_diag_log/inc/host_diag_core_event.h +++ b/utils/host_diag_log/inc/host_diag_core_event.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -582,6 +582,26 @@ struct event_wlan_csr_rsn_info { uint8_t group_mgmt[RSN_OUI_SIZE]; }; +/*------------------------------------------------------------------------- + Event ID: EVENT_WLAN_AUTH_INFO + ------------------------------------------------------------------------- + */ +/** + * struct event_wlan_lim_auth_info - Structure holding the + * algo num, seq num and status code for auth request + * @auth_algo_num: Gives information about algo num used in auth request + * @auth_transaction_seq_num: seq num of auth request + * @auth_status_code: status code of auth request + * + * This structure will hold the algo num, seq num and status code + * for auth request + */ +struct event_wlan_lim_auth_info { + uint16_t auth_algo_num; + uint16_t auth_transaction_seq_num; + uint16_t auth_status_code; +}; + /*------------------------------------------------------------------------- Event ID: EVENT_WLAN_WAKE_LOCK ------------------------------------------------------------------------*/ diff --git a/utils/host_diag_log/inc/host_diag_event_defs.h b/utils/host_diag_log/inc/host_diag_event_defs.h index ff55ff16c7..76cbcfb04d 100644 --- a/utils/host_diag_log/inc/host_diag_event_defs.h +++ b/utils/host_diag_log/inc/host_diag_event_defs.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -913,6 +913,22 @@ typedef enum { EVENT_WLAN_RSN_INFO = 0xC5B, + /* + * + * EVENT_WLAN_AUTH_INFO + * @auth_algo_num: Gives information about algo num used in auth request + * @auth_transaction_seq_num: seq num of auth request + * @auth_status_code: status code of auth request + * + * This event is used to send algo num, seq num and status code + * for auth request + * + * Supported Feature: STA + * + * + */ + + EVENT_WLAN_AUTH_INFO = 0xC92, EVENT_MAX_ID = 0x0FFF } event_id_enum_type; diff --git a/utils/host_diag_log/src/host_diag_log.c b/utils/host_diag_log/src/host_diag_log.c index ad1432c66a..32fcef122e 100644 --- a/utils/host_diag_log/src/host_diag_log.c +++ b/utils/host_diag_log/src/host_diag_log.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -294,6 +294,21 @@ void host_log_rsn_info(uint8_t *ucast_cipher, uint8_t *mcast_cipher, EVENT_WLAN_RSN_INFO); } +void +host_log_wlan_auth_info(uint16_t auth_algo_num, uint16_t auth_tx_seq_num, + uint16_t auth_status_code) +{ + WLAN_HOST_DIAG_EVENT_DEF(wlan_diag_event, + struct event_wlan_lim_auth_info); + + wlan_diag_event.auth_algo_num = auth_algo_num; + wlan_diag_event.auth_transaction_seq_num = auth_tx_seq_num; + wlan_diag_event.auth_status_code = auth_status_code; + + WLAN_HOST_DIAG_EVENT_REPORT(&wlan_diag_event, + EVENT_WLAN_AUTH_INFO); +} + #ifdef FEATURE_WLAN_DIAG_SUPPORT /** * qdf_wow_wakeup_host_event()- send wow wakeup event diff --git a/utils/host_diag_log/src/i_host_diag_core_event.h b/utils/host_diag_log/src/i_host_diag_core_event.h index c7978fe16d..e20d9f1407 100644 --- a/utils/host_diag_log/src/i_host_diag_core_event.h +++ b/utils/host_diag_log/src/i_host_diag_core_event.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -131,8 +131,35 @@ static inline void host_log_rsn_info(uint8_t *ucast_cipher, { } + #endif /* FEATURE_WLAN_DIAG_SUPPORT */ +#ifdef FEATURE_WLAN_DIAG_SUPPORT +/** + * host_log_wlan_auth_info() - This function is used to send + * algo num, seq num and status code for auth request + * @auth_algo_num: Gives information about algo num used in auth request + * @auth_tx_seq_num: seq num of auth request + * @auth_status_code: status code of auth request + * + * This function is used to send send algo num, seq num and status code + * for auth request + * + * Return: None + * + */ +void +host_log_wlan_auth_info(uint16_t auth_algo_num, uint16_t auth_tx_seq_num, + uint16_t auth_status_code); + +#else +static inline void +host_log_wlan_auth_info(uint16_t auth_algo_num, uint16_t auth_tx_seq_num, + uint16_t auth_status_code) +{ +} + +#endif /* FEATURE_WLAN_DIAG_SUPPORT */ #ifdef FEATURE_WLAN_DIAG_SUPPORT void qdf_wow_wakeup_host_event(uint8_t wow_wakeup_cause);