summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2005-02-04 01:07:40 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2005-02-04 01:07:40 +0000
commit21b1631149f2a33c5d9d7e87fc8a4b628cd5c367 (patch)
tree3677d29b1e2d105f497226b8f48df62c4be9c506
parentdc1dc8a88809efb533fdfdc6ee8e8e9d54ae09e9 (diff)
fix setting 128bit WEP keys on BIG_ENDIAN arches.
-rw-r--r--sys/dev/ic/an.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/an.c b/sys/dev/ic/an.c
index 35e913216de..37859a9ffcd 100644
--- a/sys/dev/ic/an.c
+++ b/sys/dev/ic/an.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: an.c,v 1.39 2004/09/23 17:45:16 brad Exp $ */
+/* $OpenBSD: an.c,v 1.40 2005/02/04 01:07:39 kurt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -680,7 +680,7 @@ an_read_record(sc, ltv)
case AN_RID_WEP_VOLATILE:
case AN_RID_WEP_PERMANENT:
an_swap16(&ltv->an_val[1], 3); /* an_mac_addr */
- an_swap16(&ltv->an_val[5], 6);
+ an_swap16(&ltv->an_val[5], 7);
break;
case AN_RID_32BITS_CUM:
for (i = 0x60; i--;) {
@@ -742,7 +742,7 @@ an_write_record(sc, ltv)
case AN_RID_WEP_VOLATILE:
case AN_RID_WEP_PERMANENT:
an_swap16(&ltv->an_val[1], 3); /* an_mac_addr */
- an_swap16(&ltv->an_val[5], 6);
+ an_swap16(&ltv->an_val[5], 7);
break;
}
#endif