Browse Source

qcacmn: Change the data type of message type id

The datatype of wd_msg_type_id was uint16_t which truncates the
upper bytes of msg id.

Changing the datatype of wd_msg_type_id from uint16_t to uint32_t.

Change-Id: I49b5eefd878660f6ba3d0b7da451df99661c59df
Surabhi Vishnoi 7 years ago
parent
commit
e7c1401cf0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      wmi/inc/wmi_unified_priv.h
  2. 1 1
      wmi/src/wmi_unified.c

+ 1 - 1
wmi/inc/wmi_unified_priv.h

@@ -183,7 +183,7 @@ struct fwdebug {
  * @ task - WMI workqueue task struct
  */
 struct wmi_wq_dbg_info {
-	uint16_t wd_msg_type_id;
+	uint32_t wd_msg_type_id;
 	qdf_workqueue_t *wmi_wq;
 	qdf_thread_t *task;
 };

+ 1 - 1
wmi/src/wmi_unified.c

@@ -1873,7 +1873,7 @@ end:
 
 #define WMI_WQ_WD_TIMEOUT (10 * 1000) /* 10s */
 
-static inline void wmi_workqueue_watchdog_warn(uint16_t msg_type_id)
+static inline void wmi_workqueue_watchdog_warn(uint32_t msg_type_id)
 {
 	QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
 		  "%s: Message type %x has exceeded its alloted time of %ds",