Prechádzať zdrojové kódy

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
nobelj 5 rokov pred
rodič
commit
bbcadc149e
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      dp/wifi3.0/dp_tx_capture.c

+ 4 - 4
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;