From owner-freebsd-mobile Wed Feb 27 22:28:22 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from gate.soum.co.jp (gate.soum.co.jp [202.221.40.2]) by hub.freebsd.org (Postfix) with ESMTP id E950D37B41A for ; Wed, 27 Feb 2002 22:28:13 -0800 (PST) Received: from force.soum.co.jp (force.soum.co.jp [IPv6:3ffe:501:80a:1:a00:20ff:fef0:4c9c]) by gate.soum.co.jp (8.12.2/8.12.2) with ESMTP id g1S6RuO0096613; Thu, 28 Feb 2002 15:27:56 +0900 (JST) (envelope-from fujita@soum.co.jp) Received: from vanilla.soum.co.jp (vanilla.soum.co.jp [3ffe:501:80a:1:202:b3ff:fe98:8115]) by force.soum.co.jp (8.11.6/3.7W-2001122804) with ESMTP id g1S6RsS00048; Thu, 28 Feb 2002 15:27:55 +0900 (JST) Received: from localhost (localhost [::1]) by vanilla.soum.co.jp (Postfix) with ESMTP id 1F6EF3F52; Thu, 28 Feb 2002 15:27:54 +0900 (JST) Date: Thu, 28 Feb 2002 15:27:03 +0900 (JST) Message-Id: <20020228.152703.41675990.fujita@soum.co.jp> To: oliver@cosec.org Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: Linksys WPC11 card - no WEP with 4.5-RELEASE From: FUJITA Kazutoshi In-Reply-To: <200202271754.g1RHst909940@ddba033.netstream.ch> References: <200202271754.g1RHst909940@ddba033.netstream.ch> X-PGP-PublicKey: http://www.soum.co.jp/~fujita/fujita-GnuPG-publickey.txt X-PGP-FingerPrint: 9956 2ECE 7E7D B425 EC2D D49E FEBB 3C5F 2C34 1ECA Organization: SOUM Corporation, JAPAN X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 =?iso-2022-jp?B?KBskQjgtTFobKEIp?= Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Feb_28_15:27:03_2002_313)--" 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 ----Next_Part(Thu_Feb_28_15:27:03_2002_313)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Oliver Enzmann Subject: Linksys WPC11 card - no WEP with 4.5-RELEASE Date: Wed, 27 Feb 2002 18:56:48 +0100 Message-ID: <200202271754.g1RHst909940@ddba033.netstream.ch> > I still can't communicate with other devices on the Wireless LAN unless I > turn off WEP. I only tried BSS mode with 104bit WEP; I didn't try 40bit Try Skibo's patch, it makes you happy (maybe;-). ----Next_Part(Thu_Feb_28_15:27:03_2002_313)-- Content-Type: Message/Rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from gate.soum.co.jp (port.soum.co.jp [3ffe:501:80a:1:2d0:b7ff:fe68:a985]) by force.soum.co.jp (8.11.6/3.7W-2001122804) with ESMTP id g1O7IfS07198 for ; Sun, 24 Feb 2002 16:18:41 +0900 (JST) Received: from soumgw.soum.co.jp (root@soumgw.soum.co.jp [IPv6:2001:240:19:1:2d0:b7ff:fe68:aae7]) by gate.soum.co.jp (8.12.2/8.12.2) with ESMTP id g1O7IfO0032521 for ; Sun, 24 Feb 2002 16:18:41 +0900 (JST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from mx2.freebsd.org (mx2.FreeBSD.org [216.136.204.119]) by soumgw.soum.co.jp (8.11.0+3.3W/3.7W-02021216) with ESMTP id g1O7Icv13673 for ; Sun, 24 Feb 2002 16:18:39 +0900 (JST) Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 7C94355483; Sat, 23 Feb 2002 23:18:31 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: by hub.freebsd.org (Postfix, from userid 538) id A85F837B404; Sat, 23 Feb 2002 23:18:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 92D7D2E8013; Sat, 23 Feb 2002 23:18:29 -0800 (PST) Received: by hub.freebsd.org (bulk_mailer v1.12); Sat, 23 Feb 2002 23:18:29 -0800 Delivered-To: freebsd-mobile@freebsd.org Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by hub.freebsd.org (Postfix) with ESMTP id 3802037B400 for ; Sat, 23 Feb 2002 23:18:26 -0800 (PST) Received: from pacbell.net ([63.193.114.253]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GS100GWY0APUM@mta7.pltn13.pbi.net> for mobile@FreeBSD.ORG; Sat, 23 Feb 2002 23:18:26 -0800 (PST) Date: Sat, 23 Feb 2002 23:15:56 -0800 From: Thomas Skibo Subject: Re: Linksys WMP11 support To: "M. Warner Losh" , fujita@soum.co.jp Cc: mitchy@er.ams.eng.osaka-u.ac.jp, mobile@FreeBSD.ORG, brooks@one-eyed-alien.net Message-id: <3C78932C.27319015@pacbell.net> Organization: College Avenue Surf Shop MIME-version: 1.0 X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <20020205133602.A6294@Odin.AC.HMC.Edu> <20020206095856D.mitchy@er.ams.eng.osaka-u.ac.jp> <20020224.084619.74696422.fujita@soum.co.jp> <20020223.213124.62371755.imp@village.org> Sender: owner-freebsd-mobile@FreeBSD.ORG List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Precedence: bulk "M. Warner Losh" wrote: > > > 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? > Yup. I think they all benefit. I tried FUJITA Kazutoshi's changes on three different prism2 interfaces (a Linksys WMP-11, a D-Link DWL-650, and a Linksys WPC-11 v2.5) and now they are all talking 104-bit WEP. My FreeBSD machines now talk to my XP machine in 104-bit mode which they never did before. I think the breakthrough is setting the key length on ALL the keys to the same value. Thanks for tracking that down, Fujita. Here's the changes as I'm using them: *** if_wi.c 2002/02/16 03:52:16 1.6 --- if_wi.c 2002/02/24 06:37:58 *************** *** 1155,1174 **** ltv = &p2ltv; break; case WI_RID_DEFLT_CRYPT_KEYS: { int error; 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_type = WI_RID_P2_CRYPT_KEY0 + i; memcpy(ws.wi_str, ! &wk->wi_keys[i].wi_keydat, 5); ! ws.wi_str[5] = '\0'; error = wi_write_record(sc, (struct wi_ltv_gen *)&ws); if (error) return error; } --- 1162,1186 ---- ltv = &p2ltv; break; case WI_RID_DEFLT_CRYPT_KEYS: { int error; + int keylen; struct wi_ltv_str ws; struct wi_ltv_keys *wk = (struct wi_ltv_keys *)ltv; + keylen = wk->wi_keys[ sc->wi_tx_key ].wi_keylen; + for (i = 0; i < 4; i++) { ! ! bzero(&ws, sizeof(ws)); ! ws.wi_len = (keylen>5) ? 8:4; ws.wi_type = WI_RID_P2_CRYPT_KEY0 + i; memcpy(ws.wi_str, ! &wk->wi_keys[i].wi_keydat, keylen); ! error = wi_write_record(sc, (struct wi_ltv_gen *)&ws); if (error) return error; } -- ------------------------------------------------------------------------ Thomas Skibo skibo@pacbell.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message ----Next_Part(Thu_Feb_28_15:27:03_2002_313)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message