From owner-freebsd-current@FreeBSD.ORG Tue Jul 26 16:29:18 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 D2F2D16A41F for ; Tue, 26 Jul 2005 16:29:18 +0000 (GMT) (envelope-from Kirk.Davis@epsb.ca) Received: from relay.epsb.ca (relay.epsb.ca [198.161.119.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D93D43D48 for ; Tue, 26 Jul 2005 16:29:18 +0000 (GMT) (envelope-from Kirk.Davis@epsb.ca) Received: from exchange03.epsb.ca (exchange03.epsb.ca [10.0.5.11]) by relay.epsb.ca (8.12.11/8.12.11) with ESMTP id j6QGOoSh054361; Tue, 26 Jul 2005 10:27:30 -0600 (MDT) (envelope-from Kirk.Davis@epsb.ca) Received: by exchange03.epsb.ca with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Jul 2005 10:24:50 -0600 Message-ID: <04C71268DFDAA8499EC1A248A44B6A2B34BFFB@Exchange21.EDU.epsb.ca> From: Kirk Davis To: "'Brandon S. Allbery KF8NH'" , freebsd-current@freebsd.org Date: Tue, 26 Jul 2005 10:24:49 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Mailman-Approved-At: Wed, 27 Jul 2005 11:45:27 +0000 Cc: Subject: RE: 6-BETA1 iwi + wpa_supplicant fails, and sometimes silently re boots 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: Tue, 26 Jul 2005 16:29:19 -0000 I am using the iwi driver with the wpa_supplicant for both WPA-PSK and WAP/802.11x. It was a little tricky to get working (mostly due to the firmware) but I now have to working great. I am in the process of creating a document to post on the steps that I did to get it working. Did you recompile the wpa_supplicant in the base system? The wpa_supplicant does not have TKIP support unless you add ENABLE_WPA_SUPPLICANT_EAPOL="YES" into /etc/make.conf and recompile. You will also need to install the new firmware for the driver that can be found here: http://damien.bergamini.free.fr/ipw/ I also had to get rid of the iwi startup script in /usr/local/etc/rc.d/iwi.sh. The problem was that it didn't load the firmware early enough and that caused problems with dhclient. In stead I told devd to load the firmware on device detection. The following is a diff on the changed to devd.conf # diff /usr/src/etc/devd.conf /etc/devd.conf 23c23 < sf|sis|sk|sn|snc|ste|ti|tl|tx|txp|udav|vge|vr|vx|wb|wi|xe|xl)\ --- > sf|sis|sk|sn|snc|ste|ti|tl|tx|txp|udav|vge|vr|vx|wb|iwi|wi|xe|xl)\ 59a60,65 > > attach 100 { > device-name "iwi0"; > action "/usr/local/sbin/iwicontrol -i iwi0 -d /usr/local/libdata/if_iwi -m bss"; > }; > Then in /etc/rc.conf you can just add a line like: Ifconfig_iwi0="WPA DHCP" Here is a copy of the wpa_supplicant.conf file: # ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid="VE6KIK" scan_ssid=1 key_mgmt=WPA-PSK psk="SHARED_SECRET" } network={ ssid="dot1x" scan_ssid=1 key_mgmt=WPA-EAP eap=TTLS pairwise=TKIP group=TKIP identity="EDU\kdavis" anonymous_identity="EDU\kdavis" password="PASSWORD" phase2="auth=MSCHAPV2" } ---- Kirk Kirk Davis Senior Network Analyst, ITS Edmonton Public Schools 1-780-429-8308 -----Original Message----- From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-current@freebsd.org] On Behalf Of Brandon S. Allbery KF8NH Sent: July 25, 2005 6:54 PM To: freebsd-current@freebsd.org Subject: 6-BETA1 iwi + wpa_supplicant fails, and sometimes silently reboots I've been trying to use the iwi driver with wpa_supplicant to autodetect my home network (WPA-TKIP) and campus network (open). So far, I've had no success getting it to associate with my Linksys BEFW11S4 router/AP; I can't figure out how to get a key in common between them --- an ASCII key simply fails, and wpa_supplicant and the Linksys have very different ideas about the length of hex keys (the Linksys wants 40 hex digits). Things are even worse trying to use it on campus: the driver continually spews "iwi0: unknown authentication state 1" and "iwi0: fatal error" messages, and after a few minutes the machine (IBM Thinkpad T42, 2378-R4U) silently reboots. No panic message, no core dump, just freezes for about a second and then displays the BIOS screen (much as if I'd hit a reset button, not that there is one aside from holding the power button for 10 seconds). This happens even if the only entry in /etc/wpa_supplicant.conf is for the open network. Both networks are 802.11b. I've been unable to collect any significant debugging information from the latter because of the silent reboot. Is iwi considered usable at this point, or should I give up and try to get the NDIS driver working? (I had tried it initially but couldn't get it to accept an SSID; this was before wpa_supplicant hit the tree so I was using an ifconfig in /etc/start_if.ndis_iwi0... it also failed to work, with no error message, from the command line. Of course, NDIS support has been reworked since then.) -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon univ. KF8NH _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"