Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic to use 104bit WEP key



details:   https://anonhg.NetBSD.org/src/rev/d3a1daa5e603
branches:  trunk
changeset: 520834:d3a1daa5e603
user:      ichiro <ichiro%NetBSD.org@localhost>
date:      Fri Jan 18 11:41:49 2002 +0000

description:
to use 104bit WEP key

diffstat:

 sys/dev/ic/wi.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 986077301101 -r d3a1daa5e603 sys/dev/ic/wi.c
--- a/sys/dev/ic/wi.c   Fri Jan 18 10:53:29 2002 +0000
+++ b/sys/dev/ic/wi.c   Fri Jan 18 11:41:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wi.c,v 1.31 2002/01/09 19:37:02 drochner Exp $ */
+/*     $NetBSD: wi.c,v 1.32 2002/01/18 11:41:49 ichiro Exp $   */
 
 /*
  * Copyright (c) 1997, 1998, 1999
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.31 2002/01/09 19:37:02 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.32 2002/01/18 11:41:49 ichiro Exp $");
 
 #define WI_HERMES_AUTOINC_WAR  /* Work around data write autoinc bug. */
 #define WI_HERMES_STATS_WAR    /* Work around stats counter bug. */
@@ -788,10 +788,10 @@
                        struct wi_ltv_str       ws;
                        struct wi_ltv_keys      *wk = (struct wi_ltv_keys *)ltv;
                        for (i = 0; i < 4; i++) {
-                               ws.wi_len = 4;
+                               ws.wi_len = 8;
                                ws.wi_type = WI_RID_P2_CRYPT_KEY0 + i;
-                               memcpy(ws.wi_str, &wk->wi_keys[i].wi_keydat, 5);
-                               ws.wi_str[5] = '\0';
+                               memcpy(ws.wi_str, &wk->wi_keys[i].wi_keydat, 13);
+                               ws.wi_str[13] = '\0';
                                error = wi_write_record(sc,
                                    (struct wi_ltv_gen *)&ws);
                                if (error)



Home | Main Index | Thread Index | Old Index