Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2012 08:28:06 +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: r237527 - head/sys/dev/ath
Message-ID:  <201206240828.q5O8S6Kf097563@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Jun 24 08:28:06 2012
New Revision: 237527
URL: http://svn.freebsd.org/changeset/base/237527

Log:
  Shuffle these initialisations to where they should be.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Sun Jun 24 08:09:06 2012	(r237526)
+++ head/sys/dev/ath/if_ath.c	Sun Jun 24 08:28:06 2012	(r237527)
@@ -723,6 +723,13 @@ ath_attach(u_int16_t devid, struct ath_s
 #endif
 
 	/*
+	 * Initial aggregation settings.
+	 */
+	sc->sc_hwq_limit = ATH_AGGR_MIN_QDEPTH;
+	sc->sc_tid_hwq_lo = ATH_AGGR_SCHED_LOW;
+	sc->sc_tid_hwq_hi = ATH_AGGR_SCHED_HIGH;
+
+	/*
 	 * Check if the hardware requires PCI register serialisation.
 	 * Some of the Owl based MACs require this.
 	 */
@@ -1824,13 +1831,6 @@ ath_init(void *arg)
 	sc->sc_beacons = 0;
 
 	/*
-	 * Initial aggregation settings.
-	 */
-	sc->sc_hwq_limit = ATH_AGGR_MIN_QDEPTH;
-	sc->sc_tid_hwq_lo = ATH_AGGR_SCHED_LOW;
-	sc->sc_tid_hwq_hi = ATH_AGGR_SCHED_HIGH;
-
-	/*
 	 * Setup the hardware after reset: the key cache
 	 * is filled as needed and the receive engine is
 	 * set going.  Frame transmit is handled entirely



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206240828.q5O8S6Kf097563>