aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index f15832245e0e..6d4df3e79be4 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2497,6 +2497,18 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
2497 rt2x00_eeprom_addr(rt2x00dev, 2497 rt2x00_eeprom_addr(rt2x00dev,
2498 EEPROM_MAC_ADDR_0)); 2498 EEPROM_MAC_ADDR_0));
2499 2499
2500 /*
2501 * As rt2800 has a global fallback table we cannot specify
2502 * more then one tx rate per frame but since the hw will
2503 * try several rates (based on the fallback table) we should
2504 * still initialize max_rates to the maximum number of rates
2505 * we are going to try. Otherwise mac80211 will truncate our
2506 * reported tx rates and the rc algortihm will end up with
2507 * incorrect data.
2508 */
2509 rt2x00dev->hw->max_rates = 7;
2510 rt2x00dev->hw->max_rate_tries = 1;
2511
2500 rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &eeprom); 2512 rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &eeprom);
2501 2513
2502 /* 2514 /*