By linuxmankev at 2004-08-02 11:44
I have a number of wireless devices all of which use either the Netgear MA111 USB device, or the Netgear MA301 PCI Card.
I don't use a wireless AP or router - I simply connect these in an ad-hoc manner, but the instructions below are specific to this.
1 Get the source
First of all you need to get the source code from www.linux-wlan.com.
The version I use is 0.2.1-pre20 which was the latest release out at the time I set my network up
2 Unpack the source
Once you have the tarball unpack this in /usr/src.
Note you must have the kernel source for the running kernel available as you will be building a kernel module to use the device
3 Configuration: make config
To make the module run
This will ask you one by one which module to compile:
-------------- Linux WLAN Configuration Script -------------
The default responses are correct for most users.
Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [n]:
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]:
Build Prism2.5 native PCI (_pci) driver? (y/n) [y]:
Build Prism2.5 USB (_usb) driver? (y/n) [y]:
You will then be asked for the location of the kernel source code
Linux source directory [/usr/src/linux-2.6.5-1.358]: /usr/src/linux-2.6.6-1.435.2.3/
The kernel source tree is version 2.6.6-1.435.2.3custom.
Kernel 2.5/2.6 support is highly experimental.
The current kernel build date is Sun Jul 25 19:21:41 2004.
As you can see here if you are using the Linux 2.6 code it is marked as experimental but it works well
From here you can accept all the defaults for the rest of the questions
Alternate target install root directory on host :
Module install directory [/lib/modules/2.6.6-1.435.2.3custom]:
It looks like you have a System V init file setup.
Prefix for build host compiler? (rarely needed) :
Build for debugging (see doc/config.debug) (y/n) [n]:
4 Compilation: make all
Once you have configured what drivers to compile run:
This will compile against your kernel source and at the end you will have a module.
5 Installation: make install
Once compilation has complete you have to install the module which will put the module in the right place on the system so it can be loaded by the kernel. To do this run:
6 System Configuration
The linux-wlan module gives you devices named wlanX on your system which are synonymous with the standard ethX devices you find.
So with this in mind you need to edit your network settings for wlan0. I use Red Hat, TaoLinux and Fedora and these are all "Red Hat" and therefore I edit/add a file called
with the following in:
#Netgear MA111 USB Wireless
Of course, this if you use DHCP - alter to suit if you use static networking
Once this is done you need to tell the kernel about the module and the device it uses. For Linux 2.4 put the following in /etc/modules.conf. For 2.6 put it in modprobe.conf:
alias wlan0 prism2_usb
Once that has done you need to configure the wlan configuration. This is done in /etc/wlan directory.
Edit the file:
Here you set various options to do with your environment. The config I use is below:
I've removed the comments leaving only the needed options.
For this to work you also need to copy the file wlancfg-DEFAULT to wlancfg-yourSSID which matches up to this SSID in wlan.conf above.
Now edit this file.
The important parts in this file are the WEP enabled sections, the KEYs section and what type of network you run (ad-hoc [host to host] or infrastructure [wireless AP]). This file is quite lengthy, but well documented so I'm not going to reproduce this here. Note for security this file is only rwx for Root only as it holds your encryption keys for WEP.
The source installs an init script in /etc/init.d/ called wlan. So run this and you should see an interface called wlan0 when you do ifconfig and iwconfig.