浏览代码

qcacmn: Add ini param to control the crash inject

qcacld-2.0 to qcacmn propagation

Currently the crash can be injected by iwpriv command and FW
gets crashed.
Changes are done to add the gEnableCrashInject ini parameter

1) This ini param is disabled by default.
2) If this param is disabled the crash inject is ignored.

Change-Id: I7e908be1e37090a9d343dc04411fe387f776a937
CRs-Fixed: 1087774
Ravi Kumar Bokka 8 年之前
父节点
当前提交
df1f3eaf78
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 9 0
      wmi_unified_api.h
  2. 1 0
      wmi_unified_priv.h

+ 9 - 0
wmi_unified_api.h

@@ -292,6 +292,15 @@ void wmi_set_is_wow_bus_suspended(wmi_unified_t wmi_handle, A_BOOL val);
  */
  */
 void wmi_tag_crash_inject(wmi_unified_t wmi_handle, A_BOOL flag);
 void wmi_tag_crash_inject(wmi_unified_t wmi_handle, A_BOOL flag);
 
 
+/**
+ * WMI API to set target assert
+ * @param wmi_handle: 	handle to WMI.
+ * @param val:		target assert config value.
+ *
+ * Return: 		none.
+ */
+void wmi_set_tgt_assert(wmi_unified_t wmi_handle, bool val);
+
 /**
 /**
  * generic function to block unified WMI command
  * generic function to block unified WMI command
  * @param wmi_handle      : handle to WMI.
  * @param wmi_handle      : handle to WMI.

+ 1 - 0
wmi_unified_priv.h

@@ -1438,6 +1438,7 @@ struct wmi_unified {
 #endif
 #endif
 	qdf_atomic_t is_wow_bus_suspended;
 	qdf_atomic_t is_wow_bus_suspended;
 	bool tag_crash_inject;
 	bool tag_crash_inject;
+	bool tgt_force_assert_enable;
 	enum wmi_target_type target_type;
 	enum wmi_target_type target_type;
 	struct wmi_rx_ops rx_ops;
 	struct wmi_rx_ops rx_ops;
 	struct wmi_ops *ops;
 	struct wmi_ops *ops;