Wednesday, November 03, 2010

Ubuntu 10.10: "fixed channel mon0: -1" Aircrack Problem With iwl3945

After upgrading to Ubuntu Maverick, the Aircrack suite stopped working.

After setting airodump to a channel (like usual):

airodump --channel X
It still displayed its status as:

fixed channel mon0: -1
Some forum users advised to use:

airodump --channel X,X
But this didn't work. For the record, I'm using a Thinkpad X60, with the iwl3945 driver. lshw output:

  *-network
       description: Wireless interface
       product: PRO/Wireless 3945ABG [Golan] Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: eth1
       version: 02
       width: 32 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical wireless


Luckily, there is an easy to follow thread on the forums which fixes the problem for a similar card. This solution also worked with my 3945ABG.

Here are the commands:

wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-16.tar.bz2
tar -jxf compat-wireless-2010-10-16.tar.bz2
cd compat-wireless-2010-10-16
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
patch ./net/wireless/chan.c channel-negative-one-maxim.patch
gedit scripts/update-initramfs
#*** FIND LINE 13: KLIB=/lib/modules/2.6.31-wl/build
#*** REPLACE WITH: KLIB=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make unload
sudo modprobe iwl3945


Alternatively you can also use sudo reboot instead of sudo modprobe if you're unsure which driver module you need to load.

Aircrack should work fine again now. Note that kernel updates might overwrite the module again (and, hopefully, fix the bug at the same time).

18 comments:

  1. Thank you very much.
    It works fine!!!

    ReplyDelete
  2. thanks so much

    ReplyDelete
  3. thank you very much, i really appreciate your post, it works well. ^^

    WEP cracking training successed, next WPA...

    ReplyDelete
  4. this works, thanks for the excelent tutorial.

    www.hackmiami.org

    ReplyDelete
  5. Awesome, appreciate

    ReplyDelete
  6. This doesn't worked for me , but I found another way :

    sudo apt-get remove --purge aircrack-ng
    sudo apt-get install libssl-dev
    sudo apt-get install subversion
    cd ~
    mkdir aircrack-ng
    svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng
    cd aircrack-ng
    sudo make unstable=true install

    You just have to add this option : "--ignore-negative-one" at the end of aireplay command

    ie : sudo aireplay-ng -0 10 -a xx:xx:xx:xx:xx -c xx:xx:xx:xx:xx: --ignore-negative-one mon0

    ReplyDelete
  7. hey i have atheros ath5k and i did both of thease and when i do aireplay it cycles through all the channels and wont stay on the one i need or it when i do airodump-ng wlan0 it wont collect data from a secure network just open???? please help

    ReplyDelete
  8. Ok.. now my wifi stoped working... aparently using this patch altered some how the wifi driver. Checking the private drivers, it says that the b43 (broadcom card) is installed but not working... after looking up in forums I just gave up, now posting form a fres Ubuntu 10.10 install, hope ya can get aircrack to work..

    ReplyDelete
  9. --ignore-negative-one works just fine for me....looks kind of ugly but it works and that is all there is...thx anonymous

    ReplyDelete
  10. --ignore-negative-one works great for me thanks a lot :)

    ReplyDelete
  11. problrem on ubuntu 11.04 ===>> ERROR 2
    commants:
    make[1]: *** [_module_/home/panais/compat-wireless-2010-10-16] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
    make: *** [modules] Error 2

    ReplyDelete
  12. my friend anonymous use areplay with only

    --ignore

    ReplyDelete
  13. patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch


    dont work!!!! please help me!

    ReplyDelete
  14. helpful article, i have save this page to my drive. And maybe I'll try it soon.

    ReplyDelete
  15. cristhian el capoAug 11, 2011 05:12 PM

    im traying to use --ignore but this page isnt working. svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng, sets that svn: El servidor envió un valor de devolución inesperado (501 Not Implemented) en respuesta al requerimiento REPORT para «/svn/!svn/vcc/default»

    ReplyDelete
  16. nice share! thanks! i used ubuntu 11.04

    ReplyDelete
  17. No patch for Fedora 16?

    ReplyDelete
  18. I had the same problem with ath5k driver for Atheros card which supposed to replace mad-wifi. I fixed it by rolling back to old good mad-wifi and deleting ath5k .
    ath5k sucks totally and with mad-wifi I get much better range

    ReplyDelete