|
@@ -92,11 +92,14 @@ static struct __qdf_device g_qdf_ctx;
|
|
|
|
|
|
static uint8_t cds_multicast_logging;
|
|
|
|
|
|
+#define DRIVER_VER_LEN (11)
|
|
|
+#define HANG_EVENT_VER_LEN (1)
|
|
|
+
|
|
|
struct cds_hang_event_fixed_param {
|
|
|
uint16_t tlv_header;
|
|
|
uint8_t recovery_reason;
|
|
|
- char driver_version[11];
|
|
|
- char hang_event_version;
|
|
|
+ char driver_version[DRIVER_VER_LEN];
|
|
|
+ char hang_event_version[HANG_EVENT_VER_LEN];
|
|
|
} qdf_packed;
|
|
|
|
|
|
#ifdef QCA_WIFI_QCA8074
|
|
@@ -577,10 +580,10 @@ static int cds_hang_event_notifier_call(struct notifier_block *block,
|
|
|
cmd->recovery_reason = gp_cds_context->recovery_reason;
|
|
|
|
|
|
qdf_mem_copy(&cmd->driver_version, QWLAN_VERSIONSTR,
|
|
|
- sizeof(QWLAN_VERSIONSTR));
|
|
|
+ DRIVER_VER_LEN);
|
|
|
|
|
|
qdf_mem_copy(&cmd->hang_event_version, QDF_HANG_EVENT_VERSION,
|
|
|
- sizeof(QDF_HANG_EVENT_VERSION));
|
|
|
+ HANG_EVENT_VER_LEN);
|
|
|
|
|
|
cds_hang_data->offset += total_len;
|
|
|
return NOTIFY_OK;
|