You are not logged in.

#1 2010-08-21 20:35:45

Hudders
Member
Registered: 2010-08-21
Posts: 3

Can't get wireless network to automatically connect

Hi

I'm running up against a brick wall here trying to figure out why my wireless connection wont connect automatically.

The relevant part of my /etc/rc.conf is as follows:

eth0="dhcp"
wlan0="dhcp"
wlan_wlan0="wlan0 mode essid JUPITER key AB8E306898"
INTERFACES=(eth0 wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

The only way I can get it to connect is by running the following:

iwconfig wlan0 essid JUPITER key AB8E306898
iwconfig wlan0 channel 11
dhcpcd wlan0

So, I assume that it's to do with having to set the channel; but how do I got about setting that in the rc.conf file? And why can't it figure out the channel by itself? When I scan for available networks, it has no problem picking it up so I'd assume that it shouldn't need for the channel to be explicitly defined.

Any help on this is appreciated.
Thanks.

Offline

#2 2010-08-21 22:09:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: Can't get wireless network to automatically connect

Did you put network in the Daemons statement in /etc/rc.conf  ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-08-21 22:19:28

Hudders
Member
Registered: 2010-08-21
Posts: 3

Re: Can't get wireless network to automatically connect

The daemons part is just the default:

DAEMONS=(syslog-ng network netfs crond)

Offline

#4 2010-08-21 22:21:51

kcirick
Member
Registered: 2010-06-21
Posts: 364

Re: Can't get wireless network to automatically connect

Why are you staying away from managers like networkmanager or wicd?

Offline

#5 2010-08-21 22:40:18

Hudders
Member
Registered: 2010-08-21
Posts: 3

Re: Can't get wireless network to automatically connect

Thanks for the advice; wicd did the trick.

Offline

Board footer

Powered by FluxBB