summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2014-07-09 16:36:14 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2014-07-09 16:36:14 +0000
commit80cffbe9964236d1735bdb0e892108f50a57ae28 (patch)
tree4626504f03760927d0556c3330ce606ac5c19088 /sys/dev/ic
parent23f12d5f2a8d8dfd4345affb6e42a4d1874ece23 (diff)
Use the correct rf revision number for AR2425 radios. When read from
hardware the revision is zero. Linux also hardcodes this value. ok reyk
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ar5212.c3
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;