qcacld-3.0: Add HTC Credit History Feature flag
Add compilation flag to compile out HTC credit History
feature cleanly from the cld-3.2 driver binary.
Change-Id: I5f5e73e430d282c99d3077fb82ed1cb8eb79715a
CRs-Fixed: 2190545
diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h
index fe227d6..28073a9 100644
--- a/core/wma/inc/wma.h
+++ b/core/wma/inc/wma.h
@@ -2500,8 +2500,10 @@
{
t_wma_handle *wma = cds_get_context(QDF_MODULE_ID_WMA);
- if (wma)
+ if (wma) {
+ print(print_priv, "Command Log (count %u)", count);
wmi_print_cmd_log(wma->wmi_handle, count, print, print_priv);
+ }
}
static inline void wma_print_wmi_cmd_tx_cmp_log(uint32_t count,
@@ -2510,9 +2512,11 @@
{
t_wma_handle *wma = cds_get_context(QDF_MODULE_ID_WMA);
- if (wma)
+ if (wma) {
+ print(print_priv, "Command Tx Complete Log (count %u)", count);
wmi_print_cmd_tx_cmp_log(wma->wmi_handle, count, print,
print_priv);
+ }
}
static inline void wma_print_wmi_mgmt_cmd_log(uint32_t count,
@@ -2521,9 +2525,11 @@
{
t_wma_handle *wma = cds_get_context(QDF_MODULE_ID_WMA);
- if (wma)
+ if (wma) {
+ print(print_priv, "Management Command Log (count %u)", count);
wmi_print_mgmt_cmd_log(wma->wmi_handle, count, print,
print_priv);
+ }
}
static inline void wma_print_wmi_mgmt_cmd_tx_cmp_log(uint32_t count,
@@ -2532,9 +2538,12 @@
{
t_wma_handle *wma = cds_get_context(QDF_MODULE_ID_WMA);
- if (wma)
+ if (wma) {
+ print(print_priv,
+ "Management Command Tx Complete Log (count %u)", count);
wmi_print_mgmt_cmd_tx_cmp_log(wma->wmi_handle, count, print,
print_priv);
+ }
}
static inline void wma_print_wmi_event_log(uint32_t count,
@@ -2543,8 +2552,10 @@
{
t_wma_handle *wma = cds_get_context(QDF_MODULE_ID_WMA);
- if (wma)
+ if (wma) {
+ print(print_priv, "Event Log (count %u)", count);
wmi_print_event_log(wma->wmi_handle, count, print, print_priv);
+ }
}
static inline void wma_print_wmi_rx_event_log(uint32_t count,
@@ -2553,9 +2564,11 @@
{
t_wma_handle *wma = cds_get_context(QDF_MODULE_ID_WMA);
- if (wma)
+ if (wma) {
+ print(print_priv, "Rx Event Log (count %u)", count);
wmi_print_rx_event_log(wma->wmi_handle, count, print,
print_priv);
+ }
}
static inline void wma_print_wmi_mgmt_event_log(uint32_t count,
@@ -2564,9 +2577,54 @@
{
t_wma_handle *wma = cds_get_context(QDF_MODULE_ID_WMA);
- if (wma)
+ if (wma) {
+ print(print_priv, "Management Event Log (count %u)", count);
wmi_print_mgmt_event_log(wma->wmi_handle, count, print,
print_priv);
+ }
+}
+#else
+
+static inline void wma_print_wmi_cmd_log(uint32_t count,
+ qdf_abstract_print *print,
+ void *print_priv)
+{
+}
+
+static inline void wma_print_wmi_cmd_tx_cmp_log(uint32_t count,
+ qdf_abstract_print *print,
+ void *print_priv)
+{
+}
+
+static inline void wma_print_wmi_mgmt_cmd_log(uint32_t count,
+ qdf_abstract_print *print,
+ void *print_priv)
+{
+}
+
+static inline void wma_print_wmi_mgmt_cmd_tx_cmp_log(uint32_t count,
+ qdf_abstract_print *print,
+ void *print_priv)
+{
+}
+
+static inline void wma_print_wmi_event_log(uint32_t count,
+ qdf_abstract_print *print,
+ void *print_priv)
+{
+}
+
+static inline void wma_print_wmi_rx_event_log(uint32_t count,
+ qdf_abstract_print *print,
+ void *print_priv)
+{
+}
+
+static inline void wma_print_wmi_mgmt_event_log(uint32_t count,
+ qdf_abstract_print *print,
+ void *print_priv)
+{
}
#endif /* WMI_INTERFACE_EVENT_LOGGING */