diff options
author | 2014-07-09 16:36:13 +0000 | |
---|---|---|
committer | 2014-07-09 16:36:13 +0000 | |
commit | a9ce1ce44df142ea921fa0377a4a37471155795e (patch) | |
tree | 776241ecc130a29c8c30ad2b643fc81ab86af425 | |
parent | CPUF_PARK check was placed improperly in the previous commit. (diff) | |
download | wireguard-openbsd-a9ce1ce44df142ea921fa0377a4a37471155795e.tar.xz wireguard-openbsd-a9ce1ce44df142ea921fa0377a4a37471155795e.zip |
Use the correct rf revision number for AR2425 radios. When read from
hardware the revision is zero. Linux also hardcodes this value.
ok reyk
-rw-r--r-- | sys/dev/ic/ar5212.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/ar5212.c b/sys/dev/ic/ar5212.c index 3e45c93282d..877a012ab65 100644 --- a/sys/dev/ic/ar5212.c +++ b/sys/dev/ic/ar5212.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5212.c,v 1.53 2013/04/13 08:57:10 stsp Exp $ */ +/* $OpenBSD: ar5212.c,v 1.54 2014/07/09 16:36:13 stsp Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -238,6 +238,7 @@ ar5k_ar5212_attach(u_int16_t device, void *sc, bus_space_tag_t st, } else if (srev == AR5K_SREV_VER_AR2425) { hal->ah_radio = AR5K_AR2425; hal->ah_phy_spending = AR5K_AR5212_PHY_SPENDING_AR5112; + hal->ah_radio_5ghz_revision = AR5K_SREV_RAD_SC2; } else if (hal->ah_radio_5ghz_revision < AR5K_SREV_RAD_5112) { hal->ah_radio = AR5K_AR5111; hal->ah_phy_spending = AR5K_AR5212_PHY_SPENDING_AR5111; |