From: Karl Beldan Date: Thu, 18 Apr 2013 12:26:21 +0000 (+0200) Subject: mac80211: minstrel_ht: initialize rates selection X-Git-Tag: v3.10-rc1~66^2~51^2^2~61^2~5 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a36473621c871df14bbf2106ab0721b475aac8e0;p=linux-block.git mac80211: minstrel_ht: initialize rates selection Initialize {mp,mi}->{max_tp_rate,max_tp_rate2,max_prob_rate} in minstrel_ht's rate_init and rate_update. Signed-off-by: Karl Beldan Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index a23a5cff0af5..a8e979e8f6b5 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -907,6 +907,9 @@ minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, if (!n_supported) goto use_legacy; + /* init {mi,mi->groups[*]}->{max_tp_rate,max_tp_rate2,max_prob_rate} */ + minstrel_ht_update_stats(mp, mi); + return; use_legacy: