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/rt2500usb.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/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 38c968ee50f1..df176cd2ef42 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -358,18 +358,9 @@ static int rt2500usb_config_preamble(struct rt2x00_dev *rt2x00dev, | |||
358 | } | 358 | } |
359 | 359 | ||
360 | static void rt2500usb_config_phymode(struct rt2x00_dev *rt2x00dev, | 360 | static void rt2500usb_config_phymode(struct rt2x00_dev *rt2x00dev, |
361 | const int phymode, | ||
362 | const int basic_rate_mask) | 361 | const int basic_rate_mask) |
363 | { | 362 | { |
364 | rt2500usb_register_write(rt2x00dev, TXRX_CSR11, basic_rate_mask); | 363 | rt2500usb_register_write(rt2x00dev, TXRX_CSR11, basic_rate_mask); |
365 | |||
366 | if (phymode == HWMODE_B) { | ||
367 | rt2500usb_register_write(rt2x00dev, MAC_CSR11, 0x000b); | ||
368 | rt2500usb_register_write(rt2x00dev, MAC_CSR12, 0x0040); | ||
369 | } else { | ||
370 | rt2500usb_register_write(rt2x00dev, MAC_CSR11, 0x0005); | ||
371 | rt2500usb_register_write(rt2x00dev, MAC_CSR12, 0x016c); | ||
372 | } | ||
373 | } | 364 | } |
374 | 365 | ||
375 | static void rt2500usb_config_channel(struct rt2x00_dev *rt2x00dev, | 366 | static void rt2500usb_config_channel(struct rt2x00_dev *rt2x00dev, |
@@ -507,6 +498,8 @@ static void rt2500usb_config_duration(struct rt2x00_dev *rt2x00dev, | |||
507 | u16 reg; | 498 | u16 reg; |
508 | 499 | ||
509 | rt2500usb_register_write(rt2x00dev, MAC_CSR10, libconf->slot_time); | 500 | rt2500usb_register_write(rt2x00dev, MAC_CSR10, libconf->slot_time); |
501 | rt2500usb_register_write(rt2x00dev, MAC_CSR11, libconf->sifs); | ||
502 | rt2500usb_register_write(rt2x00dev, MAC_CSR12, libconf->eifs); | ||
510 | 503 | ||
511 | rt2500usb_register_read(rt2x00dev, TXRX_CSR18, ®); | 504 | rt2500usb_register_read(rt2x00dev, TXRX_CSR18, ®); |
512 | rt2x00_set_field16(®, TXRX_CSR18_INTERVAL, | 505 | rt2x00_set_field16(®, TXRX_CSR18_INTERVAL, |
@@ -519,8 +512,7 @@ static void rt2500usb_config(struct rt2x00_dev *rt2x00dev, | |||
519 | const unsigned int flags) | 512 | const unsigned int flags) |
520 | { | 513 | { |
521 | if (flags & CONFIG_UPDATE_PHYMODE) | 514 | if (flags & CONFIG_UPDATE_PHYMODE) |
522 | rt2500usb_config_phymode(rt2x00dev, libconf->phymode, | 515 | rt2500usb_config_phymode(rt2x00dev, libconf->basic_rates); |
523 | libconf->basic_rates); | ||
524 | if (flags & CONFIG_UPDATE_CHANNEL) | 516 | if (flags & CONFIG_UPDATE_CHANNEL) |
525 | rt2500usb_config_channel(rt2x00dev, &libconf->rf, | 517 | rt2500usb_config_channel(rt2x00dev, &libconf->rf, |
526 | libconf->conf->power_level); | 518 | libconf->conf->power_level); |