diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2009-11-23 16:44:47 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-28 15:04:33 -0500 |
commit | 38a522e6bc0fcd9848b91366ec899f1c2cb23609 (patch) | |
tree | 97241468dd9c162bd7c851fa933c4e42df4daee1 /drivers/net/wireless/rt2x00 | |
parent | c7c8adb53ff3e8fa3cf7a5144bd2791c4da2c07d (diff) |
rt2x00: Only initialize HT on rt2800 devices that support it.
Some RT28xx/RT30xx devices don't support 802.11n, when they are combined with
the RF2020 chipset. Ensure that HT is disabled for these devices.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index e94f1e13fea9..fcd0c88d5f04 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -2072,7 +2072,11 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) | |||
2072 | /* | 2072 | /* |
2073 | * Initialize HT information. | 2073 | * Initialize HT information. |
2074 | */ | 2074 | */ |
2075 | spec->ht.ht_supported = true; | 2075 | if (!rt2x00_rf(chip, RF2020)) |
2076 | spec->ht.ht_supported = true; | ||
2077 | else | ||
2078 | spec->ht.ht_supported = false; | ||
2079 | |||
2076 | spec->ht.cap = | 2080 | spec->ht.cap = |
2077 | IEEE80211_HT_CAP_SUP_WIDTH_20_40 | | 2081 | IEEE80211_HT_CAP_SUP_WIDTH_20_40 | |
2078 | IEEE80211_HT_CAP_GRN_FLD | | 2082 | IEEE80211_HT_CAP_GRN_FLD | |