Date: Thu, 13 Sep 2012 07:25:41 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r240449 - head/sys/dev/ath/ath_hal/ar9002 Message-ID: <201209130725.q8D7PfLT044079@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Thu Sep 13 07:25:41 2012 New Revision: 240449 URL: http://svn.freebsd.org/changeset/base/240449 Log: Enable fractional 5G mode on half/quarter rate channels. Obtained from: Linux ath9k Modified: head/sys/dev/ath/ath_hal/ar9002/ar9280.c Modified: head/sys/dev/ath/ath_hal/ar9002/ar9280.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9002/ar9280.c Thu Sep 13 07:24:14 2012 (r240448) +++ head/sys/dev/ath/ath_hal/ar9002/ar9280.c Thu Sep 13 07:25:41 2012 (r240449) @@ -112,7 +112,17 @@ ar9280SetChannel(struct ath_hal *ah, con 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209130725.q8D7PfLT044079>