diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-21 02:16:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-21 02:16:53 +0000 |
commit | f348afde4730beccf2bfd9558d52be67d9910dcf (patch) | |
tree | ddb8ee9d10a543c6010b3b846bbc019ba16ff9c1 /sys | |
parent | c2aed48f655dce22cc8cb1124b36828dc16d75cc (diff) |
Symbol version string need not start with 'V'; from NetBSD (onoe)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/if_wi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index e7ef19fe387..8dcd2d635d3 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.54 2002/04/16 00:18:21 millert Exp $ */ +/* $OpenBSD: if_wi.c,v 1.55 2002/04/21 02:16:52 millert Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.54 2002/04/16 00:18:21 millert Exp $"; + "$OpenBSD: if_wi.c,v 1.55 2002/04/21 02:16:52 millert Exp $"; #endif /* lint */ #ifdef foo @@ -2147,9 +2147,9 @@ wi_get_id(sc) bzero(&sver, sizeof(sver)); sver.wi_type = WI_RID_SYMBOL_IDENTITY; sver.wi_len = 7; - /* value should be "V2.00-11" */ + /* value should be something like "V2.00-11" */ if (wi_read_record(sc, (struct wi_ltv_gen *)&sver) == 0 && - *(p = (char *)sver.wi_str) == 'V' && + *(p = (char *)sver.wi_str) >= 'A' && p[2] == '.' && p[5] == '-' && p[8] == '\0') { sc->sc_firmware_type = WI_SYMBOL; sc->sc_sta_firmware_ver = (p[1] - '0') * 10000 + |