minstrel_ht: fix updating rate with best probability
PATCH 1/1 minstrel_ht: fix updating rate with best probability
From: Ming Lei <[email protected]>
The throughput should be considered when updating rate with best probability.
Signed-off-by Ming Lei <[email protected]>
--- net/mac80211/rc80211_minstrel_ht.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
net/mac80211/rc80211_minstrel_ht.c +2 -0
@@ -240,6 +240,7 @@ minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi) MINSTREL_FRAC(3, 4)) || mr->probability > cur_prob) { mg->max_prob_rate = index; cur_prob = mr->probability; + cur_prob_tp = mr->cur_tp; }if (mr->cur_tp > cur_tp) {
@@ -275,6 +276,7 @@ minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi) minstrel_mcs_groups[group].streams == 1) { mi->max_prob_rate = mg->max_prob_rate; cur_prob = mr->cur_prob; + cur_prob_tp = mr->cur_tp; } mr =minstrel_get_ratestats (mi, mg->max_tp_rate);
Signature · 1 line
1.6.2.5
Quoted 6 lines · On 2010-07-01 5:18 PM, [email protected] wrote:
From: Ming Lei <[email protected]>
The throughput should be considered when updating rate with best probability.
Signed-off-by Ming Lei <[email protected]>
Acked-by Felix Fietkau <[email protected]>