aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 264a6c975f8b..fe140bf033f9 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -856,8 +856,12 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
856 856
857 INIT_LIST_HEAD(&sdata->key_list); 857 INIT_LIST_HEAD(&sdata->key_list);
858 858
859 sdata->force_unicast_rateidx = -1; 859 for (i = 0; i < IEEE80211_NUM_BANDS; i++) {
860 sdata->max_ratectrl_rateidx = -1; 860 struct ieee80211_supported_band *sband;
861 sband = local->hw.wiphy->bands[i];
862 sdata->rc_rateidx_mask[i] =
863 sband ? (1 << sband->n_bitrates) - 1 : 0;
864 }
861 865
862 /* setup type-dependent data */ 866 /* setup type-dependent data */
863 ieee80211_setup_sdata(sdata, type); 867 ieee80211_setup_sdata(sdata, type);