From 21b1631149f2a33c5d9d7e87fc8a4b628cd5c367 Mon Sep 17 00:00:00 2001 From: Kurt Miller Date: Fri, 4 Feb 2005 01:07:40 +0000 Subject: fix setting 128bit WEP keys on BIG_ENDIAN arches. --- sys/dev/ic/an.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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(<v->an_val[1], 3); /* an_mac_addr */ - an_swap16(<v->an_val[5], 6); + an_swap16(<v->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(<v->an_val[1], 3); /* an_mac_addr */ - an_swap16(<v->an_val[5], 6); + an_swap16(<v->an_val[5], 7); break; } #endif -- cgit v1.2.3