瀏覽代碼

qcacld-3.0: Optimize log in wma_add_beacon_filter

Print Hexdump of beacon filter ie instead
of printing every 32 bit IE in a loop.

Change-Id: I932944037759ab835e4dd0c0b6e71e49bf768da4
CRs-Fixed: 3134785
Utkarsh Bhatnagar 3 年之前
父節點
當前提交
3a2dfee265
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      core/wma/src/wma_features.c

+ 6 - 3
core/wma/src/wma_features.c

@@ -951,10 +951,13 @@ QDF_STATUS wma_add_beacon_filter(WMA_HANDLE handle,
 			(BCN_FLT_MAX_ELEMS_IE_LIST * sizeof(u_int32_t)));
 
 	ie_map = (A_UINT32 *)(buf + WMI_TLV_HDR_SIZE);
-	for (i = 0; i < BCN_FLT_MAX_ELEMS_IE_LIST; i++) {
+	for (i = 0; i < BCN_FLT_MAX_ELEMS_IE_LIST; i++)
 		ie_map[i] = filter_params->ie_map[i];
-		wma_debug("beacon filter ie map = %u", ie_map[i]);
-	}
+
+	wma_debug("Beacon filter ie map Hex dump:");
+	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_WMA, QDF_TRACE_LEVEL_DEBUG,
+			   (uint8_t *)ie_map,
+			   BCN_FLT_MAX_ELEMS_IE_LIST * sizeof(u_int32_t));
 
 	ret = wmi_unified_cmd_send(wmi_handle, wmi_buf, len,
 			WMI_ADD_BCN_FILTER_CMDID);