|
@@ -567,6 +567,13 @@ minstrel_get_sample_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi)
|
|
|
sample_idx += mi->sample_group * MCS_GROUP_RATES;
|
|
|
minstrel_next_sample_idx(mi);
|
|
|
|
|
|
+ /*
|
|
|
+ * Sampling might add some overhead (RTS, no aggregation)
|
|
|
+ * to the frame. Hence, don't use sampling for the currently
|
|
|
+ * used max TP rate.
|
|
|
+ */
|
|
|
+ if (sample_idx == mi->max_tp_rate)
|
|
|
+ return -1;
|
|
|
/*
|
|
|
* When not using MRR, do not sample if the probability is already
|
|
|
* higher than 95% to avoid wasting airtime
|