You are not logged in.

#1 2009-03-31 10:47:56

Flasher
Member
From: Bavaria / Germany
Registered: 2005-04-24
Posts: 126

Manual wlan config works - netcfg2 can't connect

Hello!

I'm using two different wlan, configured with wpa_supplicant. With the netcfg2 configuration I can't connect to the wlan. I get the following error message:

wlan0: timed out
                   - DHCP IP lease attempt failed

I get this message with both wlans. I'm using the following configuration:

CONNECTION="wireless"
DESCRIPTION=""
INTERFACE=wlan0
HOSTNAME=sn-client-01
IP="dhcp"
DHCP_TIMEOUT=10
ESSID=""
SECURITY="WPA-CONFIG"
KEY=""
SCAN="NO"
TIMEOUT=15
WPA_CONF="/etc/wpa_supplicant_sn.conf"
WPA_OPTS="-B -Dwext -i wlan0"

But if I'm using my wlan configuration script, I can connect to the wlan:

ifconfig wlan0 up
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant_sn.conf
dhcpcd wlan0

Does anybody know, where are the difference between the two methods?

Thanks for help!

Best regards,

Flasher

Offline

#2 2009-03-31 11:27:02

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: Manual wlan config works - netcfg2 can't connect

What about modifying your profile like this?

CONNECTION="wireless"
DESCRIPTION=""
INTERFACE=wlan0
HOSTNAME=sn-client-01
SCAN="yes"
SECURITY="wpa"
ESSID="<<put your essid>>"
KEY="<<put your key>>"
IP="dhcp"
DHCP_TIMEOUT=30

As you can see dhcp_timeout has been increased and security set to wpa.


Till the last battle, till the last bottle.
aur - twitter

Offline

#3 2009-03-31 14:32:09

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Manual wlan config works - netcfg2 can't connect

Why aren't you specifiying an ESSID in the netcfg profile?

I have never done without but it does not hurt to try wink. It does limit to rely on what wpa_supplicant can connect too though - it will only pick the config section that concerns your specific ESSID.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB