summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-06-14 08:15:28 +0000
committeradrian <adrian@FreeBSD.org>2013-06-14 08:15:28 +0000
commit9cc55e7bfe93a9901a05751a7778227ddc0a6b18 (patch)
treefe22314210170eb543d435ac1e4f7932b4282e3f /sys/contrib
parent63dce753f2ac80686d163a60804beafc45d8fc26 (diff)
downloadFreeBSD-src-9cc55e7bfe93a9901a05751a7778227ddc0a6b18.zip
FreeBSD-src-9cc55e7bfe93a9901a05751a7778227ddc0a6b18.tar.gz
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.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
index 50b4079..a350eed 100644
--- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
+++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
@@ -249,6 +249,9 @@ ar9300_attach_freebsd_ops(struct ath_hal *ah)
/* 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
OpenPOWER on IntegriCloud