Código:
Kernel superior o igual al 2.6.16
cd /usr/src/linux
wget
http://patches.aircrack-ng.org/hostap-kernel-2.6.18.patchpatch -Np1 --verbose --dry-run -i hostap-kernel-2.6.18.patch
patch -Np1 --verbose -i hostap-kernel-2.6.18.patch
cd /usr/src/linux/drivers/net/wireless/hostap
rm /lib/modules/`uname -r`/kernel/drivers/net/wireless/hostap/*
make -C /lib/modules/`uname -r`/build/ M=`pwd` modules
make -C /lib/modules/`uname -r`/build/ M=`pwd` modules_install
depmod -a
modprobe hostap_pci
Kernel inferior al 2.6.16
ifconfig wlan0 down
wlanctl-ng wlan0 lnxreq_ifstate ifstate=disable
/etc/init.d/CardBus stop
rmmod prism2_pci
rmmod hostap_pci
wget
http://hostap.epitest.fi/releases/hostap-driver-0.4.9.tar.gztar -xvzf hostap-driver-0.4.9.tar.gz
cd hostap-driver-0.4.9
wget
http://patches.aircrack-ng.org/hostap-driver-0.4.7.patchpatch -Np1 -i hostap-driver-0.4.7.patch
make && make install
mv -f /etc/pcmcia/wlan-ng.conf /etc/pcmcia/wlan-ng.conf~
/etc/init.d/pcmcia start
modprobe hostap_pci &>/dev/null