summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wi.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-11 13:31:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-11 13:31:50 +0000
commitb8a117c58f8bb6206b9a1d921bdc90e50fc1ae7a (patch)
treebf43c66e5d59e4fe911bfd1ff0a141d3d7fadb45 /sys/dev/ic/if_wi.c
parent83b21262cb16181786f615a3f2c3078fd63b814a (diff)
Sigh, we can't just put the htole16() in the WI_CARD_IDS macro
since gcc doesn't seem to evaluate htole16() of a constant at compile time after all. Noticed by deraadt@
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r--sys/dev/ic/if_wi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index fd863db2acd..527739b832c 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.81 2002/10/10 20:27:46 millert Exp $ */
+/* $OpenBSD: if_wi.c,v 1.82 2002/10/11 13:31:49 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.81 2002/10/10 20:27:46 millert Exp $";
+ "$OpenBSD: if_wi.c,v 1.82 2002/10/11 13:31:49 millert Exp $";
#endif /* lint */
#ifdef foo
@@ -2246,7 +2246,7 @@ wi_get_id(sc)
ver.wi_len = 5;
wi_read_record(sc, (struct wi_ltv_gen *)&ver);
for (id = wi_card_ident; id->firm_type != WI_NOTYPE; id++) {
- if (ver.wi_ver[0] == id->card_id)
+ if (letoh16(ver.wi_ver[0]) == id->card_id)
break;
}
if (id->firm_type != WI_NOTYPE) {