ath9k: fix dma direction for map/unmap in ath_rx_tasklet
authorMing Lei <tom.leiming@gmail.com>
Fri, 14 May 2010 13:15:38 +0000 (21:15 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Jun 2010 20:13:07 +0000 (16:13 -0400)
For edma, we should use DMA_BIDIRECTIONAL, or else use
DMA_FROM_DEVICE.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c

index ca6065b..e3e5291 100644 (file)
@@ -844,9 +844,9 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp)
        int dma_type;
 
        if (edma)
-               dma_type = DMA_FROM_DEVICE;
-       else
                dma_type = DMA_BIDIRECTIONAL;
+       else
+               dma_type = DMA_FROM_DEVICE;
 
        qtype = hp ? ATH9K_RX_QUEUE_HP : ATH9K_RX_QUEUE_LP;
        spin_lock_bh(&sc->rx.rxbuflock);