Parcourir la source

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 il y a 8 ans
Parent
commit
7aec5b5e9b
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      wmi_unified.c

+ 5 - 0
wmi_unified.c

@@ -3013,6 +3013,11 @@ 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);
 }
 
+void wmi_set_tgt_assert(wmi_unified_t wmi_handle, bool val)
+{
+	wmi_handle->tgt_force_assert_enable = val;
+}
+
 #ifndef CONFIG_MCL
 /**
  * API to flush all the previous packets  associated with the wmi endpoint