Browse Source

qcacmn: Remove ol_defines dependency from WMI layer

ol_defines header inclusion is invalid in WMI layer.
Remove the header inclusion by abstracting the dependency
with in WMI layer.

Change-Id: I5eb8624605cde20b516a1d8d0c823996c363e119
CRs-Fixed: 2023821
Govind Singh 8 years ago
parent
commit
e3331b5b3c

+ 1 - 0
utils/pktlog/include/pktlog_ac.h

@@ -37,6 +37,7 @@
 #include <wmi_unified_api.h>
 #include <wdi_event_api.h>
 #include "hif.h"
+#include <ol_defines.h>
 
 #define NO_REG_FUNCS    4
 

+ 0 - 1
wmi/inc/wmi_unified_api.h

@@ -35,7 +35,6 @@
 
 #include <osdep.h>
 #include "a_types.h"
-#include "ol_defines.h"
 #ifdef CONFIG_MCL
 #include "wmi.h"
 #endif

+ 13 - 0
wmi/inc/wmi_unified_param.h

@@ -302,6 +302,19 @@
 #define MAX_ASSOC_IE_LENGTH 1024
 typedef uint32_t TARGET_INIT_STATUS;
 
+/**
+ * @brief Opaque handle of wmi structure
+ */
+struct wmi_unified;
+typedef struct wmi_unified *wmi_unified_t;
+
+typedef void *ol_scn_t;
+/**
+ * @wmi_event_handler function prototype
+ */
+typedef int (*wmi_unified_event_handler)(ol_scn_t scn_handle,
+		 uint8_t *event_buf, uint32_t len);
+
 typedef enum {
 	WMI_HOST_MODE_11A	= 0,   /* 11a Mode */
 	WMI_HOST_MODE_11G	= 1,   /* 11b/g Mode */

+ 0 - 1
wmi/src/wmi_unified.c

@@ -33,7 +33,6 @@
 #include "a_types.h"
 #include "a_debug.h"
 #include "ol_if_athvar.h"
-#include "ol_defines.h"
 #include "htc_api.h"
 #include "htc_api.h"
 #include "dbglog_host.h"

+ 0 - 1
wmi/src/wmi_unified_api.c

@@ -29,7 +29,6 @@
 #include "a_types.h"
 #include "a_debug.h"
 #include "ol_if_athvar.h"
-#include "ol_defines.h"
 #include "wmi_unified_priv.h"
 #include "wmi_unified_param.h"
 

+ 0 - 1
wmi/src/wmi_unified_non_tlv.c

@@ -31,7 +31,6 @@
 #include "a_debug.h"
 #include "wlan_defs.h"
 #include "ol_if_athvar.h"
-#include "ol_defines.h"
 #include "wmi_unified_api.h"
 #include "wmi_unified_priv.h"