1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 21:09:53 +02:00

madwifi: fix fast-frame related dma unmap bug

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14192 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-01-26 00:27:40 +00:00
parent 42ea3e3949
commit 35784d8fa8

View File

@ -0,0 +1,11 @@
--- a/ath/if_ath.c
+++ b/ath/if_ath.c
@@ -13508,7 +13508,7 @@ cleanup_ath_buf(struct ath_softc *sc, st
bus_unmap_single(
sc->sc_bdev,
bf->bf_skbaddrff[i],
- (direction == BUS_DMA_TODEVICE ?
+ (direction == BUS_DMA_FROMDEVICE ?
sc->sc_rxbufsize : ffskb->len),
direction);
bf->bf_skbaddrff[i] = 0;