From owner-freebsd-mobile Sat Feb 23 20:31:52 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 90F2F37B400 for ; Sat, 23 Feb 2002 20:31:48 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g1O4Vii17934; Sat, 23 Feb 2002 21:31:45 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g1O4VhL08160; Sat, 23 Feb 2002 21:31:44 -0700 (MST) (envelope-from imp@village.org) Date: Sat, 23 Feb 2002 21:31:24 -0700 (MST) Message-Id: <20020223.213124.62371755.imp@village.org> To: fujita@soum.co.jp Cc: mitchy@er.ams.eng.osaka-u.ac.jp, mobile@FreeBSD.ORG, brooks@one-eyed-alien.net Subject: Re: Linksys WMP11 support From: "M. Warner Losh" In-Reply-To: <20020224.084619.74696422.fujita@soum.co.jp> References: <20020205133602.A6294@Odin.AC.HMC.Edu> <20020206095856D.mitchy@er.ams.eng.osaka-u.ac.jp> <20020224.084619.74696422.fujita@soum.co.jp> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message: <20020224.084619.74696422.fujita@soum.co.jp> FUJITA Kazutoshi writes: : After some trials, I found it works with following patch. : I don't know why it is required, but it seems work well : with both 40bit and 104bit WEP encryption. : : Actually, I tried with -STABLE, but following is for -CURRENT. : I didn't test in -CURRENT, please test it in -CURRENT. : --- 1191,1220 ---- : struct wi_ltv_str ws; : struct wi_ltv_keys *wk = : (struct wi_ltv_keys *)ltv; : + u_int16_t tx_keylen = wk->wi_keys[sc->wi_tx_key].wi_keylen; : : for (i = 0; i < 4; i++) { : ! u_int16_t keylen = wk->wi_keys[i].wi_keylen; : ! u_int8_t *keyp = wk->wi_keys[i].wi_keydat; : ! memset(&ws, 0, sizeof(ws)); : ! if (sc->wi_bus_type == WI_BUS_PCI_NATIVE) { /* XXX : for Prism2.5 */ I've heard all kinds of reports for Prism 2 cards not working with 128 bit WEP. Maybe we need to do this for all PRISM 2 cards? : ! else { : ! ws.wi_len = 4; : ! memcpy(ws.wi_str, keyp, 5); : ! ws.wi_str[5] = '\0'; : ! } Wouldn't this break 128bit WEP? Shouldn't that length be 8? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message