summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-04-25 15:51:49 +0000
committeradrian <adrian@FreeBSD.org>2011-04-25 15:51:49 +0000
commit104014c224861875f72a19114513c0833081a229 (patch)
tree79b27be38e6658e8f9854b1f54599ae4214aef54
parent0c8069d66c0cb7033c5562287cacba9403361fdf (diff)
downloadFreeBSD-src-104014c224861875f72a19114513c0833081a229.zip
FreeBSD-src-104014c224861875f72a19114513c0833081a229.tar.gz
Wrap the MIMO stuff in #ifdef AH_SUPPORT_AR5416, as the channel
state doesn't have MIMO stuff in it by default.
-rw-r--r--sys/dev/ath/ath_hal/ah.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c
index 1391395..5e64de2 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 */
}
/*
OpenPOWER on IntegriCloud