Skip to content

Commit a0ca796

Browse files
Felix Fietkaujmberg-intel
authored andcommitted
mac80211/minstrel_ht: do not sample actively used rates
max_tp_rate2 and max_prob_rate tend to get used occasionally during retransmission, which is more useful for the statistics than probing with individual probe packets. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent bc96f24 commit a0ca796

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎net/mac80211/rc80211_minstrel_ht.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,13 @@ minstrel_get_sample_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
648648
/*
649649
* Sampling might add some overhead (RTS, no aggregation)
650650
* to the frame. Hence, don't use sampling for the currently
651-
* used max TP rate.
651+
* used rates.
652652
*/
653-
if (sample_idx == mi->max_tp_rate)
653+
if (sample_idx == mi->max_tp_rate ||
654+
sample_idx == mi->max_tp_rate2 ||
655+
sample_idx == mi->max_prob_rate)
654656
return -1;
657+
655658
/*
656659
* Do not sample if the probability is already higher than 95%
657660
* to avoid wasting airtime.

0 commit comments

Comments
 (0)