Sponsored Link
For i386 Users
First go to System-->Administration-->Hardware Drivers" and disable by un-ticking the following option
Atheros Hardware Access Layer (Hal)
Then Reboot your system.
Preparing your system
sudo apt-get install build-essential
Then open the terminal from Applications-->Accessories-->Terminal and copy the following command
wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz
tar xfz madwifi-ng-r2756+ar5007.tar.gz
cd madwifi-ng-r2756+ar5007
make
sudo make install
sudo modprobe ath_pci
sudo reboot
That's it now your wireless should work without any problem.
For AMD64 Users
If you are using 64 bit version following this procedure
Blacklist the default driver
echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist
Download the 64 bit driver
wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz
Extract driver using the following command
tar xvf ar5007eg-*.tar.gz
tar xvf ndiswrapper-newest.tar.gz
Ensure you have your kernel headers and the build essential package.
sudo aptitude update
sudo aptitude install linux-headers-$(uname -r) build-essential
Install ndisgtk
sudo apt-get install ndisgtk
Either use ndisgtk to install the driver or
sudo ndiswrapper -i net5211.inf
Load up ndiswrapper every time Linux is loaded
sudo modprobe ndiswrapper
echo "ndiswrapper" | sudo tee -a /etc/modules
Restart your system using the following command
sudo reboot
Your card should have been detected and it should show available networks but if it does not, try
sudo iwlist scan


