From owner-freebsd-current@FreeBSD.ORG Fri Feb 29 12:43:28 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97C861065670 for ; Fri, 29 Feb 2008 12:43:28 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id 26E408FC13 for ; Fri, 29 Feb 2008 12:43:28 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 174EF3F6189; Fri, 29 Feb 2008 13:43:27 +0100 (CET) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id C90A63F616D; Fri, 29 Feb 2008 13:43:26 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id B9B169BF12; Fri, 29 Feb 2008 12:43:07 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id B412B405B; Fri, 29 Feb 2008 13:43:07 +0100 (CET) Date: Fri, 29 Feb 2008 13:43:07 +0100 From: Jeremie Le Hen To: Sam Leffler Message-ID: <20080229124307.GC94339@obiwan.tataz.chchile.org> References: <20080226225652.GE56090@obiwan.tataz.chchile.org> <20080227213137.GG56090@obiwan.tataz.chchile.org> <47C60721.9090609@errno.com> <20080228224019.GA94339@obiwan.tataz.chchile.org> <47C77915.7050804@errno.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <47C77915.7050804@errno.com> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-current@freebsd.org Subject: Re: Wireless adapter associated, rx ok, tx ko X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 29 Feb 2008 12:43:28 -0000 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sam, On Thu, Feb 28, 2008 at 07:16:37PM -0800, Sam Leffler wrote: > Jeremie Le Hen wrote: > > Thanks for your reply. You are right indeed. It was not obvious to me > > that I should set a tx keyid manually, partly because when setting the > > WEP key, ifconfig(8) assumes key 1 if no index is specified. > > Would it be correct to set the default tx keyid to 1? On the contrary, > > I will provide an update to the manpage stating setting the default tx > > keyid is mandatory. > > Yes, it seems the man page doesn't call out that you need to setup a > deftxkey in order for outbound traffic to be encrypted when using WEP. If > you use wpa_supplicant it will do that for you. > > Please send me something for ifconfig(8). You will find a diff against the ifconfig(8) manpage attached. Feel free to reword what you feel necessary, as I'm not a native english speaker. Thank you. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > --tThc/1wpZn/ma/RB Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="mandatory_deftxkey.diff" Index: sbin/ifconfig/ifconfig.8 =================================================================== RCS file: /mnt/space/freebsd-cvs/src/sbin/ifconfig/ifconfig.8,v retrieving revision 1.145 diff -u -r1.145 ifconfig.8 --- sbin/ifconfig/ifconfig.8 10 Dec 2007 02:31:00 -0000 1.145 +++ sbin/ifconfig/ifconfig.8 29 Feb 2008 12:40:31 -0000 @@ -777,7 +777,8 @@ To disable 802.11h use .Fl doth . .It Cm deftxkey Ar index -Set the default key to use for transmission. +Set the default key to use for transmission, which is mandatory +for full duplex operation. Typically this is only set when using WEP encryption. The .Cm weptxkey @@ -1236,11 +1237,15 @@ .Cm mixed . Modes are case insensitive. .It Cm weptxkey Ar index -Set the WEP key to be used for transmission. +Set the WEP key to be used for transmission, which is mandatory +for full duplex operation. This is the same as setting the default transmission key with .Cm deftxkey . .It Cm wepkey Ar key Ns | Ns Ar index : Ns Ar key Set the selected WEP key. +Yet using +.Cm deftxkey +is required for full duplex operation. If an .Ar index is not given, key 1 is set. --tThc/1wpZn/ma/RB--