aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-09-10 18:01:57 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-15 16:48:22 -0400
commit96dd22ac06b0dbfb069fdf530c72046a941e9694 (patch)
tree4dbf19921a1d4add0ca03a0ff1d7db37c4ecb8be /net/mac80211/iface.c
parentccd7b36286f8c42b3fa95c5a8d402162ffab41df (diff)
mac80211: inform driver of basic rateset
Drivers need to know the basic rateset to be able to configure the ACK/CTS programming in hardware correctly. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c4
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;