qcacmn: Add change to modify if to ifdef
Add change to modify if to ifdef Change-Id: I49e3841deb4168cbbc4e0a4f045413717aa97d2a CRs-Fixed: 3050747
This commit is contained in:
@@ -494,7 +494,7 @@ int htt_srng_setup(struct htt_soc *soc, int mac_id,
|
||||
htt_ring_id = HTT_RXDMA_NON_MONITOR_DEST_RING;
|
||||
htt_ring_type = HTT_HW_TO_SW_RING;
|
||||
break;
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR
|
||||
// WAR till fw htt.h changes are merged
|
||||
case TX_MONITOR_BUF:
|
||||
htt_ring_id = HTT_TX_MON_HOST2MON_BUF_RING;
|
||||
|
@@ -37,7 +37,7 @@ void dp_rx_mon_packet_length_set(uint32_t *msg_word,
|
||||
{
|
||||
if (!msg_word || !tlv_filter)
|
||||
return;
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
HTT_RX_MONITOR_CFG_CONFIG_LENGTH_MGMT_SET(*msg_word,
|
||||
tlv_filter->mgmt_dma_length);
|
||||
HTT_RX_MONITOR_CFG_CONFIG_LENGTH_CTRL_SET(*msg_word,
|
||||
@@ -53,7 +53,7 @@ void dp_rx_mon_enable_mpdu_logging(uint32_t *msg_word,
|
||||
if (!msg_word || !tlv_filter)
|
||||
return;
|
||||
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
if (htt_tlv_filter->mgmt_mpdu_log)
|
||||
HTT_RX_MONITOR_CFG_MPDU_LOGGING_SET(*msg_word, MGMT,
|
||||
tlv_filter->mgmt_mpdu_log);
|
||||
@@ -75,7 +75,7 @@ dp_rx_mon_word_mask_subscribe(uint32_t *msg_word,
|
||||
if (!msg_word || !tlv_filter)
|
||||
return;
|
||||
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
HTT_RX_RING_SELECTION_CFG_RX_MPDU_START_WMASK_SET(*msg_word,
|
||||
tlv_filter->rx_mpdu_start_word_mask);
|
||||
|
||||
@@ -365,7 +365,7 @@ htt_tx_tlv_filter_mask_set_in1(uint32_t *msg_word,
|
||||
MACTX_USER_DESC_COMMON,
|
||||
tlv->mactx_user_desc_cmn);
|
||||
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
if (tlv->l_sig_a)
|
||||
htt_tx_monitor_tlv_filter_in1_enable_set(*msg_word,
|
||||
L_SIG_A,
|
||||
@@ -520,7 +520,7 @@ htt_tx_tlv_filter_mask_set_in2(uint32_t *msg_word,
|
||||
TQM_ACKED_1K_MPDU,
|
||||
tlv->tqm_acked_1k_mpdu);
|
||||
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
if (tlv->txpcu_buf_status)
|
||||
htt_tx_monitor_tlv_filter_in2_enable_set(*msg_word,
|
||||
TXPCU_BUFFER_STATUS,
|
||||
@@ -714,7 +714,7 @@ int htt_h2t_tx_ring_cfg(struct htt_soc *htt_soc, int pdev_id,
|
||||
|
||||
hal_get_srng_params(soc->hal_soc, hal_ring_hdl, &srng_params);
|
||||
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
switch (hal_ring_type) {
|
||||
case TX_MONITOR_BUF:
|
||||
htt_ring_id = HTT_TX_MON_HOST2MON_BUF_RING;
|
||||
@@ -777,7 +777,7 @@ int htt_h2t_tx_ring_cfg(struct htt_soc *htt_soc, int pdev_id,
|
||||
HTT_TX_MONITOR_CFG_RING_BUFFER_SIZE_SET(*msg_word,
|
||||
ring_buf_size);
|
||||
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
if (htt_tlv_filter->mgmt_filter)
|
||||
htt_tx_ring_pkt_type_set(*msg_word, ENABLE_FLAGS,
|
||||
MGMT, 1);
|
||||
@@ -879,7 +879,7 @@ int htt_h2t_tx_ring_cfg(struct htt_soc *htt_soc, int pdev_id,
|
||||
HTT_TX_MONITOR_CFG_RXPCU_USER_SETUP_WORD_MASK_SET(*msg_word,
|
||||
htt_tlv_filter->wmask.rxpcu_user_setup);
|
||||
|
||||
#if QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT_WAR /* Yet to get FW support */
|
||||
htt_tx_ring_pkt_type_set(*msg_word, ENABLE_MSDU_OR_MPDU_LOGGING,
|
||||
MGMT,
|
||||
htt_tlv_filter->mgmt_mpdu_log);
|
||||
|
@@ -138,7 +138,15 @@ QDF_STATUS dp_mon_vdev_detach(struct dp_vdev *vdev);
|
||||
* Return: QDF_STATUS_SUCCESS: Success
|
||||
* QDF_STATUS_E_NOMEM: Error
|
||||
*/
|
||||
#if defined(WLAN_TX_PKT_CAPTURE_ENH) || defined(FEATURE_PERPKT_INFO)
|
||||
QDF_STATUS dp_mon_peer_attach(struct dp_peer *peer);
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS dp_mon_peer_attach(struct dp_peer *peer)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* dp_mon_peer_detach() - DP monitor peer detach
|
||||
|
Reference in New Issue
Block a user