You are not logged in.

#1 2008-02-01 12:41:25

damumbl
Member
Registered: 2008-02-01
Posts: 4

[netcfg2] gives me "Wireless association failed"

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

#2 2008-02-04 00:15:39

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: [netcfg2] gives me "Wireless association failed"

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.  smile

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

#3 2008-02-04 00:50:51

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: [netcfg2] gives me "Wireless association failed"

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

#4 2008-05-16 12:11:57

moskvax
Member
From: Melbourne
Registered: 2005-08-08
Posts: 17

Re: [netcfg2] gives me "Wireless association failed"

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

#5 2008-05-16 13:52:09

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [netcfg2] gives me "Wireless association failed"

add

WPA_OPTS="-D madwifi"

to your profile and let me know how you go.

Offline

Board footer

Powered by FluxBB