From owner-freebsd-mobile@FreeBSD.ORG Tue Nov 29 02:08:59 2005 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C22CA16A41F for ; Tue, 29 Nov 2005 02:08:59 +0000 (GMT) (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 AF66B43D6A for ; Tue, 29 Nov 2005 02:08:58 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.200] ([10.0.0.200]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id jAT28upU062081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Nov 2005 18:08:57 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <438BB855.6000300@errno.com> Date: Mon, 28 Nov 2005 18:09:25 -0800 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051126) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Alexandre \"Sunny\" Kovalenko" References: <1132437985.69627.8.camel@felipa.webtent.org> <20051121.211108.68039846.imp@bsdimp.com> <1132667032.23378.3.camel@columbus.webtent.org> <20051122152702.659deeaa.lists@yazzy.org> <1132704370.2266.14.camel@felipa.webtent.org> <1133229801.700.8.camel@RabbitsDen> In-Reply-To: <1133229801.700.8.camel@RabbitsDen> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Robert Fitzpatrick , freebsd-mobile@freebsd.org Subject: Re: pccards X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 02:09:00 -0000 Alexandre "Sunny" Kovalenko wrote: > On Tue, 2005-11-22 at 19:06 -0500, Robert Fitzpatrick wrote: > >>On Tue, 2005-11-22 at 15:27 +0100, Marcin Jessa wrote: >> >> >>>http://www.freebsdmall.com/~loader/en_US.ISO8859-1/articles/wireless/article.html >> >>Perfect, that was what I needed, thanks! Now I have the card working >>with WEP, I still don't quite understand how to get the card to start up >>on boot. I have in my /etc/rc.conf 'ifconfig_ath0="ssid WEBTENT DHCP"' >>and I have the necessary modules loaded: >> >>felipa# cat /boot/loader.conf >>wlan_wep_load="YES" >>wlan_tkip_load="YES" >>wlan_ccmp_load="YES" >>wlan_xauth_load="YES" >>wlan_acl_load="YES" >> >>Another thing is I tried the wpa_supplicant.conf method of starting the >>card, but it just hangs, I have to just hit Ctrl+C after a long wait: >> >>felipa# cat /etc/wpa_supplicant.conf >>network={ >> ssid="WEBTENT" >> key_mgmt=NONE >> wep_key1= >> wep_tx_keyidx=1 >>} > > I tend to belive that ifconfig and wpa_supplicant disagree on numbering > of the key indices. In order to match 'weptxkey 1' below you want to > specify wep_key0 and wep_tx_keyidx=0 in your wpa_supplicant.conf. > > Following wpa_supplicant.conf works here quite well: > > ctrl_interface=/var/run/wpa_supplicant > ctrl_interface_group=wheel > > network={ > ssid="MySsId" > scan_ssid=1 > priority=5 > key_mgmt=NONE > wep_key0=11111111111111111111111111 > wep_tx_keyidx=0 > } > > with proper SSID and key. > > >>felipa# wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf >>Trying to associate with 00:05:5d:89:c8:78 (SSID='WEBTENT' freq=2437 >>MHz) >>Associated with 00:05:5d:89:c8:78 >>^CSignal 2 received - terminating >>ioctl[SIOCS80211, op 20, len 7]: Can't assign requested address >> >>If I use the following, all works great with WEP and it gets a DHCP >>address even though I specified a static IP, I assume this is because I >>have that specified in /etc/rc.conf: >> >>felipa# ifconfig ath0 inet 192.168.1.30 netmask 255.255.255.0 ssid >>WEBTENT wepmode on weptxkey 1 wepkey 1: >>felipa# ifconfig -v ath0 ath0: >>flags=8843 mtu 1500 >> inet6 fe80::280:c8ff:fe1f:9655%ath0 prefixlen 64 scopeid 0x5 >> inet 192.168.1.52 netmask 0xffffff00 broadcast 192.168.1.255 >> ether 00:80:c8:1f:96:55 >> media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) >> status: associated >> ssid WEBTENT channel 6 (2437) bssid 00:05:5d:89:c8:78 >> authmode OPEN privacy ON deftxkey 1 >> wepkey 1:104-bit powersavemode OFF powersavesleep 100 txpowmax >>32 >> txpower 60 rtsthreshold 2346 fragthreshold 2346 -pureg protmode >>CTS -wme roaming AUTO bintval 100 >> >>Also, I assume my D-Link access point does not support WPA, so I am >>stuck with the weakness of WEP? Perhaps I'll try to setup my FreeBSD >>AP :) > > Check for firmware update -- at least one of my D-Link parts > (DWL-G730AP) acquired ability to do WPA-PSK with last update. > > This is probably the bug I've not resolved where wpa_supplicant doesn't plumb wep keys at key indices > 0 properly. Joe Love figured out a workaround but the change doesn't make sense so I need to dig deeper to find the root cause. Sam