aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2011-11-09 04:08:01 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2011-11-09 04:08:01 +0000
commitec3dec2ff31f114c7ddd3ab355d270b8b68f5bcb (patch)
tree9c1e4cc33f197e098a6215633c3e2de5474c982e /sys/dev
parent415f0311633e57f18b33fddb5aea0a2f49d268ab (diff)
downloadsrc-ec3dec2ff31f114c7ddd3ab355d270b8b68f5bcb.tar.gz
src-ec3dec2ff31f114c7ddd3ab355d270b8b68f5bcb.zip
Fix the compile to work when IEEE80211_DEBUG isn't defined.
Sponsored by: Hobnob, Inc.
Notes
Notes: svn path=/head/; revision=227371
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/ath_rate/sample/sample.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c
index e639f6c86eae..47ca0630660c 100644
--- a/sys/dev/ath/ath_rate/sample/sample.c
+++ b/sys/dev/ath/ath_rate/sample/sample.c
@@ -760,7 +760,9 @@ update_stats(struct ath_softc *sc, struct ath_node *an,
{
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;