optimize the performance of the minstrel rate algorithm - don't sample lower rates...
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 119-minstrel_rates.patch
1 diff -ur madwifi.old/ath_rate/minstrel/minstrel.c madwifi.dev/ath_rate/minstrel/minstrel.c
2 --- madwifi.old/ath_rate/minstrel/minstrel.c 2007-06-01 16:44:25.137903000 +0200
3 +++ madwifi.dev/ath_rate/minstrel/minstrel.c 2007-06-01 22:03:15.408659936 +0200
4 @@ -358,6 +358,8 @@
5 if (sn->rs_sampleColumn >= MINSTREL_COLUMNS)
6 sn->rs_sampleColumn = 0;
7 }
8 + if (ndx < sn->max_prob_rate - 2)
9 + ndx = sn->max_tp_rate;
10 } else
11 ndx = sn->max_tp_rate;
12 }