diff options
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 61b19340488c..dab8eba2602f 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -144,7 +144,9 @@ int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata, | |||
144 | ieee80211_setup_sdata(sdata, type); | 144 | ieee80211_setup_sdata(sdata, type); |
145 | 145 | ||
146 | /* reset some values that shouldn't be kept across type changes */ | 146 | /* reset some values that shouldn't be kept across type changes */ |
147 | sdata->basic_rates = 0; | 147 | sdata->bss_conf.basic_rates = |
148 | ieee80211_mandatory_rates(sdata->local, | ||
149 | sdata->local->hw.conf.channel->band); | ||
148 | sdata->drop_unencrypted = 0; | 150 | sdata->drop_unencrypted = 0; |
149 | 151 | ||
150 | return 0; | 152 | return 0; |