aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2013-01-31 04:26:45 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-02-01 14:27:23 -0500
commitbd2ffe14d489ad12024d43bace21c6b6793acd2c (patch)
tree3a0fe8b39c69d5a3ae21053e1dd5b9870272bea0
parentc672a3abb79b40e7cd39b50a84ea5c5c772e10fa (diff)
ath9k: Only process fft samples when ATH9K_DEBUGFS is enabled
The code can only be used when ATH9k_DEBUGFS is enabled an not when ATH_DEBUG is activated. Still enabling it would cause build failures. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index 87497f3938b6..6d4a6ebe5035 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -1027,7 +1027,7 @@ static s8 fix_rssi_inv_only(u8 rssi_val)
1027static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr, 1027static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr,
1028 struct ath_rx_status *rs, u64 tsf) 1028 struct ath_rx_status *rs, u64 tsf)
1029{ 1029{
1030#ifdef CONFIG_ATH_DEBUG 1030#ifdef CONFIG_ATH9K_DEBUGFS
1031 struct ath_hw *ah = sc->sc_ah; 1031 struct ath_hw *ah = sc->sc_ah;
1032 u8 bins[SPECTRAL_HT20_NUM_BINS]; 1032 u8 bins[SPECTRAL_HT20_NUM_BINS];
1033 u8 *vdata = (u8 *)hdr; 1033 u8 *vdata = (u8 *)hdr;