From f8aa9fd500ba5a5ddfc749d41850a5834f32bb41 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sun, 24 Jun 2012 08:28:06 +0000 Subject: [PATCH] Shuffle these initialisations to where they should be. --- sys/dev/ath/if_ath.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 968b424b03d..84cbd00e3ec 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -722,6 +722,13 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) } #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. @@ -1823,13 +1830,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