From owner-freebsd-current@FreeBSD.ORG Fri Feb 29 03:16:39 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 51D0B1065672 for ; Fri, 29 Feb 2008 03:16:39 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 12BFD8FC16 for ; Fri, 29 Feb 2008 03:16:38 +0000 (UTC) (envelope-from sam@errno.com) Received: from Macintosh-2.local ([10.0.0.196]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m1T3GbBq031612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 28 Feb 2008 19:16:38 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <47C77915.7050804@errno.com> Date: Thu, 28 Feb 2008 19:16:37 -0800 From: Sam Leffler Organization: Errno Consulting User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Jeremie Le Hen References: <20080226225652.GE56090@obiwan.tataz.chchile.org> <20080227213137.GG56090@obiwan.tataz.chchile.org> <47C60721.9090609@errno.com> <20080228224019.GA94339@obiwan.tataz.chchile.org> In-Reply-To: <20080228224019.GA94339@obiwan.tataz.chchile.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist 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 03:16:39 -0000 Jeremie Le Hen wrote: > Sam, > > On Wed, Feb 27, 2008 at 04:58:09PM -0800, Sam Leffler wrote: >> Jeremie Le Hen wrote: >>> (Note that setting deftxkey for wi0, does not change anything.) >> I don't believe you that setting the key doesn't change anything. Your >> outbound traffic is being dropped because there is no tx keyid specified. >> >> I note the ral log likewise says you have no deftxkey setup. > > 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). > > > Note that if_ral works now, but I still can't use if_wi. I suppose this > is a bug in the driver. It should work but noone has cared about wi for years so it's entirely possible it is broken. > > % jarjarbinks:~:127# sysctl net.wlan.0.debug=0xffffffff > % net.wlan.0.debug: 0 -> 2147483647 > % jarjarbinks:~:128# dhclient wi0 > % wi0: ieee80211_newstate: RUN -> INIT > % wi0: ieee80211_ref_node (ieee80211_send_mgmt:1574) 0xc4b68000 refcnt 3 > % wi0: [XX:XX:XX:XX:XX:XX] send station disassociate (reason 8) > % [XX:XX:XX:XX:XX:XX] send disassoc on channel 10 > % wi0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0 > % wi0: ieee80211_node_table_reset station table > % wi0: ieee80211_free_allnodes_locked: free all nodes in station table > % wi0: node_reclaim: remove 0xc4b68000 from station table, refcnt 1 > % wi0: ieee80211_setup_node 0xc4b6d000<00:02:2d:4b:b9:20> in station table > % wi0: _ieee80211_free_node 0xc4b68000 in table > % wi0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0 > % DHCPDISCOVER on wi0 to 255.255.255.255 port 67 interval 6 > % wi0: ieee80211_newstate: INIT -> RUN > % wi0: ieee80211_newstate: invalid transition > % DHCPDISCOVER on wi0 to 255.255.255.255 port 67 interval 12 > % DHCPDISCOVER on wi0 to 255.255.255.255 port 67 interval 17 > > As a side note, I can't use wlanstats with wi(4): > % jarjarbinks:~:113# ifconfig wi0 > % wi0: flags=8843 metric 0 mtu 1500 > % ether 00:02:2d:4b:b9:20 > % inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 > % media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > % status: associated > % ssid XXXXXXXXXXXX channel 10 (2457 Mhz 11b) bssid XX:XX:XX:XX:XX:XX > % stationname "FreeBSD WaveLAN/IEEE node" > % authmode OPEN privacy MIXED deftxkey 1 wepkey 1:104-bit bmiss 7 > % scanvalid 60 > % jarjarbinks:~:114# wlanstats -ai wi0 > % wlanstats: wi0 (IEEE80211_IOC_STA_INFO): Invalid argument This is a bug in wi; it is not properly integrated with net80211. > % > % > > Thanks. > Regards,