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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to