Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2011 04:08:01 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227371 - head/sys/dev/ath/ath_rate/sample
Message-ID:  <201111090408.pA9481FR063401@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111090408.pA9481FR063401>