From 918329563d85be92edb7d156ec02b993e5789b29 Mon Sep 17 00:00:00 2001 From: adrian Date: Thu, 13 Jun 2013 02:20:45 +0000 Subject: Set the FreeBSD capability bit to indicate that LNA diversity is enabled. This is true for the AR9485 and AR933x SoC. --- sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/contrib') diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c index b83faef..478417c 100644 --- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c +++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c @@ -2916,6 +2916,13 @@ ar9300_fill_capability_info(struct ath_hal *ah) } #endif /* ATH_ANT_DIV_COMB */ + /* + * FreeBSD: enable LNA mixing if the chip is Hornet or Poseidon. + */ + if (AR_SREV_HORNET(ah) || AR_SREV_POSEIDON_11_OR_LATER(ah)) { + p_cap->halRxUsingLnaMixing = AH_TRUE; + } + #if ATH_WOW_OFFLOAD if (AR_SREV_JUPITER_20_OR_LATER(ah) || AR_SREV_APHRODITE(ah)) { -- cgit v1.1