RE: 6-BETA1 iwi + wpa_supplicant fails, and sometimes silently re boots

From: Kirk Davis <Kirk.Davis_at_epsb.ca>
Date: Tue, 26 Jul 2005 10:24:49 -0600
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_at_freebsd.org
[mailto:owner-freebsd-current_at_freebsd.org] On Behalf Of Brandon S. Allbery
KF8NH
Sent: July 25, 2005 6:54 PM
To: freebsd-current_at_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_at_kf8nh.com
system administrator      [WAY too many hats]        allbery_at_ece.cmu.edu
electrical and computer engineering, carnegie mellon univ.         KF8NH

_______________________________________________
freebsd-current_at_freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Tue Jul 26 2005 - 14:29:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:39 UTC