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
This commit is contained in:
Abhinav Kumar 2018-04-17 12:48:51 +05:30 • committed by nshrivas
commit 8556167054
3 changed files with 9 additions and 0 deletions

View file

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

View file

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

View file

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