wpa_supplicant + ifupdown Issues
kr0ntab at yahoo.com
Sat Jun 3 17:10:03 EDT 2006
I had originally posted this issue to the "Pkg-wpa-devel" group
responsible for the Debian/Ubuntu wpa binary distribution. But at
this point, I'm not certain if this is a problem with the ifupdown
integration, or a problem with wpa_supplicant.
(orginal post - please excuse the wrapping)
To make a long story short, when invoking wpa_supplicant with
ifupdown on first bootup, wpa_supplicant does not associate.
Distro: Ubuntu 6.06
Package: wpasupplicant 0.4.8-3ubuntu1
kernel: ubuntu official build - 2.6.15-23.39 (686)
Card: Intel 2200, ipw2200 driver v1.1.1
AP: Cisco 1231AG
Wireless: WPA-PSK, TKIP, Hidden SSID
My network and wpa settings:
$ cat /etc/network/interfaces
auto lo eth1
iface lo inet loopback
iface eth1 inet dhcp
wpa-psk AND-MA'-PSK-WAS-HERE :-)
$ ps -ef | grep wpa
root 3444 1 0 22:20 ? 00:00:00 /sbin/wpa_supplicant
-B -P /var/run/wpa_supplicant.eth1.pid -i eth1 -C
/var/run/wpa_supplicant -D wext
wpa_supplicant state says it's INACTIVE. I've been searching for
more info on this state, but have not been able to find anything.
Perhaps someone out there could provide more information on why it
would be in this state, and why it never comes out of it until a
manual ifupdown is issued.
> level 0
Rather than flood this first email with tons of wpa debug output
showing successful manual connections, I think the first step is to
understand why wpa_supplicant would stay in the INACTIVE state (see
wpa_cli output above), rather than cycling through from DISCONNECTED,
SCANNING, ASSOCIATING, and COMPLETED.
Here's the output of a manual ifup, successful of course:
$ sudo ifup eth1 --verbose
Configuring interface eth1=eth1 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: guessing wpa-driver type of "wext" for eth1
wpa_supplicant: /sbin/wpa_supplicant -B -P
/var/run/wpa_supplicant.eth1.pid -i eth1 -C /var/run/wpa_supplicant
wpa_supplicant: ctrl_interface socket located at
wpa_supplicant: wpa-ap-scan : OK
wpa_supplicant: configuring new network block, guessing network_id of
"0"? : 0
wpa_supplicant: wpa-ssid : OK
wpa_supplicant: wpa-psk : OK
wpa_supplicant: wpa-pairwise : OK
wpa_supplicant: wpa-group : OK
wpa_supplicant: wpa-key-mgmt : OK
wpa_supplicant: wpa-proto : OK
wpa_supplicant: wpa-scan-ssid : OK
wpa_supplicant: enabling network 0 : OK
dhclient3 -pf /var/run/dhclient.eth1.pid -lf
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Listening on LPF/eth1/00:0e:35:1a:e1:90
Sending on LPF/eth1/00:0e:35:1a:e1:90
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.104 -- renewal in 40531 seconds.
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
Synchronizing clock to ntp.ubuntu.com...
Many thanks in advance.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the HostAP