qcacmn: Dump WMI work queue stack for watchdog bite
In the event of an WMI work queue watchdog bite, dump the stack
trace to aid in debugging.
Change-Id: I7f3df5a56904748fb80afb1aef1aed90d20fbbc0
CRs-Fixed: 2145913
diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h
index aba1449..736f9df 100644
--- a/wmi_unified_priv.h
+++ b/wmi_unified_priv.h
@@ -48,6 +48,7 @@
#ifdef DFS_COMPONENT_ENABLE
#include <wlan_dfs_public_struct.h>
#endif
+#include <qdf_threads.h>
#define WMI_UNIFIED_MAX_EVENT 0x100
#define WMI_MAX_CMDS 1024
@@ -175,6 +176,18 @@
};
#endif /* WLAN_OPEN_SOURCE */
+/**
+ * struct wmi_wq_dbg_info - WMI WQ debug info
+ * @ wd_msg_type_id - wmi event id
+ * @ wmi_wq - WMI workqueue struct
+ * @ task - WMI workqueue task struct
+ */
+struct wmi_wq_dbg_info {
+ uint16_t wd_msg_type_id;
+ qdf_workqueue_t *wmi_wq;
+ qdf_thread_t *task;
+};
+
struct wmi_ops {
QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
uint8_t macaddr[IEEE80211_ADDR_LEN],