From ae5925e8e98eb3f504194397424bea28c0623032 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 1 Jun 2007 20:04:47 +0000 Subject: [PATCH] optimize the performance of the minstrel rate algorithm - don't sample lower rates if the rate with the higest probability is high SVN-Revision: 7437 --- package/madwifi/patches/119-minstrel_rates.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/madwifi/patches/119-minstrel_rates.patch 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; + } -- 2.30.2