ath9k: Only process fft samples when ATH9K_DEBUGFS is enabled
authorSven Eckelmann <sven@narfation.org>
Thu, 31 Jan 2013 09:26:45 +0000 (10:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Feb 2013 19:27:23 +0000 (14:27 -0500)
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>
drivers/net/wireless/ath/ath9k/recv.c

index 87497f3938b68d874cdd7284c5408d2b1b8ce3ae..6d4a6ebe5035ff231f905208e5a1c0658b153f8a 100644 (file)
@@ -1027,7 +1027,7 @@ static s8 fix_rssi_inv_only(u8 rssi_val)
 static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr,
                           struct ath_rx_status *rs, u64 tsf)
 {
-#ifdef CONFIG_ATH_DEBUG
+#ifdef CONFIG_ATH9K_DEBUGFS
        struct ath_hw *ah = sc->sc_ah;
        u8 bins[SPECTRAL_HT20_NUM_BINS];
        u8 *vdata = (u8 *)hdr;