diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2012-09-13 07:25:41 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2012-09-13 07:25:41 +0000 |
| commit | 03a51ef8f4ed453766f9ceb0cb168794d83c5877 (patch) | |
| tree | 41fef0de19c1a306e734caa3349028d40c874159 /sys/dev/ath/ath_hal/ar9002 | |
| parent | 77ffc4c1fcbdd32b61df26a47ca55ba2bd6be1d8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath/ath_hal/ar9002')
| -rw-r--r-- | sys/dev/ath/ath_hal/ar9002/ar9280.c | 12 |
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; |
