diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-04-21 03:45:52 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-04-21 03:45:52 +0000 |
commit | 3799cffe24021aa162f601c9d0d038c6d28e01de (patch) | |
tree | be7278917c3a71795674d226cd6678aca9a4ab19 /package/madwifi | |
parent | 67335172556aed60a81ae9bb53467c12246b1396 (diff) | |
download | upstream-3799cffe24021aa162f601c9d0d038c6d28e01de.tar.gz upstream-3799cffe24021aa162f601c9d0d038c6d28e01de.tar.bz2 upstream-3799cffe24021aa162f601c9d0d038c6d28e01de.zip |
add some more fine tuning for madwifi
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10900 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rw-r--r-- | package/madwifi/patches/347-tuning.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/madwifi/patches/347-tuning.patch b/package/madwifi/patches/347-tuning.patch new file mode 100644 index 0000000000..ae4790f007 --- /dev/null +++ b/package/madwifi/patches/347-tuning.patch @@ -0,0 +1,43 @@ +Index: madwifi-trunk-r3314/ath/if_ath.c +=================================================================== +--- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-04-21 05:41:13.000000000 +0200 ++++ madwifi-trunk-r3314/ath/if_ath.c 2008-04-21 05:41:50.000000000 +0200 +@@ -10267,11 +10267,11 @@ + sc->sc_currates = rt; + sc->sc_curmode = mode; + /* +- * All protection frames are transmitted at 2Mb/s for +- * 11g, otherwise at 1Mb/s. ++ * All protection frames are transmitted at 11Mb/s for ++ * 11g, otherwise at 2Mb/s. + * XXX select protection rate index from rate table. + */ +- sc->sc_protrix = (mode == IEEE80211_MODE_11G ? 1 : 0); ++ sc->sc_protrix = (mode == IEEE80211_MODE_11G ? 3 : 1); + /* rate index used to send mgt frames */ + sc->sc_minrateix = 0; + } +Index: madwifi-trunk-r3314/ath/if_athvar.h +=================================================================== +--- madwifi-trunk-r3314.orig/ath/if_athvar.h 2008-04-21 05:41:13.000000000 +0200 ++++ madwifi-trunk-r3314/ath/if_athvar.h 2008-04-21 05:41:50.000000000 +0200 +@@ -223,8 +223,8 @@ + #define ATH_MAX_MTU 2290 + #define ATH_MIN_MTU 32 + +-#define ATH_RXBUF 40 /* number of RX buffers */ +-#define ATH_TXBUF 200 /* number of TX buffers */ ++#define ATH_RXBUF 80 /* number of RX buffers */ ++#define ATH_TXBUF 400 /* number of TX buffers */ + + #define ATH_MAXVAPS_MIN 2 /* minimum number of beacon buffers */ + #define ATH_MAXVAPS_MAX 64 /* maximum number of beacon buffers */ +@@ -235,7 +235,7 @@ + /* number of TX buffers reserved for mgt frames */ + #define ATH_TXBUF_MGT_RESERVED 5 + +-#define TAIL_DROP_COUNT 50 /* maximum number of queued frames allowed */ ++#define TAIL_DROP_COUNT 80 /* maximum number of queued frames allowed */ + + /* + * dynamic turbo specific macros. |