You are not logged in.
Hello,
I'm trying to get netcfg2 to configure my WLAN, but always get "Wireless association failed".
The profile looks like this:
CONNECTION="wireless"
INTERFACE=ath0
SCAN="yes"
SECURITY="wpa"
ESSID="<essid>"
KEY="<key>"
IP="dhcp"
TIMEOUT=20
I actually can connect using `wpa_supplicant -i ath0 -D madwifi -B -c /etc/wpa_supplicant.conf && dhcpcd ath0` with /etc/wpa_supplicant.conf looking like this:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="<essid>"
psk="<key>"
priority=5
}
I would say this is essentially the same thing, so what am I doing wrong? The key is correct, because I copy&pasted it from /etc/wpa_supplicant.conf.
Offline
I'm having a similar issue--I suspect that we're either missing some doc that everyone knows about or that the docs are outdated and they haven't caught up yet.
Either way, I said the heck with it and put the commands in /etc/rc.local
wpa_supplicant -iath0 -c /etc/wpa_supplicant.conf -Dwext &
sleep 1
dhclient aht0
This works for me. I'm sure it's not the best way, but it's one of those things where either the docs or my installation has major breakage and I don't have the energy to track it down.
Offline
Ok, I updated netcfg a few minutes ago and now everything seems to work the way the wiki says it should. A network.d directory is created with examples and the wpa example worked for me.
Offline
I know this is kind of an old thread, but i'm having exactly the same problem as was posted here. works with wpa_supplicant + dhcpcd, but doesn't work through netcfg2. wpa_cli shows netcfg2's wpa_supplicant timing out, but "wpa_supplicant -c /etc/wpa_supplicant.conf -i ath0 -D madwifi" is fine...
Offline
add
WPA_OPTS="-D madwifi"
to your profile and let me know how you go.
Offline