Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2015 06:43:31 +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: r277288 - head/sys/contrib/dev/ath/ath_hal/ar9300
Message-ID:  <201501170643.t0H6hVLm062862@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Jan 17 06:43:30 2015
New Revision: 277288
URL: https://svnweb.freebsd.org/changeset/base/277288

Log:
  Override the bt enable/disable methods for AR9462 (jupiter) and
  AR9565 (Aphrodite.)  These need to use the MCI routines, not
  the legacy 2-wire / 3-wire bluetooth coexistence methods.
  
  Tested:
  
  * AR9462 (WB222); STA mode

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	Sat Jan 17 06:18:45 2015	(r277287)
+++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c	Sat Jan 17 06:43:30 2015	(r277288)
@@ -250,6 +250,11 @@ ar9300_attach_freebsd_ops(struct ath_hal
 	ah->ah_btCoexEnable		= ar9300_bt_coex_enable;
 
 	/* MCI bluetooth functions */
+	if (AR_SREV_JUPITER(ah) || AR_SREV_APHRODITE(ah)) {
+		ah->ah_btCoexSetWeights = ar9300_mci_bt_coex_set_weights;
+		ah->ah_btCoexDisable = ar9300_mci_bt_coex_disable;
+		ah->ah_btCoexEnable = ar9300_mci_bt_coex_enable;
+	}
 	ah->ah_btMciSetup		= ar9300_mci_setup;
 	ah->ah_btMciSendMessage		= ar9300_mci_send_message;
 	ah->ah_btMciGetInterrupt	= ar9300_mci_get_interrupt;



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