You are not logged in.

#1 2009-01-25 18:25:45

JordyD
Member
Registered: 2009-01-23
Posts: 29

Problem with wpa_supplicant and netcfg

When I try to run "netcfg <the-name-of-my-profile>" it fails, with this error:

:: <the-name-of-my-profile> up  - wpa_supplicant did not start, possible configuration error        [FAIL]

This is my netcfg profile:

CONNECTION="wireless"
DESCRIPTION="Home connection using <myESSID>"
INTERFACE=eth1
SCAN="yes"
SECURITY="wpa"
ESSID=<myESSID>
key=<my-key>
IP="dhcp"
TIMEOUT=20

And this is my wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

network={
     ssid="<myESSID>"
     #psk="<myKey>"
     psk=<long-hex-code>
}

Am I missing something? If it matters, I had some trouble setting up the wpa_supplicant file earlier because wpa_passphrase didn't like my key, which started with a "!", so I had to escape it with "/". It's also escaped in the netcfg profile.

Thanks,
Jordy


"UNIX: as in certain cults it is possible to kill a process if you know its true name." --- Ken Thompson and Dennis M. Ritchie

Offline

#2 2009-01-25 18:52:19

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Problem with wpa_supplicant and netcfg

I'd try to run wpa_supplicant manually; that way it will tell you what it thinks is wrong.

You don't need to specify the ssid and psk in both the wpa_supplicant.conf and netcfg's profile. One will do; currently I expect that you wpa_supplicant.conf is going to be ignored, unless you set your SECURITY='wpa-config'.

Another thing is that you don't escape things with a '/', you should be using a '\', but only if you specify the psk as an argument to wpa_passphrase: a ! is a special character to bash.

when wpa_passphrase reads from stdin, there are no issues.

Offline

Board footer

Powered by FluxBB