Date: Sat, 23 Feb 2002 21:31:24 -0700 (MST) From: "M. Warner Losh" <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 Message-ID: <20020223.213124.62371755.imp@village.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20020224.084619.74696422.fujita@soum.co.jp>
FUJITA Kazutoshi <fujita@soum.co.jp> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020223.213124.62371755.imp>
