summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ar9285.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-11-19 17:44:04 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-11-19 17:44:04 +0000
commit13e681c7fa74c83eeee6abd550e33c908f443b38 (patch)
tree48d755038bc8a944109f472edbf920e6cc312f18 /sys/dev/ic/ar9285.c
parente673bcfb040b4f331e78e7b2fc29d28884fa3caf (diff)
fix for some variants of AR9285.
found while doing code inspection as i don't have such hardware.
Diffstat (limited to 'sys/dev/ic/ar9285.c')
-rw-r--r--sys/dev/ic/ar9285.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar9285.c b/sys/dev/ic/ar9285.c
index dbc2463ae57..aa912ae3243 100644
--- a/sys/dev/ic/ar9285.c
+++ b/sys/dev/ic/ar9285.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar9285.c,v 1.3 2009/11/15 14:04:02 damien Exp $ */
+/* $OpenBSD: ar9285.c,v 1.4 2009/11/19 17:44:03 damien Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -219,7 +219,7 @@ ar9285_init_from_rom(struct athn_softc *sc, struct ieee80211_channel *c,
reg = RW(reg, AR9285_PHY_ANT_DIV_ALT_LNACONF,
(modal->db1_234 >> 12) & 0x3);
reg = RW(reg, AR9285_PHY_ANT_DIV_MAIN_LNACONF,
- (modal->db1_234 >> 14) & 0x1);
+ (modal->db1_234 >> 14) & 0x3);
reg = RW(reg, AR9285_PHY_ANT_DIV_ALT_GAINTB,
(modal->ob_234 >> 13) & 0x1);
reg = RW(reg, AR9285_PHY_ANT_DIV_MAIN_GAINTB,