From: Sven Eckelmann Date: Thu, 31 Jan 2013 09:26:46 +0000 (+0100) Subject: ath9k: Only add fix_rssi_inv_only when spectral code is used X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab2e2fc8909b3ea6b5adf813b23cd76a4a33fbd8;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ath9k: Only add fix_rssi_inv_only when spectral code is used The code is only used when ATH9K_DEBUGFS is activated and causes build warnings when it is still compiled without user. Signed-off-by: Sven Eckelmann Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 6d4a6ebe5035..0fb7932c93dc 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -1016,12 +1016,14 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common, rxs->flag &= ~RX_FLAG_DECRYPTED; } +#ifdef CONFIG_ATH9K_DEBUGFS static s8 fix_rssi_inv_only(u8 rssi_val) { if (rssi_val == 128) rssi_val = 0; return (s8) rssi_val; } +#endif /* returns 1 if this was a spectral frame, even if not handled. */ static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr,