Date: Wed, 1 Jun 2016 03:21:23 +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: r301093 - head/sys/contrib/dev/ath/ath_hal/ar9300 Message-ID: <201606010321.u513LNjZ034609@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Wed Jun 1 03:21:23 2016 New Revision: 301093 URL: https://svnweb.freebsd.org/changeset/base/301093 Log: [ath_hal] Allow the BT antenna diversity option to be enabled for QCA9565. Obtained from: Linux ath9k Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c ============================================================================== --- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c Wed Jun 1 03:20:55 2016 (r301092) +++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c Wed Jun 1 03:21:23 2016 (r301093) @@ -2457,11 +2457,13 @@ static void ar9300_bt_coex_antenna_diversity(struct ath_hal *ah, u_int32_t value) { struct ath_hal_9300 *ahp = AH9300(ah); -#if ATH_ANT_DIV_COMB +#if ATH_ANT_DIV_COMB //struct ath_hal_private *ahpriv = AH_PRIVATE(ah); const struct ieee80211_channel *chan = AH_PRIVATE(ah)->ah_curchan; #endif + HALDEBUG(ah, HAL_DEBUG_BT_COEX, "%s: called, value=%d\n", __func__, value); + if (ahp->ah_bt_coex_flag & HAL_BT_COEX_FLAG_ANT_DIV_ALLOW) { if (ahp->ah_diversity_control == HAL_ANT_VARIABLE) @@ -2494,7 +2496,7 @@ ar9300_bt_coex_set_parameter(struct ath_ break; case HAL_BT_COEX_ANTENNA_DIVERSITY: - if (AR_SREV_POSEIDON(ah)) { + if (AR_SREV_POSEIDON(ah) || AR_SREV_APHRODITE(ah)) { ahp->ah_bt_coex_flag |= HAL_BT_COEX_FLAG_ANT_DIV_ALLOW; if (value) { ahp->ah_bt_coex_flag |= HAL_BT_COEX_FLAG_ANT_DIV_ENABLE;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606010321.u513LNjZ034609>