mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <sven@narfation.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
bd2ffe14d4
commit
ab2e2fc890
1 changed files with 2 additions and 0 deletions
|
@ -1016,12 +1016,14 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
|
||||||
rxs->flag &= ~RX_FLAG_DECRYPTED;
|
rxs->flag &= ~RX_FLAG_DECRYPTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_ATH9K_DEBUGFS
|
||||||
static s8 fix_rssi_inv_only(u8 rssi_val)
|
static s8 fix_rssi_inv_only(u8 rssi_val)
|
||||||
{
|
{
|
||||||
if (rssi_val == 128)
|
if (rssi_val == 128)
|
||||||
rssi_val = 0;
|
rssi_val = 0;
|
||||||
return (s8) rssi_val;
|
return (s8) rssi_val;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* returns 1 if this was a spectral frame, even if not handled. */
|
/* 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,
|
static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr,
|
||||||
|
|
Loading…
Add table
Reference in a new issue