Browse Source

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
Surya Prakash Sivaraj 2 years ago
parent
commit
2517893ac1

+ 1 - 1
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
 

+ 4 - 0
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);
 }
 

+ 1 - 0
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 {