ath5k: Fix reporting of RX dma stop failure
authorNick Kossifidis <mickflemm@gmail.com>
Fri, 3 Dec 2010 04:09:38 +0000 (06:09 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Dec 2010 21:01:27 +0000 (16:01 -0500)
 * 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>
drivers/net/wireless/ath/ath5k/dma.c

index 82541fec9f0e08731c2341aa693bd6da981583a5..0064be7ce5c9fd5e9e513f559115b1de90aec40c 100644 (file)
@@ -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");