BRN:Software:Dlink DWL-122@WGT634U

From
Jump to navigation Jump to search

Build

  1. Build OpenWrt/FreeWRT (/home/mj/dev/Kamikaze/ at our site)
  2. Get linux-wlan-ng sources (we took release 0.2.5)

$ mkdir dwl-122 $ cd dwl-122 $ wget ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-0.2.5.tar.bz2 $ tar xjf linux-wlan-ng-0.2.5.tar.bz2 $ cd linux-wlan-ng-0.2.5 $ make config -------------- Linux WLAN Configuration Script ------------- The default responses are correct for most users. Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: '''n''' Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]: Build Prism2.5 native PCI (_pci) driver? (y/n) [n]: Build Prism2.5 USB (_usb) driver? (y/n) [n]: '''y''' Linux source directory [/lib/modules/2.6.17.11-smp-mj1/build]: '''/home/mj/dev/Kamikaze/build_mipsel/linux/''' The kernel source tree is version 2.6.17. WARNING: the current running kernel is actually version 2.6.17.11-smp-mj1. The current kernel build date is Sat Sep 2 00:29:18 2006. Alternate target install root directory on host []: '''/tmp''' Module install directory [/lib/modules/2.6.17]: '''/tmp/lib/modules''' It looks like you have a System V init file setup. Prefix for build host compiler? (rarely needed) []: '''/usr/bin/''' Build for debugging (see doc/config.debug) (y/n) [n]: Configuration successful. Now type 'make' and pray.

  1. Build Linux kernel module
$ make \
  CC=/home/mj/dev/Kamikaze/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc \
  LD=/home/mj/dev/Kamikaze/staging_dir_mipsel/bin/mipsel-linux-uclibc-ld \

ARCH=mips

  1. Strip wlanctl

$ /home/mj/dev/Kamikaze/staging_dir_mipsel/bin/mipsel-linux-uclibc-strip src/wlanctl/wlanctl

Install

  1. You will need these files:
    1. src/p80211/p80211.ko
    2. src/prism2/driver/prism2_usb.ko
    3. src/wlanctl/wlanctl
  2. Copy the kernel modules to /lib/modules/$(uname -r)/ on the WGT634U
  3. Copy the wlanctl to /usr/sbin/ on the WGT634U

Configure

  1. Load modules
$ insmod p80211

$ insmod prism2_usb

  1. Configure device (taken from http://www.debianforum.de/wiki/?page=D-LinkDWL122 )
$ wlanctl wlan0 lnxreq_ifstate ifstate=enable                                     # Enable device
$ wlanctl wlan0 lnxreq_autojoin ssid=any authtype=opensystem                      # Set up essid and auth-type
$ wlanctl wlan0 dot11req_mibset  mibattribute=dot11WEPDefaultKeyID=0              # Select default wep key (0)
$ wlanctl wlan0 dot11req_mibset  mibattribute=dot11PrivacyInvoked=true            # Enable WEP
$ wlanctl wlan0 dot11req_mibset  mibattribute=dot11WEPDefaultKey0=01:02:03:04:05  # Set 0th WEP key

$ udhcpc -i wlan0 # Get DHCP config