for breezy this howto assumes you have the following packages installed:
build-essential
linux-headers-`uname -r`
gcc-3.4
sharutils (thanks to enodr for reminder)
1. cd /usr/local/src
2. sudo wget http://snapshots.madwifi.org/madwifi-old-current.tar.gz
or for madwifi-ng
sudo wget http://snapshots.madwifi.org/madwifi-ng-current.tar.gz
3. sudo tar -zxvf madwifi-XX-current.tar.gz
cd madwifi-XX-current
replace XX with old or ng
4. EXPORT CC=gcc-3.4
or for madwifi-ng edit madwifi-ng-current/hal/public/i386-elf.inc & change this line:
to this:CC= ${TOOLPREFIX}gcc
5. sudo make cleanCC= ${TOOLPREFIX}gcc-3.4
sudo make
6. sudo make install
answer [r]emove to all questions
7. cd ath_hal
sudo cp ah_osdep.o /lib/linux-restricted-modules/`uname -r`/ath_hal
sudo cp ath_hal.mod.o /lib/linux-restricted-modules/`uname -r`/ath_hal
sudo cp hal.o /lib/linux-restricted-modules/`uname -r`/ath_hal
8. cd /lib/modules/`uname -r`
sudo rm -r madwifi
sudo mv net madwifi
sudo rm madwifi/ath_hal.ko
finish
to undo all of the above:
sudo apt-get --reinstall linux-restricted-modules-`uname -r`
Bookmarks