From owner-svn-src-all@FreeBSD.ORG Thu Jun 13 02:20:46 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1A59062A; Thu, 13 Jun 2013 02:20:46 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 0D35E1123; Thu, 13 Jun 2013 02:20:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5D2KjOe052154; Thu, 13 Jun 2013 02:20:45 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5D2KjDl052153; Thu, 13 Jun 2013 02:20:45 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201306130220.r5D2KjDl052153@svn.freebsd.org> From: Adrian Chadd Date: Thu, 13 Jun 2013 02:20:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251676 - head/sys/contrib/dev/ath/ath_hal/ar9300 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jun 2013 02:20:46 -0000 Author: adrian Date: Thu Jun 13 02:20:45 2013 New Revision: 251676 URL: http://svnweb.freebsd.org/changeset/base/251676 Log: Set the FreeBSD capability bit to indicate that LNA diversity is enabled. This is true for the AR9485 and AR933x SoC. Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c ============================================================================== --- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c Thu Jun 13 02:19:53 2013 (r251675) +++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c Thu Jun 13 02:20:45 2013 (r251676) @@ -2916,6 +2916,13 @@ ar9300_fill_capability_info(struct ath_h } #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)) {