You are not logged in.

#1 2006-02-16 18:57:40

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

ipw2200 - sometimes it works, sometime it doesn't

Hi,

Until I recently did a full update of my system I had no problems with ipw2200.  The most recent kernel seems to give me trouble.

Since about 2 weeks ago I usually recieve following message on boot:

Error for wireless request "Set Mode" (8B06) :
      SET failed on device eth1 ; Invalid argument

Every once in a while it works.  I can't say why.

Any ideas?

Gary

Offline

#2 2006-02-16 19:27:26

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: ipw2200 - sometimes it works, sometime it doesn't

That's most likely because of the way udev loads modules - it does not honor order of devices.

You can fix this in two ways: the first, is the poorer way - you can use the udev rules (search the forum) for ordering of net devices.

The better solution, in your case, is to use 'wlan0' or something to that effect, for your card.  'eth' indicates ethernet card.

Offline

#3 2006-02-17 10:23:21

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: ipw2200 - sometimes it works, sometime it doesn't

I have a similar problem. Randomly at boot wifi network profile fails to run. No errors anywhere in the logs, dmesg etc. Same thing on the wireless router. Sometimes it works though. So far I think I've eliminated the following suspects:

1. Wrong order of eth devices (udev moudules autoloading). The devices are created properly: eth0 is always realtek 8139 (8139cp module is blaclisted) and eth1 is always wireless device.

2. Wrong DHCP lease. This is not the case. The logs of the dhcp server (dnsmaq) are fine. I'm using dhcp forwarder on the wireless router and dhcp server is on another machine acting as a main router for my local network. When network fails there is nothing in the dhcp server logs. So laptop isn't event trying to contact dhcp server.

3. Wrong configuration of the wireless router. It's linksys wrt54gs with the latest dd-wrt firmware. Everything is ok on this side. No sign of a problem. The wireless LED does not even blink once which means laptop isn't trying to connect at all.

I think the problem may be related to ipw2200/wpa supplicant drivers or firmware loading. Interesting thing is that it happens only during boot time. I've tried yesterday to reload network about 15 times in a row from cli (/etc/rc.d/network restart) and it worked every time. Maybe there is something wrong with firmware/module loading when system is under heavy load ? I'll try to investigate more this weekend. BTW I'm using standard arch packages for kernel26, wpa_supplicant etc. (latest versions from current). There is always a possibility that it's hardware related but I doubt it because after the boot it always works from cli.

Offline

#4 2006-02-19 16:40:27

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: ipw2200 - sometimes it works, sometime it doesn't

First of all, thanks for your help.

In my case wireless randomly booted up either as eth0 or eth1.

I've chosen a solution posted already several times here using udev.rules:

First I created the following file:

 #/etc/udev/rules.d/netdevices.rules
KERNEL="eth*", SYSFS{address}="00:0e:35:4b:28:d5", NAME="wlan0"

Then I changed my rc.conf accordingly:

#
# /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"
# 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/unimaps
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE=
HARDWARECLOCK="localtime"
TIMEZONE=Berlin/Europe
KEYMAP=de-latin1-nodeadkeys
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by hwdetect
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
#   - prefix a module with a ! to disable it
#
MODULES=(!usbserial !snd-intel8x0 wbsd mmc-block)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="matrix"
#
# 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
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
wlan0="dhcp"
wlan_wlan0="wlan0 mode auto key s:XXXXXXXXXXXXXXX"
INTERFACES=(lo eth0 wlan0)
##eth1="dhcp"
## INTERFACES=(lo eth0 eth1)
#
# 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
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(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 !hotplug !pcmcia dbus hal network bluetooth alsa cups !netfs !crond !gdm)


# End of file

Offline

Board footer

Powered by FluxBB