Aircrack would not play nice on Ubuntu with a Intel Wireless iwl3945 wifi adapter
It would always say “mon0 is on channel -1, but the AP uses channel x”
Solution:
You need to patch the compact-wireless package and rebuild
Copy and paste the below commands into a terminal
Install your kernel headers if you don’t already have them, if you do skip the first command
Code:
sudo apt-get install linux-headers-$(uname -r)
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.2-1.tar.bz2
tar -jxf compat-wireless-3.6.2-1.tar.bz2
cd compat-wireless-3.6.2-1
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
sudo apt-get install patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
make
sudo make install
sudo make unload
sudo reboot