summaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/119-minstrel_rates.patch
blob: ddccbf68b56bc135bb06bd1130d9d28d82a71c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: madwifi-ng-r2525-20070630/ath_rate/minstrel/minstrel.c
===================================================================
--- madwifi-ng-r2525-20070630.orig/ath_rate/minstrel/minstrel.c	2007-07-03 23:02:28.825845250 +0200
+++ madwifi-ng-r2525-20070630/ath_rate/minstrel/minstrel.c	2007-07-03 23:02:30.209931750 +0200
@@ -359,6 +359,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;
 		 }