1.
Code:

sudo nano /etc/apt/sources.list

From there make sure you uncomment anything that starts with "deb" in there. So changer it from "#deb" to "deb" Something along thoes lines. To exit and save hit "CTRL+X" the answer "YES" to do you want to save, then finally hit "ENTER"

2.
Code:

sudo apt-get update && sudo apt-get upgrade

3.
Code:

sudo apt-get install build-essential libssl-dev

4.
Code:

sudo apt-get install linux-headers-`uname -r`

5.
Code:

sudo apt-get install subversion

6.
Code:

sudo -i

7.
Code:

sudo svn checkout http://svn.madwifi-project.org/madwifi/trunk/ madwifi-ng

8.
Code:

cd madwifi-ng

9.
Code:

echo "" >> /etc/modprobe.d/blacklist

10.
Code:

echo "#Remove To Install MadWIFI Drivers" >> /etc/modprobe.d/blacklist

11.
Code:

echo "blacklist ath9k" >> /etc/modprobe.d/blacklist

12.
Code:

echo "blacklist ath5k" >> /etc/modprobe.d/blacklist

13.
Code:

make && make install

14.
Code:

echo ath_pci >> /etc/modules


finaly restart ur computer and go to start>internet>wicd (i dont remember well) > preferences> and change wlan0 to ath0....

thank you