qcacmn: Move TX 2.0 code under WLAN_PKT_CAPTURE_TX_2_0 macro

Move TX 2.0 specific code under WLAN_PKT_CAPTURE_TX_2_0 macro.

Change-Id: I20bb1e49a902ec085fbc3df6828fef94a7c577d6
CRs-Fixed: 3415780
This commit is contained in:
Srinivas Girigowda
2022-12-14 17:02:55 -08:00
committed by Madan Koyyalamudi
parent f5321447c2
commit 0419d28f6e
14 changed files with 31 additions and 32 deletions

View File

@@ -37,7 +37,7 @@
#include <uniform_reo_status_header.h>
#include <wbm_release_ring_tx.h>
#include <phyrx_location.h>
#ifdef QCA_MONITOR_2_0_SUPPORT
#ifdef WLAN_PKT_CAPTURE_TX_2_0
#include <mon_ingress_ring.h>
#include <mon_destination_ring.h>
#endif
@@ -1563,7 +1563,7 @@ static void hal_hw_txrx_ops_attach_qca5332(struct hal_soc *hal_soc)
hal_get_rx_max_ba_window_qca5332;
hal_soc->ops->hal_get_reo_qdesc_size = hal_qca5332_get_reo_qdesc_size;
/* TX MONITOR */
#ifdef QCA_MONITOR_2_0_SUPPORT
#ifdef WLAN_PKT_CAPTURE_TX_2_0
hal_soc->ops->hal_txmon_is_mon_buf_addr_tlv =
hal_txmon_is_mon_buf_addr_tlv_generic_be;
hal_soc->ops->hal_txmon_populate_packet_info =
@@ -1579,7 +1579,7 @@ static void hal_hw_txrx_ops_attach_qca5332(struct hal_soc *hal_soc)
hal_soc->ops->hal_txmon_get_word_mask =
hal_txmon_get_word_mask_generic_be;
#endif /* TX_MONITOR_WORD_MASK */
#endif /* QCA_MONITOR_2_0_SUPPORT */
#endif /* WLAN_PKT_CAPTURE_TX_2_0 */
hal_soc->ops->hal_compute_reo_remap_ix0 = NULL;
hal_soc->ops->hal_tx_vdev_mismatch_routing_set =
hal_tx_vdev_mismatch_routing_set_generic_be;
@@ -2050,7 +2050,7 @@ struct hal_hw_srng_config hw_srng_table_5332[] = {
{},
/* PPE_RELEASE */
{},
#ifdef QCA_MONITOR_2_0_SUPPORT
#ifdef WLAN_PKT_CAPTURE_TX_2_0
{ /* TX_MONITOR_BUF */
.start_ring_id = HAL_SRNG_SW2TXMON_BUF0,
.max_rings = 1,