HowTo for the Seagate FreeAgent DockStar - WLAN

Selecting the WLAN USB adapter

In reading several forum statements, I figured out that the easiest fit for the Debian Squeeze was a TP-Link TL-WN321G, also the price was good (< 10 EUR). It has the standards IEEE 802.11b/g (up to 54 Mbps).

But when I checked it out, surprise, instead (2009-02-08) of an

it is now (2010-09-15)

The loaded driver has changed from Driver: "zd1211rw" to now Driver: "rt73usb".
So, let's see if it also works.

I tried also a low-cost TP-Link WN721N adapter (2010-09-29). The driver ath9k_htc.ko is new in kernel 2.6.35.4. The firmware ar9271.fw can be downloaded from http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git. Click at ath9k_htc from 2010-09-08 on snapshot, the file linux-firmware-b5ce48e.tar.gz will be generated and downloaded. Extract ar9271.fw (51280 bytes) and put it in /lib/firmware, that worked. The discussion about installation can be found in http://forum.doozan.com/read.php?2,563,page=2. Unfortunately the data rate was low (1 Mb/s), so I gave up.

Analysis of what is going on

In order to find out what is going on, when you plug your WLAN USB adapter in, you have the following tools to do so:

root@FADS92:~# dmesg | tail -n24
[24369.415563] usb 1-1.4: New USB device found, idVendor=148f, idProduct=2573
[24369.422489] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[24369.429866] usb 1-1.4: Product: 54M.USB.......
[24369.434333] usb 1-1.4: Manufacturer: Ralink
[24369.438545] usb 1-1.4: SerialNumber: 12345
[24369.444567] usb 1-1.4: configuration #1 chosen from 1 choice
[24369.544718] cfg80211: Using static regulatory domain info
[24369.550177] cfg80211: Regulatory domain: US
[24369.554381]  (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[24369.561650]  (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
[24369.568484]  (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[24369.575302]  (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[24369.582131]  (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[24369.589013]  (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[24369.595849]  (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[24369.608515] cfg80211: Calling CRDA for country: US
[24369.848544] phy0 -> rt2500usb_init_eeprom: Error - Invalid RT chipset detected.
[24369.855909] phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device.
[24369.862994] usbcore: registered new interface driver rt2500usb
[24370.190378] phy1: Selected rate control algorithm 'minstrel'
[24370.192934] Registered led device: rt73usb-phy1::radio
[24370.198791] Registered led device: rt73usb-phy1::assoc
[24370.204162] Registered led device: rt73usb-phy1::quality
[24370.210109] usbcore: registered new interface driver rt73usb

root@FADS92:~# lsusb  # package found with "apt-cache search lsusb"
Bus 001 Device 005: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter
...

Kernel modules loaded:
root@FADS92:~# lsmod
Module                  Size  Used by
arc4                    1056  2
ecb                     1711  2
rt73usb                20654  0
crc_itu_t               1129  1 rt73usb
rt2500usb              15999  0
rt2x00usb               6573  2 rt73usb,rt2500usb
rt2x00lib              22268  3 rt73usb,rt2500usb,rt2x00usb
mac80211              147698  2 rt2x00usb,rt2x00lib
cfg80211              111019  2 rt2x00lib,mac80211
rfkill                 13908  1 cfg80211
ipv6                  250232  10
...

root@FADS92:~# hwinfo --wlan   # source: $ apt-get install hwinfo
09: USB 00.0: 0282 WLAN controller
  [Created at usb.122]
  Unique ID: 33sj.Cp2jx1QOiw7
  Parent ID: ADDn.d7FDLX76qXB
  SysFS ID: /devices/platform/orion-ehci.0/usb1/1-1/1-1.4/1-1.4:1.0
  SysFS BusID: 1-1.4:1.0
  Hardware Class: network
  Model: "Ralink 54M.USB......."
  Hotplug: USB
  Vendor: usb 0x148f "Ralink Technology, Corp."
  Device: usb 0x2573 "54M.USB......."
  Revision: "0.01"
  Serial ID: "12345"
  Driver: "rt73usb"
  Driver Modules: "rt73usb"
  Device File: wlan0
  Features: WLAN
  Speed: 480 Mbps
  HW Address: 94:0c:6d:e3:c8:fc
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "usb:v148Fp2573d0001dc00dsc00dp00icFFiscFFipFF"
  Driver Info #0:
    Driver Status: rt2500usb is active
    Driver Activation Cmd: "modprobe rt2500usb"
  Driver Info #1:
    Driver Status: rt73usb is active
    Driver Activation Cmd: "modprobe rt73usb"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #3 (Hub)

$ dmesg
[   14.335298] cfg80211: Using static regulatory domain info
[   14.340785] cfg80211: Regulatory domain: US
[   14.344988]  (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   14.352260]  (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
[   14.359116]  (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[   14.365947]  (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[   14.372772]  (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[   14.379601]  (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[   14.386433]  (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[   14.491444] cfg80211: Calling CRDA for country: US
[   15.015776] usbcore: registered new interface driver snd-usb-audio
[   15.114352] phy0: Selected rate control algorithm 'minstrel'
[   15.115514] Registered led device: rt73usb-phy0::radio
[   15.121310] Registered led device: rt73usb-phy0::assoc
[   15.126785] Registered led device: rt73usb-phy0::quality
[   15.132703] usbcore: registered new interface driver rt73usb
[   15.416453] Adding 265064k swap on /dev/sda2.  Priority:-1 extents:1 across:265064k
[   16.469667] rt73usb 1-1.4:1.0: firmware: requesting rt73.bin
[   19.716283] wlan0: direct probe to AP 00:15:0c:07:1d:46 (try 1)
[   19.718335] wlan0: direct probe responded
[   19.718351] wlan0: authenticate with AP 00:15:0c:07:1d:46 (try 1)
[   19.719956] wlan0: authenticated
[   19.720231] wlan0: associate with AP 00:15:0c:07:1d:46 (try 1)
[   19.723967] wlan0: RX AssocResp from 00:15:0c:07:1d:46 (capab=0x451 status=0 aid=1)
[   19.723983] wlan0: associated

Software setup

In order to bring WLAN do work, some setup must be done. I got help from Andy's Blog, Debian Wiki and Debian Notes.

First get some tools (iwconfig, iwlist, ...) over LAN:
$ apt-get install wireless-tools
$ apt-get install wpasupplicant  # for WLAN WPA2 encryption

Path to the file lists: /var/lib/dpkg/info/*.list

Get the firmware rt73.bin, request seen in dmesg:
    Info: http://packages.debian.org/squeeze/firmware-ralink
    Edit /etc/apt/sources.list and add "contrib non-free":
    deb http://ftp.us.debian.org/debian squeeze main contrib non-free
    $ apt-get update
    $ apt-get install firmware-ralink
    Find file list: /var/lib/dpkg/info/firmware-ralink.list
    File location:  /lib/firmware/rt73.bin

Edit the /etc/network/interfaces file according to the configuration of the wireless network.
The alias for the TL-WN321g interface will be wlan0.

My setup for /etc/network/interfaces was derived from:
Reference: http://www.debian.org/doc/manuals/reference/ch05.en.html
  Parameter "allow-hotplug <interface_name>"
    means: start interface <interface_name> when the kernel detects a hotplug event from the interface
/etc/network/interfaces (please note, wlan0 first):
# if you write "auto lo eth0", WLAN will not work without LAN cable! reported by Bernd
auto lo 
iface lo inet loopback

# The primary network interface
auto wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
        wpa-ssid "FRITZ!Box Fon WLAN 7050"
        wpa-psk "WPA2 password"
        address 192.168.17.93
        netmask 255.255.255.0
        network 192.168.17.0
        broadcast 192.168.17.255
        gateway 192.168.17.1

# The secondary network interface
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.17.92
        netmask 255.255.255.0
        network 192.168.17.0
        broadcast 192.168.17.255
        gateway 192.168.17.1

Verify your device has an available interface:
root@FADS92:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

Raise the interface to activate the radio, for example:
$ ifconfig wlan0 up

Scan for the WLAN router(s)
root@FADS92:~# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:15:0C:07:1D:46
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=42/70  Signal level=-68 dBm
                    Encryption key:on
                    ESSID:"FRITZ!Box Fon WLAN 7050"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000004768fb476c0
                    Extra: Last beacon: 690ms ago
                    IE: Unknown: 0017465249545A21426F7820466F6E20574C414E2037303530
                    IE: Unknown: 010582848B962C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32080C1218243048606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD0A0800280101000200FF0F
...

Now try to connect to yout WLAN router:
root@FADS92:~# iwconfig wlan0 essid 'FRITZ!Box Fon WLAN 7050'

It looks good:
root@FADS92:~# iwconfig wlan0
wlan0     IEEE 802.11bg  ESSID:"FRITZ!Box Fon WLAN 7050"
          Mode:Managed  Access Point: Not-Associated   Tx-Power=4 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

Before you pull out your LAN cable do the following, retrieved from here:

If everything looks like it's working, don't just unplug your ethernet.
Use "ifconfig eth0 down" beforehand, otherwise you'll loose both connections."

$ ifconfig eth0 down

Automatic Switching of LAN and WLAN with ifplugd - it does not work

I looked for a method to make the LAN/WLAN connection as universal and intuitive as possible. There I found ifplugd from Lennart Poettering. In order to make it work you have first to adopt your file /etc/network/interfaces. Unfortunately it does not work up to now. If the LAN plug is not connected, the WLAN does not work. It looks like, that ifplugd is just used to switch between profiles. So I gave wicd a try.

$ apt-get install ifplugd
Edit file /etc/network/interfaces
  out comment (remove) parameter "auto" and "allow-hotplug"

Edit file /etc/default/ifplugd 
INTERFACES="wlan0 eth0"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"

Explanation of the options (derived from example):
  -q =   Don't call the script for network shutdown on deamon quit (default: off)
  -f =   Ignore detection failure, retry instead.  Failure  is  treated  as  "no  link". (default: off)
  -u0 =  Specify delay [s] for configuring interface (default: 0)
  -d10 = Specify delay [s] for deconfiguring interface (default: 5)
  -w =   When daemonizing, wait until the background process finished with  the  initial
         link  beat  detection. When this is enabled, the parent process will return the
         link status on exit. 2 means link beat detected, 3 stands  for  link  beat  not
         detected, everything else is an error.
  -I =   Don't  exit  on  nonzero  return  value  of  program  executed  on link change. (default: off)

root@FADS92:~# /etc/init.d/ifplugd restart
Network Interface Plugging Daemon...start eth0...done.
Test:
root@FADS92:~# ifplugstatus
lo: link beat detected
eth0: link beat detected
wlan0: link beat detected

It is strange, that ifconfig wlan0 up does not work, and it is difficult to debug it. With ifup -v wlan0 you get a lot of information.

$ ifconfig wlan0 up  # looks like it does not work, if ifplugd is installed, 
use instead:
root@FADS92:~# ifup -v wlan0
Configuring interface wlan0=wlan0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: using default driver type: wpa-driver wext
wpa_supplicant: /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D wext -C /var/run/wpa_supplicant
Starting /sbin/wpa_supplicant...
wpa_supplicant: waiting for "/var/run/wpa_supplicant.wlan0.pid":  0 (max. 5)
wpa_supplicant: creating sendsigs omission pidfile: /lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
wpa_supplicant: ctrl_interface socket located at /var/run/wpa_supplicant/wlan0
wpa_supplicant: configuring network block -- 0
wpa_supplicant: wpa-ssid "FRITZ!Box Fon WLAN 7050" -- OK
wpa_supplicant: wpa-psk ***** -- OK
wpa_supplicant: enabling network block 0 -- OK

ifconfig wlan0 192.168.17.93 netmask 255.255.255.0 broadcast 192.168.17.255             up
 route add default gw 192.168.17.1  wlan0
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/samba
run-parts: executing /etc/network/if-up.d/wpasupplicant
root@FADS92:~# ifplugstatus
lo: link beat detected
eth0: link beat detected
wlan0: link beat detected

My problem up to now is, that "ifconfig wlan0 up" does not show enough debug messages like "ifup wlan0".

To deinstall "ifplugd":
$ apt-get remove ifplugd
$ rm /etc/rc2.d/S01ifplugd and rc3.d, rc4.d, rc5.d
$ rm /etc/rc0.d/K01ifplugd and in rc1.d, rc6.d

Automatic Switching of LAN and WLAN with wicd - it works (cable has priority)

After the experience with ifplugd if have learned that I need a network manager for automatic switching between LAN/WLAN. There are Networkmanager which is more suited for a GUI environment, or Wicd which has an interface for either command line, curses=semi graphic, or GTK-GUI. The Wicd package info is found here. I choosed the curses package for easier handling in a terminal environment.

It also works with DHCP, but it must be considered that switching the interface wlan0/eth0 may get a different IP number. Therefore it is important to set a DHCP Hostname in the configuration, in order to always connect to the DockStar.

Attention: While setting up your parameters for wicd it is very easy, that you loose your network connection. Therefore it is strongly recommended to have while the setup a serial cable (see DockStarSerialLink) connected to DockStar (own experience).

It should be kept in mind, that it is the target to have one static IP address only. The switching is just done between the interfaces cable/wlan.

Wicd Installation

It is strongly advised to use a serial cable (see DockStarSerialLink) in order to see what is going on.

$ apt-get install wicd-curses  # will also install wicd
$ man wicd                     # read all manuals
$ man wicd-manager-settings.conf
$ man wicd-wire-settings.conf
$ man wicd-wireless-settings.conf
$ man wicd-curses-settings.conf

To better check the WLAN capabilities of your adapter, install "iw":
$ apt-get install iw
$ iw list
...
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
                 * mesh point
...

Wicd Setup of the /etc/network/interfaces file

The file /etc/network/interfaces must not be changed much, just "auto" and "hotplug" must be outcommented (#auto)), because that job is now done by "wicd".

The recommended Wicd compatible content for the file is:

# Version for Wicd 2010-12-09 RR
# see: http://wicd.sourceforge.net/download.php
auto lo
iface lo inet loopback

Wicd Setup of the *.conf files

Be careful when you edit manually the *.conf files. Any mistake (easy!) in the parameters will cut down your network link, and you need a serial cable.
Therefore it is recommended to to use wicd-curses to have a semi-graphic parameter editor.

Explanation:
  BSSID = MAC number of your Access Point

ATTENTION: When editing manually the *.conf files, please do NOT append any comments,
           otherwise the parameters will NOT be read.

Example of /etc/wicd/manager-settings.conf
[Settings]
wireless_interface = wlan0
prefer_wired = True
flush_tool = 0
use_global_dns = False
global_dns_dom = None
always_show_wired_interface = True
global_dns_1 = None
global_dns_2 = None
global_dns_3 = None
backend = ioctl
should_verify_ap = 1
link_detect_tool = 0
dhcp_client = 0
sudo_app = 0
wired_connect_mode = 1
debug_mode = 0
wired_interface = eth0
signal_display_type = 0
global_search_dom = None
auto_reconnect = True
wpa_driver = wext

Example /etc/wicd/wired-settings.conf
[wired-default]
afterscript = None
broadcast = 192.168.17.255
dhcphostname = FADS92
dns3 = None
postdisconnectscript = None
search_domain = None
dns_domain = None
lastused = True
use_static_dns = True
default = True
netmask = 255.255.255.0
gateway = 192.168.17.1
dns2 = None
beforescript = None
predisconnectscript = None
ip = 192.168.17.92
dns1 = 192.168.17.1

Example /etc/wicd/wireless-settings.conf
[wireless-default]
broadcast = 192.168.17.255
bssid = 00:15:0C:07:1D:46
ip = 192.168.17.92
dns1 = 192.168.17.1
use_settings_globally = True
use_static_dns = True
netmask = 255.255.255.0
essid = "FRITZ!Box Fon WLAN 7050"
encryption_method = WPA2
mode = managed
key = "password"
hidden = False
automatic = True
gateway = 192.168.17.1
channel = 1
enctype = /etc/wicd/encryption/templates/wpa-psk

Wicd Setup with '''wicd-curses''', an example page

Please read first the man page: $ man wicd-curses
(menu in German because of the localisation de_DE)

root@FADS92:~# wicd-curses
                                                                            Wicd Text-Oberfläche
      Einstellungen festlegen für das Funknetzwerk "FRITZ!Box Fon WLAN 7050" (00:15:0C:07:1D:46)
[X] Verwende statische IPs
IP:     192.168.17.92
Netzmaske:255.255.255.0
Gateway:192.168.17.1

[X] Verwende statische DNS                      [ ] Nutze globale DNS-Server
DNS Domain:
Suche Domain:
DNS 1:        192.168.17.1
DNS 2:
DNS 3:

[ ] Use DHCP Hostname
DHCP Hostname: FADS92

[ ] Nutze diese Einstellungen für alle Netzwerke, die diese ESSID verwenden
[X] Verbinde automatisch mit diesem Netzwerk
[X] Nutze Verschlüsselung
WPA 1/2 (Passphrase)    vvv
Key: **********

  ----- some empty lines -----

F10:OK                                          ESC:Cancel
Verbunden mit Kabelnetzwerk (IP: 192.168.17.92)

Wicd, Test of the installation

root@FADS92:~# ps -A | grep 'wicd'
 1480 ?        00:00:13 wicd
 1487 ?        00:00:09 wicd-monitor

Log file is in: /var/log/wicd/wicd.log

With "ifconfig" you will see, which port has the IP address (= connected). See example for wlan0 connection:
eth0      Link encap:Ethernet  Hardware Adresse 00:10:75:1a:ce:6e  
          UP BROADCAST MULTICAST  MTU:1500  Metrik:1
          .......
wlan0     Link encap:Ethernet  Hardware Adresse 94:0c:6d:e3:c8:fc  
          inet Adresse:192.168.17.93  Bcast:192.168.17.255  Maske:255.255.255.0
          ......


RAM load: ~ 12%

Using wicd-curses:
The ">" points to the line of the connected link.
To start Config, press the "cursor right" button. All menu letters are case sensitiv.

root@FADS92:~# wicd-curses
                                                                            Wicd Text-Oberfläche
Wired Network(s)
>  0               wired-default    vvv
Wireless Network(s)
C STR                      ESSID   ENCRYPT             BSSID   MODE CHNL
  57%    FRITZ!Box Fon WLAN 7050      WPA2 00:15:0C:07:1D:46 Master    1
  42%               Schnellhafen       WPA 00:15:0C:8A:91:1C Master    8
  37%             EasyBox-DA7733      WPA2 00:23:08:DA:77:3B Unknown/bug    1

   ----- some free lines ---

H:Help     ->:Config  C:Connect  D:Disconn  R:Refresh P:Prefs    I:Hidden  A:About    Q:Quit
Verbunden mit Kabelnetzwerk (IP: 192.168.17.92)

root@FADS92:~# wicd-curses
                                                                            Wicd Text-Oberfläche
Wired Network(s)
   0               wired-default    vvv
Wireless Network(s)
C STR                      ESSID   ENCRYPT             BSSID   MODE CHNL
> 57%    FRITZ!Box Fon WLAN 7050      WPA2 00:15:0C:07:1D:46 Master    1
  42%               Schnellhafen       WPA 00:15:0C:8A:91:1C Master    8
  34%             EasyBox-DA7733      WPA2 00:23:08:DA:77:3B Unknown/bug    1

   ----- some free lines ---

H:Help     ->:Config  C:Connect  D:Disconn  R:Refresh P:Prefs    I:Hidden  A:About    Q:Quit
Verbunden mit FRITZ!Box Fon WLAN 7050 unter 60% (IP: 192.168.17.92)

Wicd, ntpdate

Because the script ntpdate (utility /sbin/ntpdate-debian is used) is started from the network ifup, it is no longer done from wicd. Therefore you have no longer a time/date update at system startup. The solution is to copy the script ntpdate to the posconnect folder of wicd.

$ cp /etc/network/if-up.d/ntpdate /etc/wicd/scripts/postconnect/ntpdate

Troubleshooting

I will list several error messages on my way of the installation:

Missing firmware file

$ ifconfig wlan0 up
SIOCSIFFLAGS: Datei oder Verzeichnis nicht gefunden

dmesg | tail
[32845.569878] rt73usb 1-1.4:1.0: firmware: requesting rt73.bin
[32845.677936] ADDRCONF(NETDEV_UP): wlan0: link is not ready
- means the firmware is not provided -> apt-get install firmware-ralink

Wrong driver rt2500usb

Because the rt2500usb and rt73usb does have the same USB ident number "148f:2573", the kernel tries both.

Wrong driver "rt2500usb":
In the "messages" log I could see, that first a wrong driver "rt2500usb" was loaded.
This was then replaced by the "rt73usb". In order to avoid confusion,
I put "rt2500usb" on the blacklist:
$ echo "blacklist rt2500usb" >> /etc/modprobe.d/blacklist.conf

Utility iwspy

The utility "iwspy" does not work with the driver "rt73usb".

The signal quality can vary very much. Therefore it is good advice to check with iwconfig the Link quality and Signal level and optimize it by turning and moving the WLAN adapter. Just on my table a variation of Link quality between 32/70 to 40/70 shows up.

iwconfig wlan0
  Link Quality=40/70  Signal level=-70 dBm
  translates in http://fritz.box to quality 35%

udev[9744]: renamed network interface wlan0 to wlan1

If you use several different WLAN USB sticks (MAC number = ATTR{address} is different) on your DockStar, the auto mounter udev changes the name of the interface name (wlanX), by increasing the number X. Usually the MAC number is printed on a label at the bottom of the USB stick.
Solution source: http://ubuntuforums.org/showpost.php?p=5795230&postcount=36
Have a look at the file /etc/udev/rules.d/70-persistent-net.rules:

$ cat /etc/udev/rules.d/70-persistent-net.rules
# Unknown net device (/devices/platform/mv643xx_eth_port.0/net/eth0) (mv643xx_eth_port)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:10:75:1a:ce:6e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# USB device 0x:0x (rt73usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="94:0c:6d:e3:43:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

# USB device 0x:0x (rt73usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="94:0c:6d:e3:c8:fc", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"

Because I have two WLAN sticks tested, the second is auto-labeled wlan1. Just rename it to wlan0 in an editor, save the file and reboot.

Very good source for WLAN drivers http://www.linuxwireless.org
The Wicd home: http://wicd.sourceforge.net/download.php

List of pages in this category:

-- RudolfReuter 2010-09-17 03:41:35


Go back to CategoryDockStar or FrontPage ; KontaktEmail (ContactEmail)