]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/mac80211/iface.c
mac80211: inform driver of basic rateset
[linux-2.6-omap-h63xx.git] / net / mac80211 / iface.c
index 61b19340488c36f087cd73c1d68a1bce65da3e03..dab8eba2602f5b8fda13f1762e32e1649dbf3b93 100644 (file)
@@ -144,7 +144,9 @@ int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,
        ieee80211_setup_sdata(sdata, type);
 
        /* reset some values that shouldn't be kept across type changes */
-       sdata->basic_rates = 0;
+       sdata->bss_conf.basic_rates =
+               ieee80211_mandatory_rates(sdata->local,
+                       sdata->local->hw.conf.channel->band);
        sdata->drop_unencrypted = 0;
 
        return 0;