diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-05-08 14:46:51 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-05-08 14:46:51 +0000 |
commit | 77113f167c741e3eff29b39abdd0cd4270233779 (patch) | |
tree | ebaddc0c3ae17f160cae259022e33f79cb59f152 /sys/dev/ic/ar5211.c | |
parent | 818508ef09189d005016d748d9c9e571593aa73d (diff) |
fix silicon version number reporting. ie. ath0: mac 80.6 -> ath0: mac 5.6.
Diffstat (limited to 'sys/dev/ic/ar5211.c')
-rw-r--r-- | sys/dev/ic/ar5211.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/ar5211.c b/sys/dev/ic/ar5211.c index 8796279a0a4..52d7ca81307 100644 --- a/sys/dev/ic/ar5211.c +++ b/sys/dev/ic/ar5211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5211.c,v 1.12 2005/04/20 01:46:02 reyk Exp $ */ +/* $OpenBSD: ar5211.c,v 1.13 2005/05/08 14:46:50 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -197,9 +197,9 @@ ar5k_ar5211_attach(device, sc, st, sh, status) return (NULL); /* Get MAC, PHY and RADIO revisions */ - srev = AR5K_REG_READ(AR5K_AR5211_SREV) & AR5K_AR5211_SREV_M; - hal->ah_mac_version = srev & AR5K_AR5211_SREV_VERSION; - hal->ah_mac_revision = srev & AR5K_AR5211_SREV_REVISION; + srev = AR5K_REG_READ(AR5K_AR5211_SREV); + hal->ah_mac_version = AR5K_REG_MS(srev, AR5K_AR5211_SREV_VER); + hal->ah_mac_revision = AR5K_REG_MS(srev, AR5K_AR5211_SREV_REV); hal->ah_phy_revision = AR5K_REG_READ(AR5K_AR5211_PHY_CHIP_ID) & 0x00ffffffff; |