diff options
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index 0fc9449925ef..d2b264d1311d 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c | |||
@@ -648,10 +648,13 @@ minstrel_get_sample_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi) | |||
648 | /* | 648 | /* |
649 | * Sampling might add some overhead (RTS, no aggregation) | 649 | * Sampling might add some overhead (RTS, no aggregation) |
650 | * to the frame. Hence, don't use sampling for the currently | 650 | * to the frame. Hence, don't use sampling for the currently |
651 | * used max TP rate. | 651 | * used rates. |
652 | */ | 652 | */ |
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) | ||
654 | return -1; | 656 | return -1; |
657 | |||
655 | /* | 658 | /* |
656 | * Do not sample if the probability is already higher than 95% | 659 | * Do not sample if the probability is already higher than 95% |
657 | * to avoid wasting airtime. | 660 | * to avoid wasting airtime. |