Browse Source

qcacmn: Fix for compilation issues in REO management

Added suitable typecasting for qdf_set_bit and
qdf_clear_bit functions

Change-Id: I90fc0f441a6eae8dfdea43705373fced81b26b48
CRs-Fixed: 1105853
Venkata Sharath Chandra Manchala 8 years ago
parent
commit
8e8d8f1e82
4 changed files with 12 additions and 4 deletions
  1. 3 1
      dp/wifi3.0/dp_peer.c
  2. 4 0
      dp/wifi3.0/dp_rx_err.c
  3. 4 3
      hal/wifi3.0/hal_reo.c
  4. 1 0
      hal/wifi3.0/hal_reo.h

+ 3 - 1
dp/wifi3.0/dp_peer.c

@@ -24,7 +24,9 @@
 #include "dp_peer.h"
 #include <hal_api.h>
 #include <hal_reo.h>
-
+#ifdef CONFIG_MCL
+#include <cds_ieee80211_common.h>
+#endif
 /* Temporary definitions to be moved to wlan_cfg */
 static inline uint32_t wlan_cfg_max_peer_id(void *wlan_cfg_ctx)
 {

+ 4 - 0
dp/wifi3.0/dp_rx_err.c

@@ -23,7 +23,11 @@
 #include "hal_api.h"
 #include "qdf_trace.h"
 #include "qdf_nbuf.h"
+#ifdef CONFIG_MCL
+#include <cds_ieee80211_common.h>
+#else
 #include <ieee80211.h>
+#endif
 
 /**
  * dp_rx_cookie_2_link_desc_va() - Converts cookie to a virtual address of

+ 4 - 3
hal/wifi3.0/hal_reo.c

@@ -217,7 +217,7 @@ inline int hal_reo_cmd_unblock_cache(void *reo_ring, struct hal_soc *soc,
 
 {
 	uint32_t *reo_desc, val;
-	uint8_t index;
+	uint8_t index = 0;
 
 	hal_srng_access_start(soc, reo_ring);
 
@@ -709,7 +709,7 @@ inline void hal_reo_flush_cache_status(uint32_t *reo_desc, struct hal_soc *soc,
 					BLOCK_ERROR_DETAILS,
 					val);
 	if (!st->block_error)
-		qdf_set_bit(soc->index, &soc->reo_res_bitmap);
+		qdf_set_bit(soc->index, (unsigned long *)&soc->reo_res_bitmap);
 
 	/* cache flush status */
 	val = reo_desc[HAL_OFFSET_DW(REO_FLUSH_CACHE_STATUS_2,
@@ -764,7 +764,8 @@ inline void hal_reo_unblock_cache_status(uint32_t *reo_desc,
 					 val);
 
 	if (!st->error && (st->unblock_type == UNBLOCK_RES_INDEX))
-		qdf_clear_bit(soc->index, &soc->reo_res_bitmap);
+		qdf_clear_bit(soc->index,
+			     (unsigned long *)&soc->reo_res_bitmap);
 }
 
 inline void hal_reo_flush_timeout_list_status(

+ 1 - 0
hal/wifi3.0/hal_reo.h

@@ -19,6 +19,7 @@
 #ifndef _HAL_REO_H_
 #define _HAL_REO_H_
 
+#include <qdf_types.h>
 /* HW headers */
 #include <reo_descriptor_threshold_reached_status.h>
 #include <reo_flush_queue.h>