From aaa45683215db3b47500fd807a21cbab361815a0 Mon Sep 17 00:00:00 2001
From: Adrian Chadd <adrian@FreeBSD.org>
Date: Wed, 2 Jan 2013 04:00:54 +0000
Subject: [PATCH] Link if_ath_spectral.c into the build.

---
 sys/conf/files           | 2 ++
 sys/modules/ath/Makefile | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/conf/files b/sys/conf/files
index ab4bbbac301c..ec3b5857f029 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -726,6 +726,8 @@ dev/ath/if_ath_rx.c		optional ath \
 	compile-with "${NORMAL_C} -I$S/dev/ath"
 dev/ath/if_ath_rx_edma.c	optional ath \
 	compile-with "${NORMAL_C} -I$S/dev/ath"
+dev/ath/if_ath_spectral.c	optional ath \
+	compile-with "${NORMAL_C} -I$S/dev/ath"
 dev/ath/ah_osdep.c		optional ath \
 	compile-with "${NORMAL_C} -I$S/dev/ath"
 #
diff --git a/sys/modules/ath/Makefile b/sys/modules/ath/Makefile
index e08a41a68162..7e6578539ea0 100644
--- a/sys/modules/ath/Makefile
+++ b/sys/modules/ath/Makefile
@@ -37,7 +37,7 @@ ATH_RATE?=	sample		# tx rate control algorithm
 KMOD=	if_ath
 SRCS=	if_ath.c if_ath_alq.c if_ath_debug.c if_ath_keycache.c if_ath_sysctl.c
 SRCS+=	if_ath_tx.c if_ath_tx_ht.c if_ath_led.c if_ath_rx.c if_ath_tdma.c
-SRCS+=	if_ath_beacon.c if_ath_rx_edma.c if_ath_tx_edma.c
+SRCS+=	if_ath_beacon.c if_ath_rx_edma.c if_ath_tx_edma.c if_ath_spectral.c
 # NB: v3 eeprom support used by both AR5211 and AR5212; just include it
 SRCS+=	ah_osdep.c ah.c ah_regdomain.c ah_eeprom_v3.c
 SRCS+=	device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h