qcacmn: Add support to configure buffer size from kbuild
Add support to configure logging buffer size from
per-OEM kbuild based on memory requirement.
Change-Id: Ia91d79e5e738b1c9787015de101c3f67ccde46aa
CRs-Fixed: 2253438
diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h
index 8c23376..ff2235b 100644
--- a/wmi_unified_priv.h
+++ b/wmi_unified_priv.h
@@ -55,10 +55,16 @@
#ifdef WMI_INTERFACE_EVENT_LOGGING
+#ifndef WMI_EVENT_DEBUG_MAX_ENTRY
#define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
+#endif
+
#define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16)
+
/* wmi_mgmt commands */
+#ifndef WMI_MGMT_EVENT_DEBUG_MAX_ENTRY
#define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256)
+#endif
/**
* struct wmi_command_debug - WMI command log buffer data type