I did figure out how to do this eventually. I already posted this on my blog but I figured I'll answer this here to close out my question.
Before performing any sort of compilation, you need to have the necessary tools.
yum install make gcc
Grab the kernel source from github and unpack it.
sudo bash
cd /usr/src
wget https://github.com/raspberrypi/linux/tarball/rpi-3.2.27
mv rpi-3.2.27
tar xzf rpi-3.2.27
Next, grab the configurations from the running kernel and prepare the source tree.
cd raspberrypi-linux-*
zcat /proc/config.gz > .config
make oldconfig
make modules_prepare
Finally, prepare the symlinks in /lib/modules/[kernelversion]/
KSRC=`pwd`
pushd /lib/modules/`uname -r`
ln -s ${KSRC} source
ln -s ${KSRC} build
popd
pushd /usr/src
ln -s ${KSRC} linux-`uname -r`
ln -s ${KSRC} linux
popd
For specific wireless adapters, you might require a firmware file. The wireless card I am working with, TL-WN722N requires the htc_9271.fw file.
cd /lib/firmware
wget http://linuxwireless.org/download/htc_fw/1.3/htc_9271.fw
Grab the driver source and unpack it.
wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.8/compat-drivers-3.8-1-u.tar.bz2
tar xvf compat-drivers-3.8-1-u.tar.bz2
Next, add the Module.symvers file into the source directory.
cd compat-drivers-3.8-1-u
wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers
Next, compile and install the driver.
./scripts/driver-select ath9k_htc
make
make install
Finally, unload the existing modules to prevent any conflicts.
make unload
Sources:
compat-drivers documentation
Raspberry Pi forums
dmesgfor messages from theath9k_htcdriver? Is the driver actually installed? More details about this device: http://wikidevi.com/wiki/TP-LINK_TL-WN722N – Lekensteyn May 13 '13 at 06:35ath9k_htcdriver is not installed. I was confused between theath9kand theath9k_htcdrivers. Is there a way to install it on the Fedora Remix 17? – Ayrx May 17 '13 at 07:17/lib/modulesdirectory? If not, you can try to build an OOT kernel module, recompile the kernel (after enabling the module) or ask the Fedora Remix developers to do that for you. – Lekensteyn May 17 '13 at 08:51