aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/119-minstrel_rates.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-01 20:04:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-01 20:04:47 +0000
commitd5072666052d4d7a6a710b2c12daa347db574257 (patch)
treef1fc51f04db8262381d749613d137a529b0ec541 /package/madwifi/patches/119-minstrel_rates.patch
parent2bf6b224571fb374c8b860e6ccccd611847ec41c (diff)
downloadupstream-d5072666052d4d7a6a710b2c12daa347db574257.tar.gz
upstream-d5072666052d4d7a6a710b2c12daa347db574257.tar.bz2
upstream-d5072666052d4d7a6a710b2c12daa347db574257.zip
optimize the performance of the minstrel rate algorithm - don't sample lower rates if the rate with the higest probability is high
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7437 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/119-minstrel_rates.patch')
-rw-r--r--package/madwifi/patches/119-minstrel_rates.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/madwifi/patches/119-minstrel_rates.patch b/package/madwifi/patches/119-minstrel_rates.patch
new file mode 100644
index 0000000000..605342739d
--- /dev/null
+++ b/package/madwifi/patches/119-minstrel_rates.patch
@@ -0,0 +1,12 @@
+diff -ur madwifi.old/ath_rate/minstrel/minstrel.c madwifi.dev/ath_rate/minstrel/minstrel.c
+--- madwifi.old/ath_rate/minstrel/minstrel.c 2007-06-01 16:44:25.137903000 +0200
++++ madwifi.dev/ath_rate/minstrel/minstrel.c 2007-06-01 22:03:15.408659936 +0200
+@@ -358,6 +358,8 @@
+ if (sn->rs_sampleColumn >= MINSTREL_COLUMNS)
+ sn->rs_sampleColumn = 0;
+ }
++ if (ndx < sn->max_prob_rate - 2)
++ ndx = sn->max_tp_rate;
+ } else
+ ndx = sn->max_tp_rate;
+ }