summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ar5212.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2005-05-08 14:46:51 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2005-05-08 14:46:51 +0000
commit77113f167c741e3eff29b39abdd0cd4270233779 (patch)
treeebaddc0c3ae17f160cae259022e33f79cb59f152 /sys/dev/ic/ar5212.c
parent818508ef09189d005016d748d9c9e571593aa73d (diff)
fix silicon version number reporting. ie. ath0: mac 80.6 -> ath0: mac 5.6.
Diffstat (limited to 'sys/dev/ic/ar5212.c')
-rw-r--r--sys/dev/ic/ar5212.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/ar5212.c b/sys/dev/ic/ar5212.c
index 38467004aa0..b2da7f077a0 100644
--- a/sys/dev/ic/ar5212.c
+++ b/sys/dev/ic/ar5212.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5212.c,v 1.15 2005/04/18 18:42:55 reyk Exp $ */
+/* $OpenBSD: ar5212.c,v 1.16 2005/05/08 14:46:50 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -194,9 +194,9 @@ ar5k_ar5212_attach(device, sc, st, sh, status)
return (NULL);
/* Get MAC, PHY and RADIO revisions */
- srev = AR5K_REG_READ(AR5K_AR5212_SREV) & AR5K_AR5212_SREV_M;
- hal->ah_mac_version = srev & AR5K_AR5212_SREV_VERSION;
- hal->ah_mac_revision = srev & AR5K_AR5212_SREV_REVISION;
+ srev = AR5K_REG_READ(AR5K_AR5212_SREV);
+ hal->ah_mac_version = AR5K_REG_MS(srev, AR5K_AR5212_SREV_VER);
+ hal->ah_mac_revision = AR5K_REG_MS(srev, AR5K_AR5212_SREV_REV);
hal->ah_phy_revision = AR5K_REG_READ(AR5K_AR5212_PHY_CHIP_ID) &
0x00ffffffff;