You are not logged in.

#1 2009-02-20 07:23:28

Darkarix
Member
Registered: 2008-08-29
Posts: 6

Wireless connects to network, but not on boot

Hi everybody,
I'm a happy owner of a Dell XPS m1330. My video card is an Intel 3945, which is supposed to work perfectly under linux.
I have installed the driver iwlwifi-3945-ucode updated to the latest version.
When I turn the laptop on my network demon fails to start. Here is my rc.conf:

$ cat /etc/rc.conf                              
#                                                                    
# /etc/rc.conf - Main Configuration for Arch Linux                   
#                                                                    

# -----------------------------------------------------------------------
# LOCALIZATION                                                           
# -----------------------------------------------------------------------
#                                                                        
# LOCALE: available languages can be listed with the 'locale -a' command 
# HARDWARECLOCK: set to "UTC" or "localtime"                             
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock  
# TIMEZONE: timezones are found in /usr/share/zoneinfo                   
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps                    
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans                          
# USECOLOR: use ANSI color sequences in startup messages                    
#                                                                           
LOCALE="it_IT.utf8"                                                         
HARDWARECLOCK="localtime"                                                   
USEDIRECTISA="no"                                                           
TIMEZONE="Europe/Rome"                                                      
KEYMAP="it"                                                                 
CONSOLEFONT=                                                                
CONSOLEMAP=                                                                 
USECOLOR="yes"                                                              

# -----------------------------------------------------------------------
# HARDWARE                                                               
# -----------------------------------------------------------------------
#                                                                        
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed     
# MOD_BLACKLIST: Prevent udev from loading these modules                 
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.     
#                                                                        
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#                                                                               
MOD_AUTOLOAD="yes"                                                              
#MOD_BLACKLIST=() #deprecated                                                   
MODULES=(tg3 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore uvcvideo uinput loop iwl3945)                                                                                                                 

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"                                                     

# -----------------------------------------------------------------------
# NETWORKING                                                             
# -----------------------------------------------------------------------
#                                                                        
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts        
#                                                                        
HOSTNAME="myhost"                                                        

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#                                                                           
# Interfaces to start at boot-up (in this order)                            
# Declare each interface then list in INTERFACES                            
#   - prefix an entry in INTERFACES with a ! to disable it                  
#   - no hyphens in your interface names - Bash doesn't like it             
#                                                                           
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")                      
# Wireless: See network profiles below                                      
#                                                                           
wlan0="dhcp"                                                                
#wlan_wlan0="wlan0 essid myessid"
INTERFACES=(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)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng netfs crond network alsa dbus hal fam kdm)

Once on if I type "dhcpcd wlan0" this is what I get:

# dhcpcd wlan0
wlan0: dhcpcd 4.0.10 starting
wlan0: waiting for carrier
wlan0: timed out

While if I type "iwconfig wlan0 essid default && dhcpcd wlan0" I get:

wlan0: dhcpcd 4.0.10 starting
wlan0: broadcasting for a lease
wlan0: offered 192.168.0.107 from 192.168.0.1
wlan0: acknowledged 192.168.0.107 from 192.168.0.1
wlan0: checking 192.168.0.107 is available on attached networks
wlan0: leased 192.168.0.107 for 604800 seconds

and the connection would work perfectly fine!! But you know, it kind of bothers me type that every time, although I could make a script.
I think that my problem is because of the way "my" network is structured. In fact I have a router and a bridge (I think).

# iwlist wlan0 scan                                                                               
wlan0     Scan completed :                                                                                
          Cell 01 - Address: 00:0D:88:25:3C:F9
                    ESSID:"default"
                    Mode:Master
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=83/100  Signal level:-51 dBm  Noise level=-127 dBm
                    Encryption key:off
                    IE: Unknown: 000764656661756C74
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030106
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:tsf=00000014f0cc1860
                    Extra: Last beacon: 186ms ago
          Cell 02 - Address: 00:0D:F5:12:26:CA
                    ESSID:"DRD_BRIDGE"
                    Mode:Master
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=74/100  Signal level:-60 dBm  Noise level=-127 dBm
                    Encryption key:on
                    IE: Unknown: 000A4452445F425249444745
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030106
                    IE: Unknown: 2A0102
                    IE: Unknown: 32080C1218243048606C
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=000003353bdd6bae
                    Extra: Last beacon: 790ms ago

Which is kind of messed up.
Allright, if you guys need anything else just ask, any advices are well accepted!!
Thanks in advance,
                                           Darkarix

Offline

#2 2009-02-20 09:27:21

Lilim
Member
From: Poland
Registered: 2008-02-09
Posts: 37

Re: Wireless connects to network, but not on boot

Tried to change:

wlan0="dhcp"                                                                
#wlan_wlan0="wlan0 essid myessid"
INTERFACES=(wlan0)

to

wlan0="dhcp"                                                                
wlan_wlan0="wlan0 essid default"
INTERFACES=(wlan0)

?
You need to define the AP you wish to connect (and you're doing it with the "iwconfig wlan0 essid default" command).

Offline

#3 2009-02-20 15:28:00

Darkarix
Member
Registered: 2008-08-29
Posts: 6

Re: Wireless connects to network, but not on boot

Lilim wrote:

Tried to change:

wlan0="dhcp"                                                                
#wlan_wlan0="wlan0 essid myessid"
INTERFACES=(wlan0)

to

wlan0="dhcp"                                                                
wlan_wlan0="wlan0 essid default"
INTERFACES=(wlan0)

?
You need to define the AP you wish to connect (and you're doing it with the "iwconfig wlan0 essid default" command).

Oh, yeah... I forgot to write that I'd already tried that. Anyways, here's the output:

# /etc/rc.d/network start
:: Starting Network                                                                                                    [BUSY] 
> Could not associate wlan0 - try increasing WIRELESS_TIMEOUT and check network is WEP or has no security
                                                                                                                       [FAIL]

And I know the router has no WEP, although the bridge does. This should not be a problem, though, because apparently I can connect directly to the router.
Thanks!

Offline

#4 2009-09-10 09:22:10

Darkarix
Member
Registered: 2008-08-29
Posts: 6

Re: Wireless connects to network, but not on boot

Offline

Board footer

Powered by FluxBB