aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2012-09-13 07:25:41 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2012-09-13 07:25:41 +0000
commit03a51ef8f4ed453766f9ceb0cb168794d83c5877 (patch)
tree41fef0de19c1a306e734caa3349028d40c874159 /sys
parent77ffc4c1fcbdd32b61df26a47ca55ba2bd6be1d8 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/ath_hal/ar9002/ar9280.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ar9002/ar9280.c b/sys/dev/ath/ath_hal/ar9002/ar9280.c
index cc622f8c2804..104e4d1aa142 100644
--- a/sys/dev/ath/ath_hal/ar9002/ar9280.c
+++ b/sys/dev/ath/ath_hal/ar9002/ar9280.c
@@ -112,7 +112,17 @@ ar9280SetChannel(struct ath_hal *ah, const struct ieee80211_channel *chan)
switch (frac_n_5g) {
case 0:
- if ((freq % 20) == 0) {
+ /*
+ * Enable fractional mode for half/quarter rate
+ * channels.
+ *
+ * This is from the Linux ath9k code, rather than
+ * the Atheros HAL code.
+ */
+ if (IEEE80211_IS_CHAN_QUARTER(chan) ||
+ IEEE80211_IS_CHAN_HALF(chan))
+ aModeRefSel = 0;
+ else if ((freq % 20) == 0) {
aModeRefSel = 3;
} else if ((freq % 10) == 0) {
aModeRefSel = 2;