From 85561670546abaea3eb226cff4a86fa566c78af3 Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Tue, 17 Apr 2018 12:48:51 +0530 Subject: [PATCH] qcacld-3.0: Add diag events for debugging Currently there are no diag events to inform user space about used AKM Suite, requested pairwise cipher, group cipher, and group key management in assoc request and algo num used in auth req. Add such diag events which can be useful in automation. Change-Id: I210773ded47a84a3d06390271401e53cbda83089 CRs-Fixed: 2203232 --- core/mac/src/pe/lim/lim_process_mlm_req_messages.c | 6 ++++++ core/mac/src/pe/lim/lim_utils.h | 1 + core/sme/src/csr/csr_util.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c index 23c818be3258..d8fddf922b9b 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c @@ -1241,6 +1241,10 @@ static void lim_process_mlm_auth_req(tpAniSirGlobal mac_ctx, uint32_t *msg) goto end; } else { pe_debug("lim_process_mlm_auth_req_sae is successful"); + lim_diag_event_report(mac_ctx, + WLAN_PE_DIAG_AUTH_ALGO_NUM, + session, eSIR_SUCCESS, + eSIR_AUTH_TYPE_SAE); return; } } else @@ -1257,6 +1261,8 @@ static void lim_process_mlm_auth_req(tpAniSirGlobal mac_ctx, uint32_t *msg) auth_frame_body.authAlgoNumber = (uint8_t) mac_ctx->lim.gpLimMlmAuthReq->authType; } + lim_diag_event_report(mac_ctx, WLAN_PE_DIAG_AUTH_ALGO_NUM, session, + eSIR_SUCCESS, auth_frame_body.authAlgoNumber); /* Prepare & send Authentication frame */ auth_frame_body.authTransactionSeqNumber = SIR_MAC_AUTH_FRAME_1; diff --git a/core/mac/src/pe/lim/lim_utils.h b/core/mac/src/pe/lim/lim_utils.h index 9bbf3c395b31..b5ea8356e3ec 100644 --- a/core/mac/src/pe/lim/lim_utils.h +++ b/core/mac/src/pe/lim/lim_utils.h @@ -664,6 +664,7 @@ typedef enum { WLAN_PE_DIAG_DISASSOC_FRAME_EVENT, WLAN_PE_DIAG_AUTH_ACK_EVENT, WLAN_PE_DIAG_ASSOC_ACK_EVENT, + WLAN_PE_DIAG_AUTH_ALGO_NUM, } WLAN_PE_DIAG_EVENT_TYPE; #ifdef FEATURE_WLAN_DIAG_SUPPORT diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 38633d3e838f..6d3298a366dc 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -4038,6 +4038,8 @@ uint8_t csr_construct_rsn_ie(tpAniSirGlobal pMac, uint32_t sessionId, gp_mgmt_cipher_suite, CSR_RSN_OUI_SIZE); } #endif + host_log_rsn_info(UnicastCypher, MulticastCypher, + AuthSuite, gp_mgmt_cipher_suite); /* Add in the fixed fields plus 1 Unicast cypher, less the * IE Header length Add in the size of the Auth suite (count