September 7, 2008

Setting up (Thinkpad T400) wireless network in Ubuntu Hardy Heron

I got a new laptop (Thinkpad T400) recently. Lenovo forces all the T400 buyers to choose Vista by default. As far as I know, there used to be an option to choose GNU/Linux operating system with T61 models. I don't know why Lenovo has revoked those options with the T400 model. As I plan to use my T400 was development purpose as well, I want to install a GNU/Linux operating system and my option is Ubuntu, for its behavior in seamlessly detecting all devices.

To my surprise, when I booted the Ubuntu Hardy Heron I noticed that my wireless card wasn't detected out of box. When I googled for it, I found out that to be a know problem with all the Atheros wireless cards. The wireless card that I have in my laptop is:

(output from the command lspci -v)
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
Subsystem: Atheros Communications Inc. Unknown device 0035
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at f4300000 (64-bit, non-prefetchable) [size=64K]
Capabilities:

To get that working follow the steps given in the reply #6 (by the user reasoner) in the thread http://ubuntuforums.org/showthread.php?t=902860. It worked perfectly fine in my case.

Before I landed on the above menitoned link, I tried with the latest madwifi source from its subversion trunk and that didnt workout for me. *May be* the code under the subversion branch '../branches/madwifi-hal-0.10.5.6/' made the difference.