2006-09-21

Linux zd1211rw usb wireless

Switching from net-wireless/zd1211 to kernel 2.6.18 zd1211rw support.
$ lsusb
Bus 001 Device 002: ID 14ea:ab13
$ nano -w /usr/src/linux/drivers/net/wireless/zd1211rw/zd_usb.c
static struct usb_device_id usb_ids[] = {
        /* ZD1211 */
        { USB_DEVICE(0x6891, 0xa727), .driver_info = DEVICE_ZD1211 },
        { USB_DEVICE(0x0df6, 0x9071), .driver_info = DEVICE_ZD1211 },
        { USB_DEVICE(0x157e, 0x300b), .driver_info = DEVICE_ZD1211 },
+        { USB_DEVICE(0x14ea, 0xab13), .driver_info = DEVICE_ZD1211 },
$ cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# USB Device: 0x14ea:0xab13 (zd1211rw)
#SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="aa:bb:cc:dd:ee:ff", NAME="eth0"
#SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="aa:bb:cc:dd:ee:ff", NAME="eth1"
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="aa:bb:cc:dd:ee:ff", NAME="eth2"
$ grep ZD /usr/src/linux/.config
# CONFIG_USB_ZD1201 is not set
CONFIG_ZD1211RW=m
# CONFIG_ZD1211RW_DEBUG is not set
$ insmod zd1211rw
$ lsmod
Module                  Size  Used by
zd1211rw               32384  0
ieee80211softmac       20736  1 zd1211rw
ieee80211_crypt_tkip    8832  2
ieee80211              24584  2 zd1211rw,ieee80211softmac
ieee80211_crypt         4032  2 ieee80211_crypt_tkip,ieee80211
$ dmesg
usbcore: registered new driver zd1211rw
usb 1-3: new high speed USB device using ehci_hcd and address 2
usb 1-3: configuration #1 chosen from 1 choice
zd1211rw 1-3:1.0: firmware version 4605
zd1211rw 1-3:1.0: zd1211 chip 14ea:ab13 v4330 high 00-90-cc AL2230_RF pa0 g--
zd1211rw 1-3:1.0: eth0
SoftMAC: Open Authentication completed with aa:bb:cc:dd:ee:ff
$ iwconfig eth2
eth2      802.11g zd1211  ESSID:"access_point"
          Mode:Managed  Frequency:2.437 GHz  Access Point: aa:bb:cc:dd:ee:ff
          Bit Rate=54 Mb/s
          Encryption key:40AA-A249-F54A-ACB9-XXXX-0079-XXXX-014C-XXXX-94E6-XXXX-CFDF-A787-XXXX-F34C-XXXX   Security mode:open
          Link Quality=98/100  Signal level=100/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
$ iwlist scan
eth2      Scan completed :
          Cell 02 - Address: aa:bb:cc:dd:ee:ff
                    ESSID:"access_point"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=100/100  Signal level=100/100
                    IE: WPA Version 1
                        Group Cipher : WEP-40
                        Pairwise Ciphers (1) : WEP-40
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : WEP-40
                        Pairwise Ciphers (1) : WEP-40
                        Authentication Suites (1) : PSK
                    Extra: Last beacon: 17ms ago
$ ifconfig -a
eth2      Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff
          inet addr:192.168.xx.yy  Bcast:192.168.xx.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

No comments: