Talking from memory, I got the source for the Ubuntu kernel (apt-get sourcelinux-image-2.6.31-18-generic), then applied that patch and compiled only the Atheros modules (drivers/net/wireless/ath$ make -C /usr/src/linux-headers-2.6.31-18-generic M=`pwd`) and copied the resulting ath5k.ko to the /lib/modules/... directory.
Then "modprobe -r ath5k ; depmod -e ; modprobe ath5k", or something like that and voila!
Errrr, well, I just built the module ath5k.
Talking from memory, I got the source for the Ubuntu kernel (apt-get sourcelinux- image-2. 6.31-18- generic) , then applied that patch and compiled only the Atheros modules (drivers/ net/wireless/ ath$ make -C /usr/src/ linux-headers- 2.6.31- 18-generic M=`pwd`) and copied the resulting ath5k.ko to the /lib/modules/... directory.
Then "modprobe -r ath5k ; depmod -e ; modprobe ath5k", or something like that and voila!