From 2517893ac18d17f194a29a3e8027db75ba702908 Mon Sep 17 00:00:00 2001 From: Surya Prakash Sivaraj Date: Fri, 14 Oct 2022 10:11:46 +0530 Subject: [PATCH] qcacld-3.0: Enhance the debugs in RSO path Add changes to enhance the debugs in the RSO path, to identify the current pmk stored in the rso config. Also, restrict the PMK dumps to a minimum size of 2. Change-Id: I6e89afed45f5d43b45508ae43b59400a6e24e5ef CRs-Fixed: 3312677 --- .../dispatcher/inc/wlan_cm_roam_public_struct.h | 2 +- .../mlme/connection_mgr/dispatcher/src/wlan_cm_roam_api.c | 4 ++++ components/wmi/src/wmi_unified_roam_tlv.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/umac/mlme/connection_mgr/dispatcher/inc/wlan_cm_roam_public_struct.h b/components/umac/mlme/connection_mgr/dispatcher/inc/wlan_cm_roam_public_struct.h index 65fc2001b0..142a4dc3be 100644 --- a/components/umac/mlme/connection_mgr/dispatcher/inc/wlan_cm_roam_public_struct.h +++ b/components/umac/mlme/connection_mgr/dispatcher/inc/wlan_cm_roam_public_struct.h @@ -102,7 +102,7 @@ #define WLAN_FILS_MAX_RIK_LENGTH WLAN_FILS_MAX_RRK_LENGTH #define WLAN_FILS_FT_MAX_LEN 48 -#define WLAN_MAX_PMK_DUMP_BYTES 6 +#define WLAN_MAX_PMK_DUMP_BYTES 2 #define DEFAULT_ROAM_SCAN_SCHEME_BITMAP 0 #define ROAM_MAX_CFG_VALUE 0xffffffff diff --git a/components/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_roam_api.c b/components/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_roam_api.c index 54ce10f054..267cabf810 100644 --- a/components/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_roam_api.c +++ b/components/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_roam_api.c @@ -638,6 +638,10 @@ void wlan_cm_set_psk_pmk(struct wlan_objmgr_pdev *pdev, if (psk_pmk) qdf_mem_copy(rso_cfg->psk_pmk, psk_pmk, pmk_len); rso_cfg->pmk_len = pmk_len; + + QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_MLME, QDF_TRACE_LEVEL_DEBUG, + rso_cfg->psk_pmk, WLAN_MAX_PMK_DUMP_BYTES); + wlan_objmgr_vdev_release_ref(vdev, WLAN_MLME_CM_ID); } diff --git a/components/wmi/src/wmi_unified_roam_tlv.c b/components/wmi/src/wmi_unified_roam_tlv.c index 795ef4aae5..e7d47616b6 100644 --- a/components/wmi/src/wmi_unified_roam_tlv.c +++ b/components/wmi/src/wmi_unified_roam_tlv.c @@ -3624,6 +3624,7 @@ static void wmi_fill_roam_offload_11r_params( if ((akm == WMI_AUTH_FT_RSNA_FILS_SHA256 || akm == WMI_AUTH_FT_RSNA_FILS_SHA384) && roam_req->fils_roam_config.fils_ft_len) { + wmi_debug("Update the FILS FT key to Firmware"); psk_msk = roam_req->fils_roam_config.fils_ft; len = roam_req->fils_roam_config.fils_ft_len; } else {