Revert "qcacmn: Enable CE history and record wmi rx events"

This reverts commit 39e73115943400fca3096aa6a620161568711336.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ib0cd4fe1d0599541f4bd54478603dec582b2d32f
diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c
index f1e1afc..222cebf 100644
--- a/hif/src/ce/ce_service.c
+++ b/hif/src/ce/ce_service.c
@@ -89,10 +89,7 @@
 	hif_ce_war1 = 1;
 }
 
-/*
 #ifdef CONFIG_SLUB_DEBUG_ON
-*/
-#if 1
 
 /**
  * struct hif_ce_event - structure for detailing a ce event
@@ -111,7 +108,7 @@
 };
 
 /* max history to record per copy engine */
-#define HIF_CE_HISTORY_MAX 2048
+#define HIF_CE_HISTORY_MAX 512
 qdf_atomic_t hif_ce_desc_history_index[CE_COUNT_MAX];
 struct hif_ce_desc_event hif_ce_desc_history[CE_COUNT_MAX][HIF_CE_HISTORY_MAX];
 
diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h
index 65a9fc6..c7116dc 100644
--- a/wmi/inc/wmi_unified_priv.h
+++ b/wmi/inc/wmi_unified_priv.h
@@ -180,14 +180,6 @@
 	qdf_thread_t *task;
 };
 
-struct wmi_rx_history_type {
-	uint32_t id;
-	wmi_buf_t evt_buf;
-	uint64_t timestamp;
-};
-
-#define WMI_RX_HISTORY_MAX 1024
-
 struct wmi_ops {
 QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
 				 uint8_t macaddr[IEEE80211_ADDR_LEN],
diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c
index a255129..b423832 100644
--- a/wmi/src/wmi_unified.c
+++ b/wmi/src/wmi_unified.c
@@ -85,9 +85,6 @@
 /* end of copy wmi.h */
 #endif /* CONFIG_WIN */
 
-struct wmi_rx_history_type wmi_rx_history[WMI_RX_HISTORY_MAX];
-uint16_t wmi_rx_hist_last_idx = 0;
-
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0))
 /* TODO Cleanup this backported function */
 static int qcacld_bp_seq_printf(struct seq_file *m, const char *f, ...)
@@ -1714,7 +1711,6 @@
 	int tlv_ok_status = 0;
 #endif
 	uint32_t idx = 0;
-	static uint16_t wmi_rx_hist_idx = 0;
 
 	id = WMI_GET_FIELD(qdf_nbuf_data(evt_buf), WMI_CMD_HDR, COMMANDID);
 
@@ -1724,14 +1720,6 @@
 	data = qdf_nbuf_data(evt_buf);
 	len = qdf_nbuf_len(evt_buf);
 
-	wmi_rx_history[wmi_rx_hist_idx].timestamp = qdf_get_log_timestamp();
-	wmi_rx_history[wmi_rx_hist_idx].evt_buf = evt_buf;
-	wmi_rx_history[wmi_rx_hist_idx].id = id;
-	wmi_rx_hist_last_idx = wmi_rx_hist_idx;
-
-	if (++wmi_rx_hist_idx == WMI_RX_HISTORY_MAX)
-		wmi_rx_hist_idx = 0;
-
 #ifndef WMI_NON_TLV_SUPPORT
 	if (wmi_handle->target_type == WMI_TLV_TARGET) {
 		/* Validate and pad(if necessary) the TLVs */