diff options
| author | Manjeet Singh <manjee@codeaurora.org> | 2016-11-09 18:07:56 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-18 02:21:03 -0800 |
| commit | 689536da18ac2bc92fceba74637f044f4009666f (patch) | |
| tree | dc216fa6cae313bc8f5f9c34b53e6b3051c77993 | |
| parent | 3f60505affd1459deeef5d979877510d47f6faaa (diff) | |
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
| -rw-r--r-- | wmi/inc/wmi_unified_api.h | 10 | ||||
| -rw-r--r-- | wmi/inc/wmi_unified_priv.h | 1 | ||||
| -rw-r--r-- | wmi/src/wmi_unified.c | 12 |
3 files changed, 23 insertions, 0 deletions
diff --git a/wmi/inc/wmi_unified_api.h b/wmi/inc/wmi_unified_api.h index 7fbac7e04497..63f0ae1daa57 100644 --- a/wmi/inc/wmi_unified_api.h +++ b/wmi/inc/wmi_unified_api.h @@ -256,6 +256,16 @@ 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); /** + * WMI API to set target assert + * + * @wmi_handle : handle to WMI. + * @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 * @param wmi_handle : handle to WMI. * @return 0 on success and -ve on failure. diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h index e91d5c66a5bf..9f9fa8092e8e 100644 --- a/wmi/inc/wmi_unified_priv.h +++ b/wmi/inc/wmi_unified_priv.h @@ -1213,6 +1213,7 @@ struct wmi_unified { #endif qdf_atomic_t is_wow_bus_suspended; bool tag_crash_inject; + bool tgt_force_assert_enable; enum wmi_target_type target_type; struct wmi_rx_ops rx_ops; struct wmi_ops *ops; diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index 352959b582c1..f1e99b27ae01 100644 --- a/wmi/src/wmi_unified.c +++ b/wmi/src/wmi_unified.c @@ -2476,6 +2476,18 @@ void wmi_set_is_wow_bus_suspended(wmi_unified_t wmi_handle, A_BOOL val) qdf_atomic_set(&wmi_handle->is_wow_bus_suspended, val); } +/** + * wmi_set_tgt_assert() - set target assert configuration + * + * @wmi_handle : handle to WMI. + * @val : target assert config value + * + * @Return: none. + */ +void wmi_set_tgt_assert(wmi_unified_t wmi_handle, bool val) +{ + wmi_handle->tgt_force_assert_enable = val; +} #ifdef WMI_NON_TLV_SUPPORT /** * API to flush all the previous packets associated with the wmi endpoint |
