aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-05-30 13:38:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-05-30 13:38:54 +0000
commit21e17d3230fec156518459b5d7b936839f3d8b31 (patch)
tree4789c63c63d7a847b6e125c447a07d1a958ff77a /package
parent9af744afe836c76a099b67a7ea976724b1363923 (diff)
downloadupstream-21e17d3230fec156518459b5d7b936839f3d8b31.tar.gz
upstream-21e17d3230fec156518459b5d7b936839f3d8b31.tar.bz2
upstream-21e17d3230fec156518459b5d7b936839f3d8b31.zip
ath9k: reduce the number of rx buffers, 512 is excessively high, 128 should work just as well, and will use a lot less memory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27029 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/512-ath9k_reduce_rxbuf.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/512-ath9k_reduce_rxbuf.patch b/package/mac80211/patches/512-ath9k_reduce_rxbuf.patch
new file mode 100644
index 0000000000..96684aae90
--- /dev/null
+++ b/package/mac80211/patches/512-ath9k_reduce_rxbuf.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/ath/ath9k/ath9k.h
++++ b/drivers/net/wireless/ath/ath9k/ath9k.h
+@@ -119,7 +119,7 @@ void ath_descdma_cleanup(struct ath_soft
+ /* RX / TX */
+ /***********/
+
+-#define ATH_RXBUF 512
++#define ATH_RXBUF 128
+ #define ATH_TXBUF 512
+ #define ATH_TXBUF_RESERVE 5
+ #define ATH_MAX_QDEPTH (ATH_TXBUF / 4 - ATH_TXBUF_RESERVE)