diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-09 00:12:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-11 15:02:14 -0400 |
commit | 0407cf1c7f0fdbecab7efbd8214ac2d1196a67f9 (patch) | |
tree | e54e0d71cf6b567ef280ea9670e29cacff0a2740 /drivers/net/wireless/ath/ath9k/ar9002_phy.c | |
parent | fe2b6afbce05abe90d31651d3b92c88e0abc5ecb (diff) |
ath9k_hw: set 5 GHz half/quarter channels on AR9002 using fractional mode
The radio seems to perform better that way
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9002_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9002_phy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_phy.c b/drivers/net/wireless/ath/ath9k/ar9002_phy.c index abc2cc8cefb7..ac8b35c5fa06 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_phy.c | |||
@@ -111,7 +111,9 @@ static int ar9002_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan) | |||
111 | 111 | ||
112 | switch (ah->eep_ops->get_eeprom(ah, EEP_FRAC_N_5G)) { | 112 | switch (ah->eep_ops->get_eeprom(ah, EEP_FRAC_N_5G)) { |
113 | case 0: | 113 | case 0: |
114 | if ((freq % 20) == 0) | 114 | if (IS_CHAN_HALF_RATE(chan) || IS_CHAN_QUARTER_RATE(chan)) |
115 | aModeRefSel = 0; | ||
116 | else if ((freq % 20) == 0) | ||
115 | aModeRefSel = 3; | 117 | aModeRefSel = 3; |
116 | else if ((freq % 10) == 0) | 118 | else if ((freq % 10) == 0) |
117 | aModeRefSel = 2; | 119 | aModeRefSel = 2; |