Shuffle these initialisations to where they should be.

This commit is contained in:
Adrian Chadd 2012-06-24 08:28:06 +00:00
parent d77363ad5b
commit f8aa9fd500
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237527

View File

@ -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