qcacmn: tx peer capture filtering and discard

removing functions from cmn since they are used in component_dev

Change-Id: I3df5cf280a6922bb90284ee817e28009aa06db2b
This commit is contained in:
Ruben Columbus
2019-10-08 14:29:30 -07:00
committed by nshrivas
parent 34f6fe2132
commit 073874c4aa
3 changed files with 15 additions and 33 deletions

View File

@@ -8255,36 +8255,6 @@ static void dp_peer_set_nawds(struct cdp_peer *peer_handle, uint8_t value)
peer->nawds_enabled = value;
}
/**
* dp_peer_set_tx_capture_enabled: Set tx_cap_enabled bit in peer
* @peer_handle: Peer handle
* @value: Enable/disable setting for tx_cap_enabled
*
* Return: None
*/
static void
dp_peer_set_tx_capture_enabled(struct cdp_peer *peer_handle, bool value)
{
struct dp_peer *peer = (struct dp_peer *)peer_handle;
peer->tx_cap_enabled = value;
}
/**
* dp_peer_set_rx_capture_enabled: Set rx_cap_enabled bit in peer
* @peer_handle: Peer handle
* @value: Enable/disable setting for rx_cap_enabled
*
* Return: None
*/
static void
dp_peer_set_rx_capture_enabled(struct cdp_peer *peer_handle, bool value)
{
struct dp_peer *peer = (struct dp_peer *)peer_handle;
peer->rx_cap_enabled = value;
}
/**
* dp_peer_update_pkt_capture_params: Set Rx & Tx Capture flags for a peer
* @is_rx_pkt_cap_enable: enable/disable Rx packet capture in monitor mode
@@ -8298,7 +8268,6 @@ dp_peer_update_pkt_capture_params(struct cdp_pdev *pdev,
bool is_rx_pkt_cap_enable,
bool is_tx_pkt_cap_enable,
uint8_t *peer_mac)
{
struct dp_peer *peer;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -1097,4 +1097,10 @@ bool dp_rx_multipass_process(struct dp_peer *peer, qdf_nbuf_t nbuf,
uint8_t tid);
#endif
#ifndef WLAN_RX_PKT_CAPTURE_ENH
static inline
void dp_peer_set_rx_capture_enabled(struct cdp_peer *peer_handle, bool value)
{
}
#endif
#endif /* _DP_RX_H */

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -352,4 +352,11 @@ static inline void dp_tx_comp_process_exception(struct dp_tx_desc_s *tx_desc)
return;
}
/* TODO TX_FEATURE_NOT_YET */
#ifndef WLAN_TX_PKT_CAPTURE_ENH
static inline
void dp_peer_set_tx_capture_enabled(struct cdp_peer *peer_handle, bool value)
{
}
#endif
#endif