Do you have Z-Comax or other Prism based WiFi card (for example XI-626, XI-325)..? Ubuntu 7.04 Feisty Fawn, same as in the last version Dapper Drake can not do Packet Injection with hostAP driver. This is a short instruction how to change this situation. You need just to download 60MB source code, patch and install dpkg-dev and linux-kernel-devel. Start with creating the folder where the whole operation will run.
Make DIR and CD to directory
mkdir temp
cd temp
For outcome from compilation we create subfolder outemp and we copy into it the actual kernel config
mkdir outemp
cp /boot/config-2.6.20-16-386 outemp/
cp /usr/src/linux-headers-2.6.20-16-386/.config outemp/
Download linux image
apt-get source linux-image-2.6.20-16-386
Download packet injection patch
wget -nc http://rsappe.googlepages.com/hostap-kernel-injection-2.6.20-16.patch
Patch for older kernel 2.6.18 is at http://patches.aircrack-ng.org/hostap-kernel-2.6.18.patch
Run patch
patch -p1 < hostap-kernel-injection-2.6.20-16.patch
Modules compilation
cd linux-source-2.6.20-2.6.20/
make O=../outemp outputmakefile
make O=../outemp archprepare
make O=../outemp modules SUBDIRS=scripts
make O=../outemp modules SUBDIRS=drivers/net/wireless/hostap
Back up former modules and replace it for the new ones
cd /home/USER/temp/outemp/drivers/net/wireless/hostap/
sudo cp -dpR *.ko /lib/modules/2.6.20-16-386/kernel/drivers/net/wireless/hostap/
That’s all. Have fun.


