Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2013 08:15:28 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251741 - head/sys/contrib/dev/ath/ath_hal/ar9300
Message-ID:  <201306140815.r5E8FSPn029488@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Fri Jun 14 08:15:28 2013
New Revision: 251741
URL: http://svnweb.freebsd.org/changeset/base/251741

Log:
  The AR9300 HAL uses this config to program AR_PHY_SWITCH_COM_2 on AR9485
  NICs which have bluetooth coexistence enabled.
  
  The WB225 NIC has the common antenna switch configuration set to 0x0 which
  disables all external switch bit setting. This obviously won't work when
  doing coexistence.
  
  This value is a magic value from the windows .inf files. It _looks_ right
  but I haven't yet verified it - unfortunately my AR9285+AR3012 BT combo
  has an earlier BT device which doesn't actually _have_ firmware on it.
  So I have to fix ath3kfw to handle loading in firmware into the newer
  NICs before I can finish testing this.
  
  This may not hold true for CUS198, which is another custom AR9485 board.

Modified:
  head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c

Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
==============================================================================
--- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c	Fri Jun 14 08:13:21 2013	(r251740)
+++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c	Fri Jun 14 08:15:28 2013	(r251741)
@@ -249,6 +249,9 @@ ar9300_attach_freebsd_ops(struct ath_hal
 	/* LNA diversity functions */
 	ah->ah_divLnaConfGet = ar9300_ant_div_comb_get_config;
 	ah->ah_divLnaConfSet = ar9300_ant_div_comb_set_config;
+
+	/* Setup HAL configuration defaults */
+	ah->ah_config.ath_hal_ant_ctrl_comm2g_switch_enable = 0x000bbb88;
 }
 
 HAL_BOOL



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306140815.r5E8FSPn029488>