[pkg-wpa-devel] Bug#477479: Bug#477479: wpasupplicant: Integration problem with ifplugd ?

Kel Modderman kel at otaku42.de
Wed Apr 23 13:21:47 UTC 2008


Hi,

On Wednesday 23 April 2008 22:51:43 giggz wrote:
> Package: wpasupplicant
> Version: 0.6.3-1
> Severity: normal
> 
> Hi,
> 
> I'm running under debian sid with a laptop. My wifi card is an
> ipw2200. I'm using the 2.6.24.4 with the last firmware. The wifi card
> and the wifi interface work good.
> 
> I have ifplugd and wpasupplicant on my laptop. ifplugd is a
> configuration daemon for ethernet devices : when a link beat is
> detected on the interfaces ifplugd launches ifupdown. 
> 
> On my pc ifplugd watches all the interfaces (eth0 = wired ; eth1 =
> wifi). When I plug a wired cable, ifplugd detects link beats an I get
> internet.
> Without any mention of wpasupplicant under /etc/network/interfaces,
> when I have an open network at proximity, ifplugd detects it and I get
> internet.

Below you describe that you setup the "wpa-roam" scheme of wpasupplicant
package. When using this mode, _wpa_supplicant_ does the "link detection", and
it notifies a listening wpa_cli daemon which in turn calls ifup/ifdown as
required. There is no use for ifplud in this mode, ifplugd will only get in the
way.

> 
> Now I would like to integrate your great app wpasupplicant in this
> system. I have a WPA wifi network. So I have configured wpasupplicant
> to work with it. I have written a conf file for roaming with ssid et
> psk key. Then in my /etc/network/interfaces I have added :
> 
> iface eth1 inet manual
> wpa-roam path_to_conf_file
> 
> iface default inet dhcp
> 
> I don't have any "auto eth1" or "allow-hotplug eth1" because ifplugd
> can't work with them.

In /usr/share/doc/wpasupplicant/README.modes.gz ifplugd is not mentioned
in the roaming mode section, because it is not needed.

> 
> So now if I do 
> sudo wpa_supplicant -ieth1 -c path_to_conf_file -d -K
> I have internet.
> 
> then
> sudo wpa_action eth1 stop
> to deconfigure it.
> 
> If I just do :
> sudo ifup eth1
> I get internet.
> 
> then
> sudo wpa_action eth1 stop
> to deconfigure it.
> 
> But If I don't type these lines I don't get any connections. ifplugd
> doesn't detect any beat.
> 
> I found something interesting :
> If I enter "sudo ifup eth1" and my wifi card if off (through the wifi
> hotkey), I don't get any connection (normal). But if I switch on my
> card, I get internet directly. And that's because wpasupplicant was
> launched by the ifup before. Then ifplugd detects beats and so I get
> internet.
> 
> Is there a way to solve this problem ? Is there special wpasupplicant
> option for this ? 
> 
> Sorry if this bug report is not in the right place...

Thanks, Kel.





More information about the Pkg-wpa-devel mailing list