summaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_minstrel_ht.c
diff options
context:
space:
mode:
authorKarl Beldan <karl.beldan@rivierawaves.com>2013-04-18 14:26:21 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-04-22 15:47:12 +0200
commita36473621c871df14bbf2106ab0721b475aac8e0 (patch)
tree11b0df786ff4e847fa2c581da0312f5c20b3f86c /net/mac80211/rc80211_minstrel_ht.c
parentc2eb5b0f342c9b1c2e1d77680af71940fc997779 (diff)
downloadblackbird-op-linux-a36473621c871df14bbf2106ab0721b475aac8e0.tar.gz
blackbird-op-linux-a36473621c871df14bbf2106ab0721b475aac8e0.zip
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>
Diffstat (limited to 'net/mac80211/rc80211_minstrel_ht.c')
-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,
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:
OpenPOWER on IntegriCloud