From owner-freebsd-hackers Mon Oct 9 11:42:40 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from white.dogwood.com (white.dogwood.com [63.96.228.130]) by hub.freebsd.org (Postfix) with ESMTP id 7541B37B502; Mon, 9 Oct 2000 11:42:33 -0700 (PDT) Received: (from dave@localhost) by white.dogwood.com (8.11.1/8.9.3) id e99IgWd05020; Mon, 9 Oct 2000 11:42:32 -0700 (PDT) (envelope-from dave) From: Dave Cornejo Message-Id: <200010091842.e99IgWd05020@white.dogwood.com> Subject: Re: WEP keys for an driver In-Reply-To: <200010091551.IAA30329@whistle.com> from Doug Ambrisko at "Oct 9, 2000 08:51:23 am" To: Doug Ambrisko Date: Mon, 9 Oct 2000 11:42:32 -0700 (PDT) Cc: Dave Cornejo , freebsd-hardware@FreeBSD.org, freebsd-hackers@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It doesn't matter to me which version gets used - I just need the capability to set the WEP keys. Some comments on your code: - WEP keysare variable length from 5-13 bytes, you should just check for >=5 & <=13 (it seems odd, but I have seen networks that use the odd sizes). - In an_setkeys() you allow 28 characters, the error message says 18, but really only 13 are significant. - The AN_RXMODE_LAN_MONITOR_CURBSS was a good catch - I never tested that one. - The authentication handling in ancontrol is in error: there is no AN_AUTH_TYPE_EXCLUDE_UNENCRYPTED bit. I should have added constants for the correct values for the authentication type. 0x000x - no encryption 0x010x - full encryption 0x030x - mixed cell (allow unencrypted) despite what's in the driver, bit 2 (0x0004) is not used. The bits as defined by Aironet engineering: #define AN_AUTHTYPE_PRIVACY_IN_USE 0x0100 #define AN_AUTHTYPE_ALLOW_UNENCRYPTED 0x0200 I would like to see my structure changes checked in - there are an error or two and some interesting new elements in there. In some more recent radio firmware, they provide normalized RSSI, and the IP address of the base station. There are also a few other things hinted at in there that some may find interesting. I should however add in some more constants. I didn't provide patches to ancontrol as you did, but I find ancontrol is getting way too nasty with its switches. Your patches look fine to me except that I'd really like to see a better way to specify volatile vs. persistent keys. dave c Doug Ambrisko wrote: > Looking at the code I don't see this as a complete solution. Maybe that > is what you mean by: > The ioctl interface used to configure the card does not include > a way to set WEP keys > > If you look at http://www.ambrisko.com/doug/an.patch.wep. It includes > the changes to both sides to enable WEP in the various modes and the > various keys. > > I've been to busy to submit this, but I finally did today. Some people > have been using this code with success. -- Dave Cornejo @ Dogwood Media, Fremont, California "There aren't any monkeys chasing us..." - Xochi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message