svn commit: r240449 - head/sys/dev/ath/ath_hal/ar9002

Adrian Chadd adrian at FreeBSD.org
Thu Sep 13 07:25:42 UTC 2012


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;


More information about the svn-src-all mailing list