Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75cf49fe authored by Arun Kumar Khandavalli's avatar Arun Kumar Khandavalli Committed by snandini
Browse files

qcacmn: Trim the hang data size as per requirement

Trim the hang data as per the customer data size requirement.

Change-Id: I5a5d848f820ddeaa721dba176e67dba97fed7a71
CRs-Fixed: 2751370
parent 935f00af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ void htc_log_hang_credit_history(struct notifier_block *block, void *data)
	qdf_notif_block *notif_block = qdf_container_of(block, qdf_notif_block,
							notif_block);
	struct qdf_notifer_data *htc_hang_data = data;
	uint32_t count = 3, idx, total_len;
	uint32_t count = 1, idx, total_len;
	HTC_HANDLE htc;
	struct htc_hang_data_fixed_param *cmd;
	uint8_t *htc_buf_ptr;
+6 −6
Original line number Diff line number Diff line
@@ -24,13 +24,13 @@

#include <qdf_notifier.h>

#define QDF_HANG_EVENT_VERSION "1.0"
#define QDF_HANG_EVENT_VERSION "1"
/* Max hang event buffer size */
#define QDF_HANG_EVENT_DATA_SIZE 784
#define QDF_HANG_EVENT_DATA_SIZE 390
/* Max offset which host can write */
#define QDF_WLAN_MAX_HOST_OFFSET 390
#define QDF_WLAN_MAX_HOST_OFFSET 194
/* Start of the Firmware Data offset */
#define QDF_WLAN_HANG_FW_OFFSET 392
#define QDF_WLAN_HANG_FW_OFFSET 195

/**
 * hang_event_tag: Hang event tag for various modules
@@ -59,10 +59,10 @@ enum hang_event_tag {
#define QDF_HANG_EVENT_TLV_HDR_SIZE   (sizeof(uint32_t))

#define QDF_HANG_EVT_SET_HDR(tlv_buf, tag, len) \
	(((uint32_t *)(tlv_buf))[0]) = (((tag) << 16) | ((len) & 0x0000FFFF))
	(((uint16_t *)(tlv_buf))[0]) = (((tag) << 8) | ((len) & 0x000000FF))

#define QDF_HANG_GET_STRUCT_TLVLEN(tlv_struct) \
	((uint32_t)(sizeof(tlv_struct) - QDF_HANG_EVENT_TLV_HDR_SIZE))
	((uint16_t)(sizeof(tlv_struct) - QDF_HANG_EVENT_TLV_HDR_SIZE))

/**
 * qdf_notifier_data - Private data for notifier data
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ static void wmi_log_history(struct notifier_block *block, void *data,
							notif_block);
	struct qdf_notifer_data *wmi_hang_data = data;
	int nread, pos, total_len;
	unsigned int wmi_ring_size = 3;
	unsigned int wmi_ring_size = 1;
	uint64_t secs, usecs;
	struct wmi_event_debug *wmi_evt;
	struct wmi_unified *wmi_handle;