From 13e681c7fa74c83eeee6abd550e33c908f443b38 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Thu, 19 Nov 2009 17:44:04 +0000 Subject: fix for some variants of AR9285. found while doing code inspection as i don't have such hardware. --- sys/dev/ic/ar9285.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/ar9285.c') 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 @@ -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, -- cgit v1.2.3