diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00config.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index e66fb316cd61..9c2f5517af2a 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | Copyright (C) 2004 - 2008 rt2x00 SourceForge Project | 2 | Copyright (C) 2004 - 2009 rt2x00 SourceForge Project |
3 | <http://rt2x00.serialmonkey.com> | 3 | <http://rt2x00.serialmonkey.com> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
@@ -32,7 +32,7 @@ | |||
32 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, | 32 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, |
33 | struct rt2x00_intf *intf, | 33 | struct rt2x00_intf *intf, |
34 | enum nl80211_iftype type, | 34 | enum nl80211_iftype type, |
35 | u8 *mac, u8 *bssid) | 35 | const u8 *mac, const u8 *bssid) |
36 | { | 36 | { |
37 | struct rt2x00intf_conf conf; | 37 | struct rt2x00intf_conf conf; |
38 | unsigned int flags = 0; | 38 | unsigned int flags = 0; |
@@ -42,6 +42,8 @@ void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, | |||
42 | switch (type) { | 42 | switch (type) { |
43 | case NL80211_IFTYPE_ADHOC: | 43 | case NL80211_IFTYPE_ADHOC: |
44 | case NL80211_IFTYPE_AP: | 44 | case NL80211_IFTYPE_AP: |
45 | case NL80211_IFTYPE_MESH_POINT: | ||
46 | case NL80211_IFTYPE_WDS: | ||
45 | conf.sync = TSF_SYNC_BEACON; | 47 | conf.sync = TSF_SYNC_BEACON; |
46 | break; | 48 | break; |
47 | case NL80211_IFTYPE_STATION: | 49 | case NL80211_IFTYPE_STATION: |
@@ -152,8 +154,7 @@ void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, | |||
152 | */ | 154 | */ |
153 | rt2x00dev->ops->lib->config_ant(rt2x00dev, ant); | 155 | rt2x00dev->ops->lib->config_ant(rt2x00dev, ant); |
154 | 156 | ||
155 | rt2x00lib_reset_link_tuner(rt2x00dev); | 157 | rt2x00link_reset_tuner(rt2x00dev, true); |
156 | rt2x00_reset_link_ant_rssi(&rt2x00dev->link); | ||
157 | 158 | ||
158 | memcpy(active, ant, sizeof(*ant)); | 159 | memcpy(active, ant, sizeof(*ant)); |
159 | 160 | ||
@@ -191,7 +192,7 @@ void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, | |||
191 | * which means we need to reset the link tuner. | 192 | * which means we need to reset the link tuner. |
192 | */ | 193 | */ |
193 | if (ieee80211_flags & IEEE80211_CONF_CHANGE_CHANNEL) | 194 | if (ieee80211_flags & IEEE80211_CONF_CHANGE_CHANNEL) |
194 | rt2x00lib_reset_link_tuner(rt2x00dev); | 195 | rt2x00link_reset_tuner(rt2x00dev, false); |
195 | 196 | ||
196 | rt2x00dev->curr_band = conf->channel->band; | 197 | rt2x00dev->curr_band = conf->channel->band; |
197 | rt2x00dev->tx_power = conf->power_level; | 198 | rt2x00dev->tx_power = conf->power_level; |