diff options
author | Bruno Randolf <br1@einfach.org> | 2011-01-24 23:15:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-28 15:44:26 -0500 |
commit | ead3dcff31111c3dc1205a383190614f045d94aa (patch) | |
tree | 281444c85930286ee0b4de56192b49d5690ecfab /drivers/net/wireless/ath/ath5k | |
parent | 5719efdde1d0ae8670b96eb8748d1a0dc6a37be2 (diff) |
ath5k: Enable 802.11j 4.9GHz frequencies
This enables 4.9GHz frequencies in ath5k if they are allowed as indicated by
the regulatory domain code. Currently this is MKK9_MKKC (0xfe).
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/caps.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath5k/caps.c b/drivers/net/wireless/ath/ath5k/caps.c index 39baee17d0da..f77e8a703c5c 100644 --- a/drivers/net/wireless/ath/ath5k/caps.c +++ b/drivers/net/wireless/ath/ath5k/caps.c | |||
@@ -57,9 +57,8 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah) | |||
57 | * XXX current ieee80211 implementation because the IEEE | 57 | * XXX current ieee80211 implementation because the IEEE |
58 | * XXX channel mapping does not support negative channel | 58 | * XXX channel mapping does not support negative channel |
59 | * XXX numbers (2312MHz is channel -19). Of course, this | 59 | * XXX numbers (2312MHz is channel -19). Of course, this |
60 | * XXX doesn't matter because these channels are out of range | 60 | * XXX doesn't matter because these channels are out of the |
61 | * XXX but some regulation domains like MKK (Japan) will | 61 | * XXX legal range. |
62 | * XXX support frequencies somewhere around 4.8GHz. | ||
63 | */ | 62 | */ |
64 | 63 | ||
65 | /* | 64 | /* |
@@ -67,8 +66,10 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah) | |||
67 | */ | 66 | */ |
68 | 67 | ||
69 | if (AR5K_EEPROM_HDR_11A(ee_header)) { | 68 | if (AR5K_EEPROM_HDR_11A(ee_header)) { |
70 | /* 4920 */ | 69 | if (ath_is_49ghz_allowed(caps->cap_eeprom.ee_regdomain)) |
71 | caps->cap_range.range_5ghz_min = 5005; | 70 | caps->cap_range.range_5ghz_min = 4920; |
71 | else | ||
72 | caps->cap_range.range_5ghz_min = 5005; | ||
72 | caps->cap_range.range_5ghz_max = 6100; | 73 | caps->cap_range.range_5ghz_max = 6100; |
73 | 74 | ||
74 | /* Set supported modes */ | 75 | /* Set supported modes */ |