Kaynağa Gözat

qcacmn: Clean up DP API's

Remove DP API's which are not being used/defined.

Change-Id: I8a1ee7e3156873227131b526793f464ff4444312
CRs-Fixed: 2483400
Akshay Kosigi 5 yıl önce
ebeveyn
işleme
6eef9e3c6e
4 değiştirilmiş dosya ile 10 ekleme ve 15 silme
  1. 8 10
      dp/wifi3.0/dp_internal.h
  2. 1 1
      dp/wifi3.0/dp_rx.c
  3. 0 3
      dp/wifi3.0/dp_rx.h
  4. 1 1
      dp/wifi3.0/dp_wdi_event.c

+ 8 - 10
dp/wifi3.0/dp_internal.h

@@ -856,10 +856,6 @@ void dp_set_pn_check_wifi3(struct cdp_vdev *vdev_handle,
 void *dp_get_pdev_for_mac_id(struct dp_soc *soc, uint32_t mac_id);
 void dp_set_michael_key(struct cdp_peer *peer_handle,
 			bool is_unicast, uint32_t *key);
-#ifdef QCA_ENH_V3_STATS_SUPPORT
-uint32_t dp_pdev_tid_stats_display(void *pdev_handle,
-			enum _ol_ath_param_t param, uint32_t value, void *buff);
-#endif
 
 /**
  * dp_check_pdev_exists() - Validate pdev before use
@@ -1100,9 +1096,9 @@ int dp_wdi_event_sub(struct cdp_pdev *txrx_pdev_handle,
 	void *event_cb_sub_handle,
 	uint32_t event);
 
-void dp_wdi_event_handler(enum WDI_EVENT event, void *soc,
-		void *data, u_int16_t peer_id,
-		int status, u_int8_t pdev_id);
+void dp_wdi_event_handler(enum WDI_EVENT event, struct dp_soc *soc,
+			  void *data, u_int16_t peer_id,
+			  int status, u_int8_t pdev_id);
 
 int dp_wdi_event_attach(struct dp_pdev *txrx_pdev);
 int dp_wdi_event_detach(struct dp_pdev *txrx_pdev);
@@ -1145,9 +1141,11 @@ static inline int dp_wdi_event_sub(struct cdp_pdev *txrx_pdev_handle,
 	return 0;
 }
 
-static inline void dp_wdi_event_handler(enum WDI_EVENT event, void *soc,
-		void *data, u_int16_t peer_id,
-		int status, u_int8_t pdev_id)
+static inline
+void dp_wdi_event_handler(enum WDI_EVENT event,
+			  struct dp_soc *soc,
+			  void *data, u_int16_t peer_id,
+			  int status, u_int8_t pdev_id)
 {
 }
 

+ 1 - 1
dp/wifi3.0/dp_rx.c

@@ -1426,7 +1426,7 @@ static void dp_rx_msdu_stats_update(struct dp_soc *soc,
 }
 
 static inline bool is_sa_da_idx_valid(struct dp_soc *soc,
-				      void *rx_tlv_hdr,
+				      uint8_t *rx_tlv_hdr,
 				      qdf_nbuf_t nbuf)
 {
 	if ((qdf_nbuf_is_sa_valid(nbuf) &&

+ 0 - 3
dp/wifi3.0/dp_rx.h

@@ -1134,9 +1134,6 @@ dp_pdev_rx_buffers_attach(struct dp_soc *dp_soc, uint32_t mac_id,
 QDF_STATUS
 dp_rx_link_desc_return(struct dp_soc *soc, void *ring_desc, uint8_t bm_action);
 
-QDF_STATUS
-dp_rx_link_desc_buf_return(struct dp_soc *soc, struct dp_srng *dp_rxdma_srng,
-				void *buf_addr_info, uint8_t bm_action);
 /**
  * dp_rx_link_desc_return_by_addr - Return a MPDU link descriptor to
  *					(WBM) by address

+ 1 - 1
dp/wifi3.0/dp_wdi_event.c

@@ -110,7 +110,7 @@ dp_wdi_event_iter_sub(
 void
 dp_wdi_event_handler(
 	enum WDI_EVENT event,
-	void *soc,
+	struct dp_soc *soc,
 	void *data,
 	uint16_t peer_id,
 	int status, uint8_t pdev_id)