I wanted to post what worked for me to get my Lenovo Thinkpad T60 working with WPA/WPA2 wireless and Hardy. This information seems to be scattered all over the place so I thought I would compile it into a howto guide. I will walk you through downloading and configuring the lastest Madwifi trunk, and WICD. I used the r3616 of the Madwifi svn. I'm not sure if a newer svn will work. I prefer the WICD interface to Network Managers. YMMV if tried with Network Manager. I also haven't tried this in KDE. If there is anyone that wants to contribute to this or has a better way of doing this please give us your 2 cents. Here are the steps:
Install prerequisites to download and build Madwifi
1) Install kernel headers, subversion and build-essential. Open you favorite terminal program and enter the following code:
Download and install latest Madwifi svn.
sudo aptitude install linux-headers-`uname -r` subversion build-essential
2) Make directory to download latest svn into and download svn.
3)Remove Madwifi drivers installed by Hardy
svn checkout http://svn.madwifi.org/madwifi/trunk #This will take a while.
4) Install Madwifi
sudo ifconfig ath0 down
sudo ifconfig wifi0 down
#Repeat these 2 ifconfig lines for every MadWifi device you have
sudo sh ./find-madwifi-modules.sh $(uname -r)
5) Load Madwifi module and set module to start at boot
sudo make install
*the modules file only supports one device per line*
sudo modprobe ath_pci
sudo gedit /etc/modules
Enter ath_pci on the last line of the file and save.
6) Add WICD repository to Software Sources.
Go to System -> Administration -> Software Sources
Click on "Third-party Software" tab
Add this for the "APT line" - deb http://apt.wicd.net hardy extras
Click "Add Source"
Click "Reload" #Be sure to reload or the next step will not work
7) Install WICD. #This will remove Network Manager.
8) Load WICD gui at login
sudo aptitude install wicd
Go to System -> Preferences -> Sessions
Under the "Startup Programs" tab click "Add"
Under name type "WICD" #without quotes
Under command type "/opt/wicd/tray.py" #without quotes
Load WICD without restarting ATL-F2 put this in the box /opt/wicd/tray.py and click run.
9) Let's see if your new install is working
10) Connect to WPA/WPA2 access point
lspci -nn | grep Network
you should get this 03:00.0 Network controller : Atheros Communications Inc. AR5418 802.11abgn Wireless PCI Express Adapter [168c:0024] (rev 01)
sudo lshw -C network | grep driver | sed 's/ /\n/g' | grep driver=
you should get this
sudo lsmod | grep ath_pci
you should get this
ath_pci 241856 0
wlan 255008 5 wlan_tkip,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 281216 3 ath_rate_sample,ath_pci
Change this line psk=$_PSK to this line psk=$_KEY
sudo gedit /opt/wicd/encryption/templates/wpa
Go into the WICD Manager click on preferences and make sure that wext is the "WPA Supplicant Driver" and that ath0 is your "Wireless Interface".
Check "Automatically Reconnect on Connection Loss"
Now click "Refresh" at the top and you should see your AP's name and all of the other APs close to your location. If your AP has a hidden SSID you will need to add the AP's name to WICD. Just Click on the down arrow at the top of the WICD Manager next to "Network" and choose "Hidden Network" and follow the next directions. You will need to add the PSK and any other settings necessary to connect to your particular AP. Just click on the name of your AP and then Advanced and you can put all your settings in.
You should be set to go now. ENJOY!!!!