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
This commit is contained in:
nobelj
2020-02-21 12:00:48 -08:00
committed by Gerrit - the friendly Code Review server
parent ca1e6f5577
commit bbcadc149e

View File

@@ -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;