You are not logged in.

#1 2009-03-11 20:47:03

Dinh
Member
Registered: 2009-01-11
Posts: 7

[solved] wireless setup

Hey all

I have a problem with my wireless connection.
I have configured my wireless network (it's an rt61 pci card) in the /etc/rc.conf.
If I start the network deamon I get this error message:

$ sudo /etc/rc.d/network restart
Password: 
:: Stopping Network                                                      [DONE] 
:: Starting Network                                                      [BUSY] 
 > Could not associate wlan0 - try increasing WIRELESS_TIMEOUT and check network is WEP or has no security 
                                                                         [FAIL]

On the other hand the following command always works:

$ sudo dhcpcd wlan0
wlan0: dhcpcd 4.0.10 starting
wlan0: waiting for carrier
wlan0: carrier acquired
wlan0: broadcasting for a lease
wlan0: offered 192.168.1.3 from 192.168.1.1
wlan0: acknowledged 192.168.1.3 from 192.168.1.1
wlan0: checking 192.168.1.3 is available on attached networks
wlan0: leased 192.168.1.3 for 86400 seconds

Here is my /etc/rc.conf:

MODULES=(rt61pci ...)

wlan_wlan0="wlan0 essid NETGEAR"
wlan0="dhcp"
INTERFACES=(eth0 wlan0)

DAEMONS=(... network ...)

Does anyone have an idea why I have to start the dhcp client manually or what the error message might mean?

Thank you very much!

-- Dinh --

Last edited by Dinh (2009-03-15 20:15:04)

Offline

#2 2009-03-12 19:54:59

pinchyfingers
Member
From: Bristol, PA
Registered: 2008-11-04
Posts: 46
Website

Re: [solved] wireless setup

What does dhcpd do differently then the network script?

Offline

#3 2009-03-12 21:27:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] wireless setup

You're not comparing the right outputs. Your /etc/rc.d/network fails because it "Could not associate wlan0", as the error message says. Your dhcpcd output shows a successful lease, which could only happen after wlan0 is associated. Check your logs for clues.

fyi, rc.conf still works for simple open and wep networks, but netcfg is the recommended utility these days.

Offline

#4 2009-03-13 15:17:55

Dinh
Member
Registered: 2009-01-11
Posts: 7

Re: [solved] wireless setup

So what exactly does "Could not associate wlan0" mean? Is the device not ready yet?

/var/log/everything.log showes me this (I think the latter is the manually started dhcpcd):

Mar 12 22:19:18 arch init: Entering runlevel: 3
Mar 12 22:19:29 arch kernel: fuse init (API version 7.10)
Mar 12 22:19:39 arch kernel: NET: Registered protocol family 10
Mar 12 22:19:39 arch kernel: lo: Disabled Privacy Extensions
Mar 12 22:19:39 arch kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Mar 12 22:20:43 arch kernel: rt61pci 0000:05:02.0: firmware: requesting rt2561s.bin
Mar 12 22:20:43 arch dhcpcd[5546]: wlan0: dhcpcd 4.0.10 starting
Mar 12 22:20:43 arch kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Mar 12 22:20:43 arch dhcpcd[5546]: wlan0: waiting for carrier
Mar 12 22:20:44 arch kernel: wlan0: authenticate with AP 00:1f:33:d9:98:ac
Mar 12 22:20:44 arch kernel: wlan0: authenticated
Mar 12 22:20:44 arch kernel: wlan0: associate with AP 00:1f:33:d9:98:ac
Mar 12 22:20:44 arch kernel: wlan0: RX AssocResp from 00:1f:33:d9:98:ac (capab=0x401 status=0 aid=1)
Mar 12 22:20:44 arch kernel: wlan0: associated
Mar 12 22:20:44 arch kernel: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Mar 12 22:20:44 arch dhcpcd[5546]: wlan0: carrier acquired
Mar 12 22:20:44 arch dhcpcd[5546]: wlan0: broadcasting for a lease
Mar 12 22:20:44 arch dhcpcd[5546]: wlan0: offered 192.168.1.6 from 192.168.1.1
Mar 12 22:20:44 arch dhcpcd[5546]: wlan0: acknowledged 192.168.1.6 from 192.168.1.1
Mar 12 22:20:44 arch dhcpcd[5546]: wlan0: checking 192.168.1.6 is available on attached networks
Mar 12 22:20:49 arch dhcpcd[5546]: wlan0: leased 192.168.1.6 for 86400 seconds
Mar 12 22:20:54 arch kernel: wlan0: no IPv6 routers present

Thanks for the netcfg advise. But I prefer /etc/rc.conf's simplicity, if possible smile

> What does dhcpd do differently then the network script?
Good question... does anyone know?

Should I somewhere file a bug report or is /etc/rc.conf's wireless configuration deprecated anyways
and I should start using netcfg? I'm still kind of a Arch newbie smile

Offline

#5 2009-03-13 20:25:47

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: [solved] wireless setup

On 2nd October 2008 i wrote an article about Wirelles networks in Archlinux (http://my.opera.com/EVRAMP/blog/2008/10 … -and-linux), where I made a note about bug causing this issue and how to fix it.
But in February i installed Arch on different PC and didnt have this issue. So it may be hw related or whatever, but it might help you.

Offline

#6 2009-03-15 19:17:11

Dinh
Member
Registered: 2009-01-11
Posts: 7

Re: [solved] wireless setup

Thank you mery much evramp, it worked smile

This is what worked for me:

To resolve this uncomment the following lines in /etc/rc.d/network

#BSSID = `iwgetid $ 1-ra` 
# if [[$ BSSID "=" 00:00:00:00:00:00 "]]; then 
# Printhl "Could not associate $ 1 - try increasing WIRELESS_TIMEOUT and check network is WEP or has no security" 
# Return 1 
# fi

-- Dinh --

Offline

Board footer

Powered by FluxBB