Jelajahi Sumber

qcacmn: Address compilation issues for WIN new fw headers

Address compilation issues for WIN with new Lithium Firmware headers.
Also removed dependency on htt.h from header files, which may need to
add explicit dependency on htt.h in .c files.

Change-Id: Ia5027963837e645bc3f81a3db98c2ea06789aea8
CRs-Fixed: 1061096
Pratik Gandhi 8 tahun lalu
induk
melakukan
424c62e877
5 mengubah file dengan 13 tambahan dan 9 penghapusan
  1. 1 2
      dp/inc/cdp_txrx_cmn.h
  2. 6 6
      dp/inc/cdp_txrx_ctrl.h
  3. 3 1
      hif/inc/hif.h
  4. 2 0
      hif/src/ce/ce_main.c
  5. 1 0
      wmi/src/wmi_unified_non_tlv.c

+ 1 - 2
dp/inc/cdp_txrx_cmn.h

@@ -33,7 +33,6 @@
 #define _CDP_TXRX_CMN_H_
 
 #include "htc_api.h"
-#include "htt.h"
 #include "qdf_types.h"
 #include "qdf_nbuf.h"
 
@@ -157,7 +156,7 @@ typedef int (*ol_txrx_proxy_arp_fp)(ol_osif_vdev_handle vdev,
  * ol_txrx_stats_callback - statistics notify callback
  */
 typedef void (*ol_txrx_stats_callback)(void *ctxt,
-				       enum htt_dbg_stats_type type,
+				       uint32_t type,
 				       uint8_t *buf, int bytes);
 
 /**

+ 6 - 6
dp/inc/cdp_txrx_ctrl.h

@@ -148,13 +148,13 @@ ol_txrx_set_drop_unenc(
  *  This will be used to populate the HTT desc packet type field during Tx
  *
  * @param vdev - the data virtual device object
- * @param val - the Tx encap type
+ * @param val - the Tx encap type (htt_pkt_type)
  * @return - void
  */
 void
 ol_txrx_set_tx_encap_type(
 	ol_txrx_vdev_handle vdev,
-	enum htt_pkt_type val);
+	uint32_t val);
 
 /**
  * @brief set the Rx decapsulation type of the VDEV
@@ -163,21 +163,21 @@ ol_txrx_set_tx_encap_type(
  *  decap all Rx packets into, for all peers under the VDEV.
  *
  * @param vdev - the data virtual device object
- * @param val - the Rx decap mode
+ * @param val - the Rx decap mode (htt_pkt_type)
  * @return - void
  */
 void
 ol_txrx_set_vdev_rx_decap_type(
 	ol_txrx_vdev_handle vdev,
-	enum htt_pkt_type val);
+	uint32_t val);
 
 /**
  * @brief get the Rx decapsulation type of the VDEV
  *
  * @param vdev - the data virtual device object
- * @return - the Rx decap type
+ * @return - the Rx decap type (htt_pkt_type)
  */
-enum htt_pkt_type
+uint32_t
 ol_txrx_get_vdev_rx_decap_type(ol_txrx_vdev_handle vdev);
 
 /* Is this similar to ol_txrx_peer_state_update() in MCL */

+ 3 - 1
hif/inc/hif.h

@@ -68,6 +68,7 @@ typedef void *hif_handle_t;
  * moved to latest copy of fw common header files.
  */
 #ifdef CONFIG_WIN
+#if ENABLE_10_4_FW_HDR
 #define TARGET_TYPE_UNKNOWN   0
 #define TARGET_TYPE_AR6001    1
 #define TARGET_TYPE_AR6002    2
@@ -90,9 +91,10 @@ typedef void *hif_handle_t;
 #define TARGET_TYPE_AR6320V3    16
 /* For Tufello1.0 target_reg_tbl ID*/
 #define TARGET_TYPE_QCA9377V1   17
+#endif /* ENABLE_10_4_FW_HDR */
 /* For Adrastea target */
 #define TARGET_TYPE_ADRASTEA     19
-#endif
+#endif /* CONFIG_WIN */
 
 struct CE_state;
 #define CE_COUNT_MAX 12

+ 2 - 0
hif/src/ce/ce_main.c

@@ -75,10 +75,12 @@ static int hif_post_recv_buffers_for_pipe(struct HIF_CE_pipe_info *pipe_info);
 #endif
 
 #ifdef CONFIG_WIN
+#if ENABLE_10_4_FW_HDR
 #define WDI_IPA_SERVICE_GROUP 5
 #define WDI_IPA_TX_SVC MAKE_SERVICE_ID(WDI_IPA_SERVICE_GROUP, 0)
 #define HTT_DATA2_MSG_SVC MAKE_SERVICE_ID(HTT_SERVICE_GROUP, 1)
 #define HTT_DATA3_MSG_SVC MAKE_SERVICE_ID(HTT_SERVICE_GROUP, 2)
+#endif /* ENABLE_10_4_FW_HDR */
 #endif
 
 static int hif_post_recv_buffers(struct hif_softc *scn);

+ 1 - 0
wmi/src/wmi_unified_non_tlv.c

@@ -29,6 +29,7 @@
 #include "osapi_linux.h"
 #include "a_types.h"
 #include "a_debug.h"
+#include "wlan_defs.h"
 #include "ol_if_athvar.h"
 #include "ol_defines.h"
 #include "wmi_unified_api.h"