Welcome to Eric Hameleers (Alien BOB)'s Wiki pages.
Wireless cards based on RaLink's chipsets are very well-suited for Linux computers. RaLink actively supports Linux and the Open Source community by releasing the code for a driver and configuration utility. Based on that code, re-developed drivers for these cards are hosted at http://rt2x00.serialmonkey.com. These drivers (although still in beta) are working well and are quite stable. They are different from other modern wireless drivers in that they have built-in WPA support. It is not dependent on a third-party tool like wpa_supplicant. The rt2x00 driver will eventually replace the current rt2400, rt2500, rt2570, rt61 and rt73 drivers.
The rt2x00 driver included in the Linux kernels since 2.6.24 and which replaces all of the legacy RaLink drivers, does not have a built-in WPA support. Instead, it communicates with wpa_supplicant through the
wext driver of wpa_supplicant. For more information on how to configure wpa_supplicant see the WPA section of my //Slackware network configuration// page.
I still use the “legacy” drivers from the Serialmonkey web site myself, since I do not consider the kernel's own rt2x00 driver stable enough (for me the rt2x00 often does not work with WPA connections). Therefore, the rest of this article concerns itself with building and configuring these out-of-kernel modules.
I maintain a Slackware package for several RaLink drivers. For instance, you will find the rt2500 driver (54Mbit wireless cards) here. Install a package for your release of Slackware (the version number should correspond with your running kernel) or build your own package using the SlackBuild script and the other files found in that location. An easy way to download all source files in one command is
lftp -c "open http://www.slackware.com/~alien/slackbuilds/rt2500/; mirror build"
When this command completes, you will end up with a subdirectory called ”build” in your current directory. Build the package as follows:
cd build sh rt2500.SlackBuild
The resulting package will be created in the
/tmp directory and can be installed with (for example)
SlackBuild scripts and packages for the rt2570, rt61 and rt73 drivers can be found at the same location. Build and installation is analogous to the above instructions for the rt2500 driver.
After installing the software, a simple
is enough to load the driver. A reboot would do the same, if you have enabled hotplug. Without hotplug, you can add the line
/sbin/modprobe rt2500 to the end of either
so that the driver will load upon boot.
This will create an network device called ra0 . Slackware since release 10.2 can handle network devices that are not called ethX and you can have a look at the sample configuration below. For older releases of Slackware, you can have a look at my updated network scripts that are written as a drop-in replacement for your current rc.inet1 and/or rc.wireless scripts (if you upgrade, upgrade them both!).
Taken from my
/etc/rc.d/rc.inet1.conf, your configuration for a rt2x00 driven card could look like this (several parameter values are specific to your own network and you should edit where appropriate):
# Config information for ra0: IFNAME="ra0" IPADDR="" NETMASK="" USE_DHCP="yes" DHCP_HOSTNAME="icculus" WLAN_ESSID=MYWAVES WLAN_MODE=Managed WLAN_CHANNEL="auto" WLAN_IWPRIV="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=1234567890123456789012345678901234567890123456789012345678901234"
The last line (WLAN_IWPRIV) is the necessary configuration for WPA. The 64-character string '12345…..901234' I copied in there should be replaced by your Access Point's 64-character hexadecimal WPA key.
IWPRIVin before Slackware 12.0 was like this:
WLAN_IWPRIV=“AuthMode=WPAPSK EncrypType=TKIP WPAPSK=the64characterkey”
Starting with Slackware 12.0, you should use the new syntax
WLAN_IWPRIV="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=the64characterkey"