diff options
author | 2005-05-08 14:55:09 +0000 | |
---|---|---|
committer | 2005-05-08 14:55:09 +0000 | |
commit | 1e69fdd4eb5f601ac1f938d48cf8bc8a65436340 (patch) | |
tree | 94242501d3440fb6b82fa4fcfc96afd5a448b87d | |
parent | fix silicon version number reporting. ie. ath0: mac 80.6 -> ath0: mac 5.6. (diff) | |
download | wireguard-openbsd-1e69fdd4eb5f601ac1f938d48cf8bc8a65436340.tar.xz wireguard-openbsd-1e69fdd4eb5f601ac1f938d48cf8bc8a65436340.zip |
the ar5210 is silicon version 0, not 1.
-rw-r--r-- | sys/dev/ic/ar5210.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5210.c b/sys/dev/ic/ar5210.c index da33748870b..4f8e58a20e2 100644 --- a/sys/dev/ic/ar5210.c +++ b/sys/dev/ic/ar5210.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5210.c,v 1.21 2005/05/08 14:46:50 reyk Exp $ */ +/* $OpenBSD: ar5210.c,v 1.22 2005/05/08 14:55:09 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -189,7 +189,7 @@ ar5k_ar5210_attach(device, sc, st, sh, status) /* Get MAC, PHY and RADIO revisions */ srev = AR5K_REG_READ(AR5K_AR5210_SREV); - hal->ah_mac_version = 1; + hal->ah_mac_version = AR5K_REG_MS(srev, AR5K_AR5210_SREV_VER); hal->ah_mac_revision = AR5K_REG_MS(srev, AR5K_AR5210_SREV_REV); hal->ah_phy_revision = AR5K_REG_READ(AR5K_AR5210_PHY_CHIP_ID) & 0x00ffffffff; |