From owner-freebsd-current@FreeBSD.ORG Fri Feb 4 17:09:08 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FD9816A4CE for ; Fri, 4 Feb 2005 17:09:08 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id F311143D5C for ; Fri, 4 Feb 2005 17:09:07 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] (sam@[66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j14H95Wi074552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Feb 2005 09:09:06 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <4203AC57.5000708@errno.com> Date: Fri, 04 Feb 2005 09:09:43 -0800 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ryan Sommers References: <63285.65.27.85.163.1107049410.squirrel@65.27.85.163> <41FC561C.3080505@errno.com> <41FEF40A.70006@gamersimpact.com> <1107387525.979.7.camel@RabbitsDen> <0502042321154.16397@www.mmlab.cse.yzu.edu.tw> <64317.208.4.77.203.1107533389.squirrel@208.4.77.203> In-Reply-To: <64317.208.4.77.203.1107533389.squirrel@208.4.77.203> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Tai-hwa Liang cc: current@freebsd.org cc: "Alexandre \"Sunny\" Kovalenko" Subject: Re: WEP Encryption Changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 17:09:08 -0000 Ryan Sommers wrote: > Tai-hwa Liang said: > >>On Wed, 2 Feb 2005, Alexandre "Sunny" Kovalenko wrote: >> >>>On Mon, 2005-01-31 at 21:14 -0600, Ryan Sommers wrote: >>>I remember having to add 'weptxkey 1' to the ifconfig line when these >>>changes went in. >>> >> >> It's a -CURRENT cvsup'ed on Jan-28-2005. Setting the default TX key >>with "deftxkey" did the trick for me. > > > Setting weptxkey worked. Setting the default didn't or at least it didn't > the number of times I tried setting it. I don't know what "the default" is. If you do ifconfig wi0 txkey - or ifconfig wi0 txkey undef then it resets the tx key state to be undefined; as it is when a device first comes up. In this state there is no default tx key to apply to outbound frames. Note that this is a change in behaviour from before my changes to support WPA. I found that having the default tx key set by default is error prone. Unfortunately I missed adding this to UPDATING and have yet to update the various manual pages because some of this code is still a bit fluid. I will add it to my TODO list. > > One thing I find odd is that the wepkey isn't automatically set as the Tx > key as well. Are there any implementations that by default don't use the > same key for Rx and Tx? Having implicit side effects for operations like setting a key can be a pain. ifconfig has the netbsd nwkey shorthand that you may find useful. > > Either way, I've added this to my list of things to look at. I don't > imagine it being all that difficult to set the Tx key to the first entered > WEP key. > Try nwkey. Sam