You are not logged in.

#1 2010-10-31 03:51:57

pedro3005
Member
Registered: 2009-08-09
Posts: 12

Sporadic issues with wireless connection (dhcpcd times out)

I'm using a wireless usb adaptor Dlink DWA 110 (chipset rt73). It can connect fine some times, but many times it times out on dhcpcd. Raising the time out time causes it to hold indefinitely on the message "offered 192.168.0.132 from 192.168.0.1". Analyzing the dmesg, I see

[  118.065433] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  507.792005] wlan0: deauthenticating from 00:1e:58:16:89:8c by local choice (reason=3)
[  507.795984] wlan0: direct probe to AP 00:1e:58:16:89:8c (try 1)
[  507.798617] wlan0: direct probe responded
[  507.798622] wlan0: authenticate with AP 00:1e:58:16:89:8c (try 1)
[  507.800482] wlan0: authenticated
[  507.800506] wlan0: associate with AP 00:1e:58:16:89:8c (try 1)
[  507.802986] wlan0: RX AssocResp from 00:1e:58:16:89:8c (capab=0x431 status=0 aid=6)
[  507.802991] wlan0: associated
[  507.816784] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

I'm writing this from an ubuntu live cd, where it works just fine. Here follows my 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", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# 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="en_US.UTF-8"
HARDWARECLOCK="UTC"
TIMEZONE="America/Bahia"
KEYMAP="us"
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=(!usblp !ipv6)

# 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="pedro"

# 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
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
#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=(dlink)

# -----------------------------------------------------------------------
# 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 network net-profiles cups dbus hal netfs crond alsa webmin timidity++)

I've tried googling, but no suggestion seems to work. Any help?

Offline

#2 2010-10-31 16:30:54

pedro3005
Member
Registered: 2009-08-09
Posts: 12

Re: Sporadic issues with wireless connection (dhcpcd times out)

As suggested via IRC, running

iwconfig wlan0 power off

seemed to help. But as the problem is sporadic, I'm not sure that is a permanent fix. Will update if necessary,

Offline

#3 2010-10-31 18:22:56

Kosmonavt
Member
Registered: 2010-02-15
Posts: 100

Re: Sporadic issues with wireless connection (dhcpcd times out)

This is basically a workaround, but still. You can try hold_connect script to automatically watch connection status. It can be found here: https://bbs.archlinux.org/viewtopic.php?id=103139. Just add "iwconfig wlan0 power off" string in function connect under "sudo netcfg down ..." line.

Offline

#4 2010-10-31 19:56:00

pedro3005
Member
Registered: 2009-08-09
Posts: 12

Re: Sporadic issues with wireless connection (dhcpcd times out)

Once I manage to connect it doesn't actually disconnect though. It's not unstable and the speed seems good. Just sometimes it refuses to connect even once.

Offline

Board footer

Powered by FluxBB