Browse Source

qcacmn: Move the rx err handling API inside build flags

Move the rx err handling API inside build flags to avoid
compilation issue.

Change-Id: I41839bf2f1ee4681bcead9b8291a514e26cd7c8c
CRs-Fixed: 3605183
Pavankumar Nandeshwar 1 year ago
parent
commit
978f044cfb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dp/wifi3.0/dp_rx_err.c

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

@@ -1814,6 +1814,7 @@ dp_rx_err_ring_record_entry(struct dp_soc *soc, uint64_t paddr,
 }
 #endif
 
+#if defined(HANDLE_RX_REROUTE_ERR) || defined(REO_EXCEPTION_MSDU_WAR)
 static int dp_rx_err_handle_msdu_buf(struct dp_soc *soc,
 				     hal_ring_desc_t ring_desc)
 {
@@ -1867,6 +1868,7 @@ assert_return:
 	qdf_assert(0);
 	return lmac_id;
 }
+#endif
 
 #ifdef HANDLE_RX_REROUTE_ERR
 static int dp_rx_err_exception(struct dp_soc *soc, hal_ring_desc_t ring_desc)