浏览代码

qcacmn: Correct the tlv length of the hangdata

The Tlv of the hang data is reduced to 2bytes from the 4bytes
change the structure defnitions accordingly.

Change-Id: I675e4d837afa92496aeebec408ebfd90cbb7ad32
CRs-Fixed: 2753821
Arun Kumar Khandavalli 4 年之前
父节点
当前提交
ffaafd74ef
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      hif/src/ce/ce_main.h
  2. 1 1
      htc/htc_credit_history.c
  3. 1 1
      wmi/src/wmi_hang_event.c

+ 1 - 1
hif/src/ce/ce_main.h

@@ -301,7 +301,7 @@ struct ce_index {
  * @ce_info: CE info
  */
 struct hang_event_info {
-	uint32_t tlv_header;
+	uint16_t tlv_header;
 	uint8_t active_tasklet_count;
 	uint8_t active_grp_tasklet_cnt;
 	uint8_t ce_count;

+ 1 - 1
htc/htc_credit_history.c

@@ -31,7 +31,7 @@ struct HTC_CREDIT_HISTORY {
 };
 
 struct htc_hang_data_fixed_param {
-	uint32_t tlv_header;
+	uint16_t tlv_header;
 	struct HTC_CREDIT_HISTORY credit_hist;
 } qdf_packed;
 

+ 1 - 1
wmi/src/wmi_hang_event.c

@@ -20,7 +20,7 @@
 #include <qdf_trace.h>
 
 struct wmi_hang_data_fixed_param {
-	uint32_t tlv_header; /* tlv tag and length */
+	uint16_t tlv_header; /* tlv tag and length */
 	uint32_t event;
 	uint32_t data;
 	uint64_t time;