2007-12-22 18:17:17 +02:00
|
|
|
Index: trunk/ath_rate/minstrel/minstrel.c
|
|
|
|
===================================================================
|
|
|
|
--- trunk/ath_rate/minstrel/minstrel.c (revision 3065)
|
|
|
|
+++ trunk/ath_rate/minstrel/minstrel.c (working copy)
|
|
|
|
@@ -446,7 +446,6 @@
|
2007-12-21 17:36:54 +02:00
|
|
|
const struct ath_desc *ds = &bf->bf_desc[0];
|
|
|
|
int final_rate = 0;
|
|
|
|
int tries = 0;
|
|
|
|
- int ndx = -1;
|
|
|
|
int mrr;
|
|
|
|
int final_ndx;
|
|
|
|
int rate0, tries0, ndx0;
|
2007-12-22 18:17:17 +02:00
|
|
|
@@ -485,8 +484,8 @@
|
2007-12-21 17:36:54 +02:00
|
|
|
mrr = sc->sc_mrretry && !(ic->ic_flags & IEEE80211_F_USEPROT) && ENABLE_MRR;
|
|
|
|
|
|
|
|
if (!mrr) {
|
|
|
|
- if ((0 <= ndx) && (ndx < sn->num_rates)) {
|
|
|
|
- sn->rs_rateattempts[ndx]++; /* only one rate was used */
|
|
|
|
+ if ((0 <= final_ndx) && (final_ndx < sn->num_rates)) {
|
2007-12-22 18:17:17 +02:00
|
|
|
+ sn->rs_rateattempts[final_ndx] += tries; /* only one rate was used */
|
2007-12-21 17:36:54 +02:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|