From owner-svn-src-head@FreeBSD.ORG Wed Nov 9 04:08:01 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AC7F106564A; Wed, 9 Nov 2011 04:08:01 +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 7A0F08FC0A; Wed, 9 Nov 2011 04:08:01 +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 pA9481wH063403; Wed, 9 Nov 2011 04:08:01 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA9481FR063401; Wed, 9 Nov 2011 04:08:01 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201111090408.pA9481FR063401@svn.freebsd.org> From: Adrian Chadd Date: Wed, 9 Nov 2011 04:08:01 +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: r227371 - head/sys/dev/ath/ath_rate/sample X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 04:08:01 -0000 Author: adrian Date: Wed Nov 9 04:08:01 2011 New Revision: 227371 URL: http://svn.freebsd.org/changeset/base/227371 Log: Fix the compile to work when IEEE80211_DEBUG isn't defined. Sponsored by: Hobnob, Inc. Modified: head/sys/dev/ath/ath_rate/sample/sample.c Modified: head/sys/dev/ath/ath_rate/sample/sample.c ============================================================================== --- head/sys/dev/ath/ath_rate/sample/sample.c Wed Nov 9 01:40:46 2011 (r227370) +++ head/sys/dev/ath/ath_rate/sample/sample.c Wed Nov 9 04:08:01 2011 (r227371) @@ -760,7 +760,9 @@ update_stats(struct ath_softc *sc, struc { struct sample_node *sn = ATH_NODE_SAMPLE(an); struct sample_softc *ssc = ATH_SOFTC_SAMPLE(sc); +#ifdef IEEE80211_DEBUG const HAL_RATE_TABLE *rt = sc->sc_currates; +#endif const int size_bin = size_to_bin(frame_size); const int size = bin_to_size(size_bin); int tt, tries_so_far;