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

Re: wpasupplicant_0.4.8-1 problem



On Tue, Apr 04, 2006 at 12:53:15PM -0700, L.V.Gandhi wrote:
> On 4/3/06, Christopher Nelson <chris@cavein.org> wrote:
> 
> > try making that wpa_conf a wpa-conf instead and try again.  At least,
> > that's how I have it in my /etc/networking/interfaces
> 
> > I'm using wpa_supplicant.conf and wep right now and it's working.
> 
> My system is sid. I have ifplugd and wpasupplicant installed.
> My wlan0 connects without any problem with the following
> /etc/network/interfaces file
> lvgdell600m:/mnt/wind/software/Linux/dell_sid# cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> 
> # The loopback network interface
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> auto eth0
> iface eth0 inet dhcp
> 
> # wireless interface
> auto wlan0
> iface wlan0 inet dhcp
> wireless_essid mohan
> wireless_key XXXXXXXXXX
> wireless_mode managed
> post-up ifmetric wlan0 5

So it works without wpasupplicant, good to know.

> But I thought to use wpasupplicant so that it can work, where there is
> no wep Hotspot.
> Hence I installed wpasupplicant. It was working before the new
> wpasupplicant version 0.4.8-1 installed.

I had to tweak things after upgrading wpasupplicant.

> I have also copied
> /etc/wpa_supplicant.conf.dpkg-bak file to /etc/wpa_supplicant.conf.
> I have the following /etc/network/interfaces.
> # The loopback network interface
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> allow-hotplug eth0
> iface eth0 inet dhcp
> 
> # wireless interface
> allow-hotplug wlan0
> iface wlan0 inet dhcp
> wpa-conf /etc/wpa_supplicant.conf
> post-up ifmetric wlan0 5

That all looks good.

>  I corrected line wpa-conf as said.

The other may work, but i have it as wpa-conf in my file.

> I am giving below  /etc/wpa_supplicant.conf
> lvgdell600m:/mnt/wind/software/Linux/dell_sid# cat /etc/wpa_supplicant.conf
> # Minimal /etc/wpa_supplicant.conf to associate with open
> #  access points. Please see
> #  /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz for more
> #  complete configuration parameters.
> #
> # Also see the other files in /usr/share/doc/wpasupplicant/examples/ for
> #  specific configuration examples.
> 
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> 
> eapol_version=1
> ap_scan=1
> fast_reauth=1
> 
> ### Example of basic WPA-PSK secured AP
> #network={
> #    ssid="ournet"
> #    psk="w243sd5f324asdf5123sadf54324"
> #}
> 
> # Single key Hex WEP
> network={
>         ssid="mohan"
>         key_mgmt=NONE
>         wep_key0=XXXXXXXXXX
>         wep_tx_keyidx=0
>         priority=5
> }
> 
> ### Associate with any open access point
> ###  Scans/ESSID changes can be done with wpa_cli
> network={
>         ssid=""
>         key_mgmt=NONE
> }
> but still wlan0 is not getting connected.

Just out of curiosity, have you connected to an open access point?  Or
at tried?  That part looks like it whould work.  The only different
thing I have in my network block is the line:
        auth_alg=SHARED
right before my key.  I don't know that would work or not.  If it
doesn't, the problem is beyond the scope of my comprehension of the
subject, sorry.

> I get in log as below
> Apr  4 11:54:37 localhost ifplugd(wlan0)[4649]: client: Internet
> Software Consortium DHCP Client 2.0pl5
> Apr  4 11:54:37 localhost ifplugd(wlan0)[4649]: client: Copyright
> 1995, 1996, 1997, 1998, 1999 The Internet Software Consor
> tium.
> Apr  4 11:54:37 localhost ifplugd(wlan0)[4649]: client: All rights reserved.
> Apr  4 11:54:37 localhost ifplugd(wlan0)[4649]: client: Please
> contribute if you find this software useful.
> Apr  4 11:54:37 localhost ifplugd(wlan0)[4649]: client: For info,
> please visit http://www.isc.org/dhcp-contrib.html
> Apr  4 11:54:38 localhost dhclient: Listening on LPF/wlan0/00:90:4b:1b:5a:b7
> Apr  4 11:54:38 localhost dhclient: Sending on   LPF/wlan0/00:90:4b:1b:5a:b7
> Apr  4 11:54:38 localhost dhclient: Sending on   Socket/fallback/fallback-net
> Apr  4 11:54:38 localhost dhclient: DHCPDISCOVER on wlan0 to
> 255.255.255.255 port 67 interval 7
> Apr  4 11:54:38 localhost ifplugd(wlan0)[4649]: client: Listening on
> LPF/wlan0/00:90:4b:1b:5a:b7
> Apr  4 11:54:38 localhost ifplugd(wlan0)[4649]: client: Sending on  
> LPF/wlan0/00:90:4b:1b:5a:b7
> Apr  4 11:54:38 localhost ifplugd(wlan0)[4649]: client: Sending on  
> Socket/fallback/fallback-net
> Apr  4 11:54:38 localhost ifplugd(wlan0)[4649]: client: DHCPDISCOVER
> on wlan0 to 255.255.255.255 port 67 interval 7
> Apr  4 11:54:45 localhost dhclient: DHCPDISCOVER on wlan0 to
> 255.255.255.255 port 67 interval 8
> Apr  4 11:54:45 localhost ifplugd(wlan0)[4649]: client: DHCPDISCOVER
> on wlan0 to 255.255.255.255 port 67 interval 8
> Apr  4 11:54:53 localhost dhclient: No DHCPOFFERS received.
> Apr  4 11:54:53 localhost dhclient: No working leases in persistent database.
> Apr  4 11:54:53 localhost ifplugd(wlan0)[4649]: client: No DHCPOFFERS received.
> Apr  4 11:54:53 localhost ifplugd(wlan0)[4649]: client: No working
> leases in persistent database.
> Apr  4 11:54:53 localhost dhclient: Exiting.
> Apr  4 11:54:53 localhost ifplugd(wlan0)[4649]: client: Exiting.
> Apr  4 11:54:53 localhost ifplugd(wlan0)[4649]: client: Failed to
> bring up wlan0.
> Apr  4 11:54:53 localhost ifplugd(wlan0)[4649]: Program executed successfully.

My understanding of this is that dhcp is started, but fails to get a
lease.  I don't see any mention of wpasupplicant, but I just checked my
logs and don't see it there either.
 
> Can you point out where am I going wrong?

The only suggestion I have left is that above.

> How wpasupplicant is started in the new scheme of things?

I believe wpasupplicant is started with ifup now, instead of being
started seperately in init.d -- but don't quote me on that, I don't have
a very good understanding of how the new wpasupplicant works.

> entry in
> /etc/network/interfaces is sufficient?

It is for me, at least.

-- 
Christopher Nelson -- chris@cavein.org
-----------------------------------------------------------------------
One good suit is worth a thousand resumes.



Reply to: