Browse Source

qcacmn: Register fw down legacy callback with QDF

Register fw down legacy callback with QDF such that new UMAC
components can call QDF API to check if fw is down or not.

Change-Id: I8d68cb7625fd75aa90ba09adfe13955c5418b54f
CRs-Fixed: 2202605
Rajeev Kumar 7 years ago
parent
commit
e7abced1a1
2 changed files with 3 additions and 3 deletions
  1. 1 1
      qdf/inc/qdf_util.h
  2. 2 2
      qdf/src/qdf_util.c

+ 1 - 1
qdf/inc/qdf_util.h

@@ -682,5 +682,5 @@ void qdf_get_random_bytes(void *buf, int nbytes)
  *
  * Return: none
  */
-void qdf_register_fw_down_callback(qdf_is_fw_down_callback *is_fw_down);
+void qdf_register_fw_down_callback(qdf_is_fw_down_callback is_fw_down);
 #endif /*_QDF_UTIL_H*/

+ 2 - 2
qdf/src/qdf_util.c

@@ -19,9 +19,9 @@
 #include "qdf_module.h"
 #include "qdf_util.h"
 
-static qdf_is_fw_down_callback *is_fw_down_cb;
+static qdf_is_fw_down_callback is_fw_down_cb;
 
-void qdf_register_fw_down_callback(qdf_is_fw_down_callback *is_fw_down)
+void qdf_register_fw_down_callback(qdf_is_fw_down_callback is_fw_down)
 {
 	is_fw_down_cb = is_fw_down;
 }