diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-02-03 09:51:13 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:19:38 -0500 |
commit | f5507ce90be4e00a84b5bb4c7b4324455aa6ee21 (patch) | |
tree | 5a68598ccffb2c0226994237a46edd81909699f5 /drivers/net/wireless/rt2x00/rt2x00config.c | |
parent | 70e2fed4ec14df84ed72554d573794714b15a078 (diff) |
rt2x00: Remove HWMODE_{A,B,G}
rt2500usb initialized the SIFS and EIFS without using the
values coming from rt2x000lib. After this is fixed HWMODE_{A,B,G}
is now unused and can be removed in favour of the ieee80211_band
enumeration which could still be usefull later.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00config.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index a4d7917f2df5..69959124d25d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c | |||
@@ -229,23 +229,10 @@ config: | |||
229 | memset(&libconf, 0, sizeof(libconf)); | 229 | memset(&libconf, 0, sizeof(libconf)); |
230 | 230 | ||
231 | if (flags & CONFIG_UPDATE_PHYMODE) { | 231 | if (flags & CONFIG_UPDATE_PHYMODE) { |
232 | switch (conf->channel->band) { | ||
233 | case IEEE80211_BAND_5GHZ: | ||
234 | libconf.phymode = HWMODE_A; | ||
235 | break; | ||
236 | case IEEE80211_BAND_2GHZ: | ||
237 | /* Uh oh. what about B? */ | ||
238 | libconf.phymode = HWMODE_G; | ||
239 | break; | ||
240 | default: | ||
241 | ERROR(rt2x00dev, | ||
242 | "Attempt to configure unsupported mode (%d)" | ||
243 | "Defaulting to 802.11b", conf->channel->band); | ||
244 | libconf.phymode = HWMODE_B; | ||
245 | } | ||
246 | |||
247 | band = &rt2x00dev->bands[conf->channel->band]; | 232 | band = &rt2x00dev->bands[conf->channel->band]; |
248 | rate = &band->bitrates[band->n_bitrates - 1]; | 233 | rate = &band->bitrates[band->n_bitrates - 1]; |
234 | |||
235 | libconf.band = conf->channel->band; | ||
249 | libconf.basic_rates = rt2x00_get_rate(rate->hw_value)->ratemask; | 236 | libconf.basic_rates = rt2x00_get_rate(rate->hw_value)->ratemask; |
250 | } | 237 | } |
251 | 238 | ||