www.nixlabs.org

Welcome to *nix Labs!

Fix the infamaous aircrack-ng bug:
A step-by-step for patching the "wlan0 -> mon0 channel -1 bug".
  • First, ensure you have Linux kernel 2.6.24 or higher with headers, gcc, and patch installed.
  • (optional, makes cleanup easier) Make a working directory in your home folder. I named my wifi_patch. cd into your new directory.
  • Download newest driver source from http://wireless.kernel.org/download/compat-wireless-2.6/ and extract with (use Tab to auto-complete the file name):
  • tar -jxf compat-wireless-(version).tar.bz2

  • change into the driver /net/wireless/ directory:
  • cd compat-wireless-(version)/net/wireless/

  • Download the patch into this directory:
  • wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch

  • (optional) Test the patch:
  • patch -Np4 --dry-run --verbose -i channel-negative-one-maxim.patch

  • If you get no hunk errors, then apply the patch to the driver:
  • patch -Np4 channel-negative-one-maxim.patch

  • Move up one directory with:
    cd ..

  • Compile the patched driver:
  • make
  • Install patched driver and load it up:
  • sudo make install
  • sudo make wlunload
  • sudo modprobe (driver-name)
  • Reboot if necessary.
  • Note: any () means that you have to fill in with the proper value, things that are specific to that file or your system.
  • Credits: After much searching, I used the following sources to get my patch properly installed, and prompted my writing this tutorial:
  • http://aircrack-ng.org/doku.php?id=compat-wireless
    http://forum.aircrack-ng.org/index.php?topic=9771.0
  • Follow 7sicks on Twitter
  • Reddit
  • RSS

All typical rights reserved and whatnot.


Valid HTML 4.01 Strict Valid CSS!Written in vi