소스 검색

qcacld-3.0: Add additional debugs in PMKSA caching path

Add additional debugs in pmksa caching path.

Change-Id: I5e412c60c3455c1a40d6f742fb6536b9ac621748
CRs-Fixed: 2978751
Pragaspathi Thilagaraj 3 년 전
부모
커밋
5a540a315f
2개의 변경된 파일8개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      components/umac/mlme/connection_mgr/core/src/wlan_cm_roam_offload.c
  2. 5 0
      components/wmi/src/wmi_unified_roam_tlv.c

+ 3 - 5
components/umac/mlme/connection_mgr/core/src/wlan_cm_roam_offload.c

@@ -3972,16 +3972,14 @@ void cm_update_pmk_cache_ft(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id)
 	wlan_vdev_mlme_get_ssid(vdev, pmksa.ssid, &pmksa.ssid_len);
 	wlan_cm_roam_cfg_get_value(psoc, vdev_id,
 				   MOBILITY_DOMAIN, &src_cfg);
-	mlme_debug("copied the BSSID/SSID from session to PMKSA mdie %d",
-		  src_cfg.bool_value);
 	if (src_cfg.bool_value) {
 		pmksa.mdid.mdie_present = 1;
 		pmksa.mdid.mobility_domain = src_cfg.uint_value;
-		mlme_debug("copied the MDID to PMKSA");
+		mlme_debug("MDID:0x%x copied to PMKSA", src_cfg.uint_value);
 
 		status = wlan_crypto_update_pmk_cache_ft(vdev, &pmksa);
-		if (status == QDF_STATUS_SUCCESS)
-			mlme_debug("Updated the crypto cache table");
+		if (QDF_IS_STATUS_ERROR(status))
+			mlme_debug("Failed to update the crypto table");
 	}
 
 	wlan_objmgr_vdev_release_ref(vdev, WLAN_MLME_CM_ID);

+ 5 - 0
components/wmi/src/wmi_unified_roam_tlv.c

@@ -3194,6 +3194,11 @@ wmi_fill_rso_tlvs(wmi_unified_t wmi_handle, uint8_t *buf,
 				  roam_offload_11r->psk_msk_len,
 				  roam_offload_11r->psk_msk_ext_len,
 				  roam_offload_11r->mdid);
+			if (roam_offload_11r->psk_msk_len)
+				QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_WMI,
+						   QDF_TRACE_LEVEL_DEBUG,
+						   roam_offload_11r->psk_msk,
+						   WLAN_MAX_PMK_DUMP_BYTES);
 		} else {
 			WMITLV_SET_HDR(buf, WMITLV_TAG_ARRAY_STRUC,
 				       sizeof(wmi_roam_11i_offload_tlv_param));