diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2014-07-10 11:34:49 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2014-07-10 11:34:49 +0000 |
commit | b986aab6bb94045c1a8bac995d9f86cf6c58b512 (patch) | |
tree | 4b5ed3e9db5d7feb6e6337cd3db415bfdad4a4aa /sys/dev/ic | |
parent | 6b68a2be9d973f15281c5365d5be5b0ce6cb05f3 (diff) |
Show eeprom version of ath devices in dmesg; ok reyk
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ath.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index 89f77189738..1327d85f077 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.99 2014/03/19 10:09:19 mpi Exp $ */ +/* $OpenBSD: ath.c,v 1.100 2014/07/10 11:34:48 stsp Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -264,6 +264,11 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) ah->ah_radio_2ghz_revision & 0xf); } } + if (ah->ah_ee_version == AR5K_EEPROM_VERSION_4_7) + printf(" eeprom 4.7"); + else + printf(" eeprom %1x.%1x", ah->ah_ee_version >> 12, + ah->ah_ee_version & 0xff); #if 0 if (ah->ah_radio_5ghz_revision >= AR5K_SREV_RAD_UNSUPP || |