svn commit: r277288 - head/sys/contrib/dev/ath/ath_hal/ar9300

Adrian Chadd adrian at FreeBSD.org
Sat Jan 17 06:43:31 UTC 2015


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;


More information about the svn-src-all mailing list