From bbcadc149e3bb51e93a15d6510983e95bd0f6878 Mon Sep 17 00:00:00 2001 From: nobelj Date: Fri, 21 Feb 2020 12:00:48 -0800 Subject: [PATCH] qca-wifi: Fix tx capture enable and peer filter As a part of peer filter feature fix, tx capture feature support only for peer filter. with this fix it support tx capture enable too. Change-Id: I76e02b79a351bb3f73fa5c5d9e9a6dd583c27cc5 --- dp/wifi3.0/dp_tx_capture.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dp/wifi3.0/dp_tx_capture.c b/dp/wifi3.0/dp_tx_capture.c index 0896fa6d8d..aa6aef9d4a 100644 --- a/dp/wifi3.0/dp_tx_capture.c +++ b/dp/wifi3.0/dp_tx_capture.c @@ -164,10 +164,10 @@ inline bool dp_peer_or_pdev_tx_cap_enabled(struct dp_pdev *pdev, struct dp_peer *peer, uint8_t *mac_addr) { - if ((pdev->tx_capture_enabled == - CDP_TX_ENH_CAPTURE_ENABLE_ALL_PEERS) || - (pdev->tx_capture_enabled == - CDP_TX_ENH_CAPTURE_ENDIS_PER_PEER)) { + if (pdev->tx_capture_enabled == CDP_TX_ENH_CAPTURE_ENABLE_ALL_PEERS) { + return true; + } else if (pdev->tx_capture_enabled == + CDP_TX_ENH_CAPTURE_ENDIS_PER_PEER) { if (peer && peer->tx_cap_enabled) return true;