Madwifi for ubuntu HowTo
by heathenx.



In this tutorial I will show the steps to quickly get the madwifi driver installed for use with the Netgear WG511T (Atheros 5212 chipset). I will assume that if you do not have any wifi connection at all that you have either used your wired connection (ethernet cable) or you used "sneaker net" to get the madwifi source tarball downloaded or copied to your computer.

Let's begin:

1. Open a terminal:

sudo apt-get update

2. Login as root:

sudo -s
enter your password

3. Download the required files to compile the source:

apt-get -y install build-essential bin86

4. Compile the module:

Place the madwifi source tarball in the /usr/scr directory and unpack it there. Rename the directory to just "madwifi" just to keep it simple.

cd /usr/src/madwifi
make clean
make
make install

5. Let's start the module to make sure it runs. The "lsmod" command can be used to see if the "ath_pci" is listed.

modprobe ath_pci
lsmod

6. Let's add it to our /etc/modules file so that it starts automatically on boot up:

gedit /etc/modules

add "ath_pci" without quotes to the end of the line and save it.

7. Let's reboot ubuntu. Make sure you unplug your ethernet cable if you have one plugged in. Also plug in your pcmcia wireless card before the operating system boots. When ubuntu boots only one light will be lit up until the card is configured.

8. Configure ath0 under System->Administration->Networking. Both lights on the card will blink if the card is properly activated.

Now go do some surfin'!