aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Beldan <karl.beldan@rivierawaves.com>2013-04-18 08:26:21 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-04-22 09:47:12 -0400
commita36473621c871df14bbf2106ab0721b475aac8e0 (patch)
tree11b0df786ff4e847fa2c581da0312f5c20b3f86c
parentc2eb5b0f342c9b1c2e1d77680af71940fc997779 (diff)
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 <karl.beldan@rivierawaves.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/rc80211_minstrel_ht.c3
1 files changed, 3 insertions, 0 deletions
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,
907 if (!n_supported) 907 if (!n_supported)
908 goto use_legacy; 908 goto use_legacy;
909 909
910 /* init {mi,mi->groups[*]}->{max_tp_rate,max_tp_rate2,max_prob_rate} */
911 minstrel_ht_update_stats(mp, mi);
912
910 return; 913 return;
911 914
912use_legacy: 915use_legacy: