From 041df708575fe93ddad9653a0e81fc5f2a50696b Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 25 Apr 2011 15:51:49 +0000 Subject: [PATCH] Wrap the MIMO stuff in #ifdef AH_SUPPORT_AR5416, as the channel state doesn't have MIMO stuff in it by default. --- sys/dev/ath/ath_hal/ah.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c index 1391395fafb..5e64de21ad3 100644 --- a/sys/dev/ath/ath_hal/ah.c +++ b/sys/dev/ath/ath_hal/ah.c @@ -906,6 +906,7 @@ ath_hal_get_mimo_chan_noise(struct ath_hal *ah, const struct ieee80211_channel *chan, int16_t *nf_ctl, int16_t *nf_ext) { +#ifdef AH_SUPPORT_AR5416 HAL_CHANNEL_INTERNAL *ichan; int i; @@ -960,6 +961,9 @@ ath_hal_get_mimo_chan_noise(struct ath_hal *ah, } return 1; } +#else + return 0; +#endif /* AH_SUPPORT_AR5416 */ } /*