Hi.It works with JoeDriller’s script.Thank you very much but i have a problem.My lspci output is:
08:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
it appears network setting and “roaming mode”.
But when i tried fallowing code:
# iwlist wlan0 scan
and tried wifi-radar but dont find any available wireless connection.when I try other notebook(Ubuntu 6.10 Intel PRO/Wireless 2100 3B), it find 2 available wireless connnection.
Wireless LED always switch off ? so my wireless card is switch off ? and i tried
# ifconfig wlan0 up
but no works.It can not find available wireless connnection.
How can do for solve this problem ? If you help me,I will be happy.
Thanks.
Semih.
OK.The problem was solved by me.
I was boot v_ist_a and FN+F6 and return the ubuntu 8.04 and now bluetooth and wireless is working !
its very interesting but it is working.
Hi,
I just wanted to make a correction about the JoeDriller post (#22). The runlevel 5 is not the default anymore for Ubuntu 8.04. Ubuntu has given up about the runlevels and decided to try with the ‘upstart’. Anyway, the default ‘runlevel’ (because all looks the same) is the number 2. So you should try to place the ‘S09’ link under the ‘rc2.d’ directory. I have updated JoeDriller’s script and it worked correctly in my system. Here is the code;
#!/bin/bash
sudo modprobe -r ndiswrapper
cp /etc/modprobe.d/blacklist .
sed 's/#blacklist ath_pci/blacklist ath_pci/g' /etc/modprobe.d/blacklist>blacklist3
mv blacklist3 /etc/modprobe.d/blacklist
sudo ndiswrapper -r net5211
sudo ndiswrapper -i /usr/lib/ar5007eg-64-0.2/ar5007eg/net5211.inf
sudo ndiswrapper -ma && sudo ndiswrapper -mi
sudo modprobe ndiswrapper
sed 's/blacklist ath_pci/#blacklist ath_pci/g' /etc/modprobe.d/blacklist>blacklist3
mv blacklist3 /etc/modprobe.d/blacklist
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
I hope this help you
‘Regards las plantas’
Thnaks for the new post.
Unfortunately, even I put the new cod into rc2.d, my wlan jumps form “[nameofnetwork]:get ip adress” to “None: get ip adress” and won’t connect. Is it a problem that i now have an subirwifi like Joedriller described under rc5.d and yours under rc2.d???
If yes – how can I get rid of the subirwifi in rc5???
thanks for your help
I had to delete old drivers first.
Following this helped a lot!
# Get the current Kernel you are running : uname -r
# Navigate to the correct lib directory : cd /lib/modules/$(uname -r) (use the output from the previous step to get the directory)
# Delete the net lib files : sudo rm -rf net
# Delete the madwifi files : sudo rm -rf madwifi
# Delete this folder if it exists : sudo rm -rf madwifi-ng
# Find the modules currently installed that you need to unload : lsmod | grep ath
# From this output above issue a rmmod command for all the modules : sudo rmmod modulename
# Go back to where you downloaded the new subversion drivers and run : sudo make and then sudo make install answer yes to remove the old module.
# Load all of the modules you have just unloaded using modprobe. These should be:
sudo modprobe ath_pci
sudo modprobe ath_rate_sample
sudo modprobe wlan
sudo modprobe ath_hal
# Check to see if modules have been loaded by typing dmesg and looking at the system log.
# Open up network gui in Ubuntu and enable the wifi card and set the sessid
It worked for me as well, on my LG R-400 (a very neat little -cheap- laptop by the way).
Thanks for posting this, that issue has been bugging me for a year already !
Cheers
I found another way:
When i find some network and my wicd won’t connect,
then i go to the console and type:
sudo ifconfig wlan0 down
sudo ifconfig wlan0 hw ether xxxxxxxx
The xxx must be replaced by your mac-adress
This works great!
Neither JoeDriller’s nor German’s scripts worked for me, but the following did (or, at least, appears to):
#!/bin/bashsudo modprobe -r ndiswrapper
cp /etc/modprobe.d/blacklist .
sed 's/#blacklist ath_pci/blacklist ath_pci/g' /etc/modprobe.d/blacklist>blacklist3
mv blacklist3 /etc/modprobe.d/blacklist
sudo ndiswrapper -ma && sudo ndiswrapper -mi
sudo modprobe ndiswrapper
sed 's/blacklist ath_pci/#blacklist ath_pci/g' /etc/modprobe.d/blacklist>blacklist3
mv blacklist3 /etc/modprobe.d/blacklist
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start
i386 Ubuntu 8.04 user on 64x machine (ACER aspire 7520 G). Felt very grateful to you – everything worked so well after I had followed your instructions. Worked 10 days – until today when Ubuntu 8.04 has been updated. After update and reboot – no wireless connection. Zeroes in iwconfig. And network monitor has got a red cross and error text: SIOCGIFFLAGS: no such device. Whatever it might mean… I once again installed the madwifi driver but no result. I have no idea what update has caused the loss of wireless connection – there were scores of updated files. I would be ready to wave all these updates if I knew how. Or is there some other way to restore wireless? Not an experienced Linux user, alas…
###############################################################################################################
# felix Says:
May 6th, 2008 at 10:03 pm
Thank you. I can confirm:It worked for me as well! Used on a Compaq presario C700 laptop running Ubuntu Hardy Heron 64 bit. LED showing status for the integral wireless Atheros AR5007 is still off but the wireless is working very well.
Terminal command “sudo ndiswrapper -i net5211.inf” did not work for me, but I was able to install it directly
################################################################################################################
hi mate,
i got same laptop like you but i coulndt manage to find the device it self, i did all the step above (and few more steps in the forum) but no avail. yes, the “sudo ndiswrapper -i net5211.inf” did not work for me as well but the rest works fine. i still get the ‘orange’ LED for the wireless button and totally no wireless device found in my Compaq c700. being work with this for 12hours… i need some help from the expert now.. plz help.
regards.
I am mystified about how to do this. I have an HP dv6000. Thanks to your instructions, my computer now recognizes my internet signal and a host of others in the neighborhood. Notwithstanding that, whenever I pop the WEP 64-bit hex passphrase in, I get a blue light but the varmint never connects. What would you advise? I am clueless as to why Linux is so hard to run on a laptop.
Strange but nice! Lost wireless network after latest Ubuntu updates yesterday – but lo and behold – tonight after the usual sudo modprobe ath_pci the network connection is there again. And works fast and stable as before. Loads of thanks for that effective way of using madwifi with atheros chip. Especially after long three months of trouble with broadcom on me desktop.
I can’t believed.It work on TOSHIBA A215-S4757 with i386.THANK YOU VERY MUSH
I am resigned to the fact that this won’t be the ideal solution I am looking for. Way back in time when I installed Dapper Drake on an ancient NEC, the wifi worked fine, no additional measures required. But that must have been because of the better supported integrated Wifi for Intel MOBOs.
My connections are erratic. Sometimes it establishes a wireless connection immediately (which results in momentary elation), other times, it doesn’t at all. I now pack an Ethernet cable with my laptop whenever I go out.
Anyway, I wish to retry all the steps above, with Hardy Heron’s network settings and drivers returned to it’s original state. But I don’t want to reinstall Ubuntu, since it would take a great deal of time to reinstall the other stuff I have added.
So, what steps do I need to take to restore the network settings and drivers to its original state sans a clean re-installation.
I just purchase a Compaq Presario C762NR (C700 series) Notebook PC. Installed Ubuntu 8.04 LTS desktop i386 on it ok but the wireless card was not working. I followed this guide, rebooted and it now works perfectly!! many thanks!
“When i find some network and my wicd won’t connect,
then i go to the console and type:
sudo ifconfig wlan0 down
sudo ifconfig wlan0 hw ether xxxxxxxx
The xxx must be replaced by your mac-adress
This works great!”
I have tried TONS of ways to get my wifi to work… and finally i tried this… and it works PERFECT!!! So i just added the commands to startup and now i can use wicd flawlessly, and it connects fast and perfect! Thank you so much! After hours of command lines and internet searching with Windows XP and Vista (desktop PC and duel boot Vista) BLAH this finally works. I suggest all of you who are still having problems try this.
Thanks a lot. It works. My problem was that wifi went down updating to Ubuntu 8.04 and iwas not able to fix it. Your system works fine.
Me again. I just have update the system and wifi went down. Any way it works again mhin a new install only.
HP Pavilion dv9000 – Worked a treat. Didnt have any luck with 64-bit installs (ndis or otherwise) last night, so went ahead with 32-bit and these instructions, and the FIRST of my issues are sorted.
Cant thank you enough. All worked first time. The wifi light doesnt seem to respond, but a small price to pay.
it works for my compaq f700. Big thank you.
cheers.
well after at least 6 attempts, my Compaq Presario F700 with an Atheros card still cannot see my wireless network
I found a thread on the Ubuntu Forums that allows wireless access for the 64bit version of Ubuntu that dispenses with ndiswrapper.
How To:MadWifi Support for AR2425 (AR5007EG) on 64bit Ubuntu !!!
I am wary of touching it though, because I have followed the steps in this thread religiously.
So how do I remove the subirwifi commands and unblacklist the default driver?
Thank you so much!!! I was pulling my hair out until I found this. Everything works great!!!
Hi, I want to try this on my Acer Aspire 5520, but the madwifi website is not working. Is there somewhere else that I can get that snapshot? Or can someone who has already downloaded it, upload the file somewhere else until madwifi gets their site back up (would this be illegal)? Just wondering, because these steps work for people, but I just can’t get at the snapshot!
Hi again….has anyone noticed a problem with suspending after using this wireless card fix? When i try and suspend the session now the wireless card seems to be stopping it (i think).
I tried many ways to get my wireless card detected and finally saw this post.. it worked.. thanks..!!!
I couldnt get it to work it just came up with error 1 and error 2 and couldnt find package and when i try to reload using the software resources method errors pop up aswell while i do have an ethernet connection working so i dont know wat the problem is please help
Hi, i tryed the tut and for starters it worked, but affter reboot it dosent work anymore. I see the wireless conections in network manager but i can not connect to them it just keps asking for the password, over and over again. Thanks and pls reply.
Best regards.
I have a Compaq C762NR and this method works for both Hardy and Gutsy. Great guide!
As with others, the orange never turns blue, but it’s really not that big of a deal.
A quick note for those without wifi after Ubuntu update.
My cousin had the same problem and we discovered that 2.6.24-19 kernel was the problem. Booting from the previous version (2.6.24-18) solved it. Give it a try!
Good luck!