diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2014-07-09 16:36:14 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2014-07-09 16:36:14 +0000 |
commit | 80cffbe9964236d1735bdb0e892108f50a57ae28 (patch) | |
tree | 4626504f03760927d0556c3330ce606ac5c19088 /sys/dev/ic | |
parent | 23f12d5f2a8d8dfd4345affb6e42a4d1874ece23 (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.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; |