diff options
author | Karl Beldan <karl.beldan@rivierawaves.com> | 2013-04-18 16:26:21 +0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-22 17:47:12 +0400 |
commit | a36473621c871df14bbf2106ab0721b475aac8e0 (patch) | |
tree | 11b0df786ff4e847fa2c581da0312f5c20b3f86c /net/mac80211/rc80211_minstrel_ht.c | |
parent | c2eb5b0f342c9b1c2e1d77680af71940fc997779 (diff) | |
download | linux-a36473621c871df14bbf2106ab0721b475aac8e0.tar.xz |
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.c | 3 |
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: |