I followed madwifi instructions (set kernel config) but didn't manage to make my card work.
lspci | grep Atheros gives the following output:
02:05.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC (rev 01)
I use x86_64 Gentoo Linux.

I tried older versions of madwifi drivers and newer ones; best results had with one of latest snapshots: r1823. After I set ESSID and channel 'iwconfig' says that my ath0 interface is associated with AP. But still dhcp won't give me IP address - it gets no resonse from AP. In order to debug I ran 'athdebug fatal' and saw a _lot_ of kernel messages, like this one: R (ffff810030df9270 70) 30df92a4 2efac020 00000000 00000c60 00000000 00000000 .
Don't know how to interpret these messages and I am out of ideas.
I know that my laptops wifi card model is not officially supported (or is it?), however a few people had it working, as I read in forums.

Any ideas what to do next ?