aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-26 00:27:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-26 00:27:40 +0000
commitda475964fe01113e279114a0bb1eb64ba32f3f00 (patch)
tree41466f3f37364d7b3d74e25984532a7944824861 /package/madwifi
parentfe27fd568e998994834818e925b4ffd5e398d462 (diff)
downloadupstream-da475964fe01113e279114a0bb1eb64ba32f3f00.tar.gz
upstream-da475964fe01113e279114a0bb1eb64ba32f3f00.tar.bz2
upstream-da475964fe01113e279114a0bb1eb64ba32f3f00.zip
madwifi: fix fast-frame related dma unmap bug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14192 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/395-ath_ff_unmap.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/madwifi/patches/395-ath_ff_unmap.patch b/package/madwifi/patches/395-ath_ff_unmap.patch
new file mode 100644
index 0000000000..595c43d5b1
--- /dev/null
+++ b/package/madwifi/patches/395-ath_ff_unmap.patch
@@ -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;