Short info how to get the Wireless card working in Xubuntu.
EDIT:Make sure you have build-essential installed! (Pointed out by friendly reader, thank you very much! My mistake that this was forgotten from the original post! Sorry for the possible trouble!)
$ sudo apt-get install build-essential
Get the latest madwifi pack http://snapshots.madwifi.org/madwifi-hal-0.10.5.6-current.tar.gz and save it to your home folder for example.
Disable current Atheros Hardware Access Layer (HAL) and Support for Atheros 802.11 wireless lan cards from Applications – System – Hardware Drivers and then reboot as requested
Make sure that ath_hal module is not loaded in the future:
$ sudo mcedit /etc/default/linux-restricted-modules-common
Add ath_hal between the quotation marks, for example DISABLED_MODULES=”ath_hal”
Unpack the downloaded tar.gz
$ tar xzvf madwifi-hal-yaddayadda.tar.gz
Cd into the new folder scripts under the new unpacked madwifi folder
Execute madwifi-unload and find-madwifi-modules.sh scripts
$ sudo ./madwifi-unload
$ sudo ./find-madwifi-modules.sh $(uname -r)
Drop one level back,
$ cd ..
and just to be sure, execute make clean to get rid of old crap
$ make clean
Then we check just to be sure that the Hardware Drivers does not show any drivers for Atheros wlan or HAL. If the window is clean, proceed to building the modules.
$ make
$ sudo make install
$ sudo modprobe ath_pci
Then, check that you have ath0 and wifi0 network adapters created, ath0 should be the first, wifi0 last. You might need to scroll back a bit
$ ifconfig
Now you should be able to see AP’s via panel’s network applet. You can also scan for wlan’s with command
$ sudo wlanconfig ath0 list scan
That’s it, happy networking!
When you get updates/upgrades that change kernel in any way, your wireless card drivers won’t work anymore. Just do the whole thing all over again and you’re wireless again.
EDIT: If the driver is not loaded automatically, you can add ath_pci to /etc/modules
Here’s the commands:
$ sudo mcedit /etc/modules
add ath_pci into a new LAST line of the document, save the document and reboot.
If you don’t want to reboot right away, you can type
$ sudo modprobe ath_pci
This loads the module(driver) and you should have wlan up and running then. Just remember when you reboot the next time that you added the module to “loaded at startup” configuration.