|
@@ -24,12 +24,9 @@
|
|
|
* The following callbacks should be defined static to make sure they are
|
|
|
* initialized to NULL
|
|
|
*/
|
|
|
-static qdf_self_recovery_callback self_recovery_cb;
|
|
|
-static qdf_ssr_callback ssr_protect_cb;
|
|
|
-static qdf_ssr_callback ssr_unprotect_cb;
|
|
|
-static qdf_is_module_state_transitioning_cb module_state_transitioning_cb;
|
|
|
-static qdf_is_fw_down_callback is_fw_down_cb;
|
|
|
-static qdf_is_recovering_callback is_recovering_cb;
|
|
|
+static qdf_self_recovery_callback self_recovery_cb;
|
|
|
+static qdf_is_fw_down_callback is_fw_down_cb;
|
|
|
+static qdf_is_recovering_callback is_recovering_cb;
|
|
|
|
|
|
void qdf_register_fw_down_callback(qdf_is_fw_down_callback is_fw_down)
|
|
|
{
|
|
@@ -68,48 +65,6 @@ void __qdf_trigger_self_recovery(const char *func, const uint32_t line)
|
|
|
|
|
|
qdf_export_symbol(__qdf_trigger_self_recovery);
|
|
|
|
|
|
-void qdf_register_ssr_protect_callbacks(qdf_ssr_callback protect,
|
|
|
- qdf_ssr_callback unprotect)
|
|
|
-{
|
|
|
- ssr_protect_cb = protect;
|
|
|
- ssr_unprotect_cb = unprotect;
|
|
|
-}
|
|
|
-
|
|
|
-qdf_export_symbol(qdf_register_ssr_protect_callbacks);
|
|
|
-
|
|
|
-void qdf_ssr_protect(const char *caller)
|
|
|
-{
|
|
|
- if (ssr_protect_cb)
|
|
|
- ssr_protect_cb(caller);
|
|
|
-}
|
|
|
-
|
|
|
-qdf_export_symbol(qdf_ssr_protect);
|
|
|
-
|
|
|
-void qdf_ssr_unprotect(const char *caller)
|
|
|
-{
|
|
|
- if (ssr_unprotect_cb)
|
|
|
- ssr_unprotect_cb(caller);
|
|
|
-}
|
|
|
-
|
|
|
-qdf_export_symbol(qdf_ssr_unprotect);
|
|
|
-
|
|
|
-void qdf_register_module_state_query_callback(
|
|
|
- qdf_is_module_state_transitioning_cb query)
|
|
|
-{
|
|
|
- module_state_transitioning_cb = query;
|
|
|
-}
|
|
|
-
|
|
|
-qdf_export_symbol(qdf_register_module_state_query_callback);
|
|
|
-
|
|
|
-bool qdf_is_module_state_transitioning(void)
|
|
|
-{
|
|
|
- if (module_state_transitioning_cb)
|
|
|
- return module_state_transitioning_cb();
|
|
|
- return false;
|
|
|
-}
|
|
|
-
|
|
|
-qdf_export_symbol(qdf_is_module_state_transitioning);
|
|
|
-
|
|
|
void qdf_register_recovering_state_query_callback(
|
|
|
qdf_is_recovering_callback is_recovering)
|
|
|
{
|