From 073874c4aa4ef0fbdb7fa6965a857554029061fa Mon Sep 17 00:00:00 2001 From: Ruben Columbus Date: Tue, 8 Oct 2019 14:29:30 -0700 Subject: [PATCH] qcacmn: tx peer capture filtering and discard removing functions from cmn since they are used in component_dev Change-Id: I3df5cf280a6922bb90284ee817e28009aa06db2b --- dp/wifi3.0/dp_main.c | 31 ------------------------------- dp/wifi3.0/dp_rx.h | 8 +++++++- dp/wifi3.0/dp_tx.h | 9 ++++++++- 3 files changed, 15 insertions(+), 33 deletions(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 4046a6f56264..db78810327eb 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -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; diff --git a/dp/wifi3.0/dp_rx.h b/dp/wifi3.0/dp_rx.h index 20a308b24172..b79ab85a429e 100644 --- a/dp/wifi3.0/dp_rx.h +++ b/dp/wifi3.0/dp_rx.h @@ -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 */ diff --git a/dp/wifi3.0/dp_tx.h b/dp/wifi3.0/dp_tx.h index ec1498b2239e..1d8141a16162 100644 --- a/dp/wifi3.0/dp_tx.h +++ b/dp/wifi3.0/dp_tx.h @@ -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