mac80211: minstrel_ht: initialize rates selection
authorKarl Beldan <karl.beldan@rivierawaves.com>
Thu, 18 Apr 2013 12:26:21 +0000 (14:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 22 Apr 2013 13:47:12 +0000 (15:47 +0200)
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 <karl.beldan@rivierawaves.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c

index a23a5cff0af54760cbd9cc51e249e966c1073389..a8e979e8f6b5e3262406d4a7ce68182fb1c3d72c 100644 (file)
@@ -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: