summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kossifidis <mickflemm@gmail.com>2010-12-03 06:09:38 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-12-06 16:01:27 -0500
commitf0e134a53ad95ba7a393b299ae56c9bdcaed8aec (patch)
tree3ddebaede2cf9c1309afcd9840dc01ec34eedcca
parent344b54b971bc5578281264fb6896e13b4120352b (diff)
downloadop-kernel-dev-f0e134a53ad95ba7a393b299ae56c9bdcaed8aec.zip
op-kernel-dev-f0e134a53ad95ba7a393b299ae56c9bdcaed8aec.tar.gz
ath5k: Fix reporting of RX dma stop failure
* Correctly report failure to stop RX DMA Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Tested-by: Sedat Dilek <sedat.dilek@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c
index 82541fe..0064be7 100644
--- a/drivers/net/wireless/ath/ath5k/dma.c
+++ b/drivers/net/wireless/ath/ath5k/dma.c
@@ -72,7 +72,7 @@ static int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah)
i--)
udelay(100);
- if (i)
+ if (!i)
ATH5K_DBG(ah->ah_sc, ATH5K_DEBUG_DMA,
"failed to stop RX DMA !\n");
OpenPOWER on IntegriCloud