From owner-svn-src-all@FreeBSD.ORG Sun Jun 24 08:28:06 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DFADE106566B; Sun, 24 Jun 2012 08:28:06 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CB6098FC12; Sun, 24 Jun 2012 08:28:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5O8S61M097565; Sun, 24 Jun 2012 08:28:06 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5O8S6Kf097563; Sun, 24 Jun 2012 08:28:06 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201206240828.q5O8S6Kf097563@svn.freebsd.org> From: Adrian Chadd Date: Sun, 24 Jun 2012 08:28:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237527 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2012 08:28:07 -0000 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