Skip to content

Commit

Permalink
minstrel_ht: increase sampling frequency
Browse files Browse the repository at this point in the history
Try to sample all available rates, as sample attempts do not cost much
airtime and are appropriately spaced based on the average A-MPDU length.
This helps with faster recovery on rate fluctuations.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Felix Fietkau authored and Johannes Berg committed Mar 6, 2013
1 parent a299c6d commit 96d4ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/mac80211/rc80211_minstrel_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
}
}

/* try to sample up to half of the available rates during each interval */
mi->sample_count *= 4;
/* try to sample all available rates during each interval */
mi->sample_count *= 8;

cur_prob = 0;
cur_prob_tp = 0;
Expand Down

0 comments on commit 96d4ac3

Please sign in to comment.