[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using WPA without wpa_supplicant?



Hi François!

On Sat, 22 Oct 2005, François TOURDE wrote:

1) I reinstall and relaunch wpa_supplicant, with ap_scan=0, and only
  one network={} entry

Try this config:

# wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
        ssid="YOURESSID"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP WEP104 WEP40
        priority=9
        psk=<YOURKEY>
}

And disable wpa_supplicant in /etc/default.
Add the following in your /etc/network/interfaces:

# The primary network interface
iface eth1 home dhcp
#
##      WEXT
#       pre-up /usr/sbin/wpa_supplicant -D wext -i eth1 -c /etc/wpa_supplicant.conf -Bw
#
        pre-up /usr/sbin/wpa_supplicant -i eth1 -D ipw -c/etc/wpa_supplicant.conf -Bw
        post-down killall -q wpa_supplicant

        wireless-mode managed
        wireless-essid any

Be sure, that /etc/network/netsheme contains the mentioned "home" above:

#!/bin/bash
# /etc/network/netsheme for WPASupplicant
locations=$(whereami --mapping)

if [[ "$locations" == *home* ]]
        then
                echo "home"
        elif [[

(...)

Sometimes the driver "wext" in /etc/network/interfaces gives better results.
For ipw you could give it a try.

3) I lost the link (don't know why)

Seems, that the driver can't authenticate. (?) Try calling wpa_supplicant by
hand and with -d.

6) dhclient is unable to obtain an IP
7) ...
Of course, if you can't associate, you won't get a ip. ;)

Works here well....
--
Regards, GR                      | GnuPG-key: mail -s 'get gpg-key'
Ferienwohnungen an der Ostsee    | ICQ: 146212092
http://blog.emmily.com           | Yahoo: gee_ghost



Reply to: