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

Re: laptop wireless setup, wpa_supplicant.conf, driver ipw not supported? CLI only



On Fri 28 Oct 2011 at 14:54:38 -0700, keitho@strucktower.com wrote:

> I installed ifplugd. Still, the wireless does not work if I unplug the
> Ethernet, but now if I do a ifdown eth1 | ifup eth1 the wireless  will now
> connect (most of the time). Following is a session where the process
> worked, followed by my interfaces and ifplugd files. Note a couple of
> "Invalid argument" lines:

I unconscienciously wrote my previous post with static addressing (which
is what is on this machine for some connections) in mind. However, the
thrust of it is still correct: booting with the ethernet cable attached
gives you two operative interfaces and can lead to some messing about to
get just one in action.

> wpa_supplicant: using debug level: 3
> wpa_supplicant: /sbin/wpa_supplicant -s -B -P
> /var/run/wpa_supplicant.eth1.pid -i eth1 -D wext -t -ddd -C
> /var/run/wpa_supplicant
> Starting /sbin/wpa_supplicant...
> ioctl[SIOCSIWENCODEEXT]: Invalid argument
> ioctl[SIOCSIWENCODEEXT]: Invalid argument

The -C option is being used incorrectly.

> allow-hotplug eth0
> iface eth0 inet dhcp

Ok if you are not using ifplugd. Lose the first line if you are.

> # the following two lines allow wakeonlan
> # this runs ethtool after every time eth0 is  brought up or taken down,
> # so WOL should work even if not brought down correctly
> post-up /sbin/ethtool -s $IFACE wol g
> post-down /sbin/ethtool -s $IFACE wol g

Pass on this.

> allow-hotplug eth1
> iface eth1 inet dhcp
> # wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> wpa-debug-level 3
> wpa-driver wext
> wpa-ssid "gojo1985"
> wpa-psk e0609ee9b0f20c1393f815c9c11759f41ca4b3f078146e842ad48ab692097f5d

Ok, but will need altering if roaming is in place.

A word about 'wpa-driver wext'. The supplicant takes care of choosing
the driver. On Squeeze the order is wext, nl80211. On testing and
unstable it is nl80211, wext. The line could be superfluous.

> INTERFACES="eth0 eth1"

INTERFACES=""

> HOTPLUG_INTERFACES="eth0 eth1"

HOTPLUG_INTERFACES="eth0"

You want to manage the interfaces by connecting and disconnecting the
ethernet cable. Disconnecting causes wpa_supplicant to bring eth1 up,
See /etc/wpa_supplicant/action_wpa.sh.

You may like this:

   http://manual.aptosid.com/en/inet-ifplug-en.htm


Reply to: