How to Fix the Channel -1 Glitch in Airodump on the Latest Kernel
Ever since kernel 2.6.xx in Linux, a lot of the internet kernel modules for wireless interfaces became broken when accessing monitor mode. What happens commonly (to myself included) is a forced channel that your card sits on. No good! For users of airodump and the aircrack-ng suite, the software has become unusable.
In order for us to assess the strength of wireless networks again, we are going to need to perform a few fixes, which can be a bit confusing for a lot of you users new to the hacking world. So, let's take your first step into patching software and get our wireless cards cracking again.
- A wireless card stuck in channel -1
Step 1 Verify the Issue
Text in bold is a terminal command.
Let's reproduce this "little" issue. Throw your wireless card into monitor mode and run the airodump program.
- sudo ifconfig wlan0 down
- sudo ifconfig wlan0 mode monitor
- sudo ifconfig wlan0 up
- sudo airmon-ng start
You should see in the top-right that you are stuck in channel -1. This is an impossible number for a channel. To fix this, we need to apply a patch to it, but for convenience sake, instead of installing the package from source and patching the files manually, let's take advantage of an awesome package from the AUR!
Step 2 Install the "compat-wireless-patched" Package
Follow along with me in this video for installing the package and selecting our appropriate driver. If you require knowing your chipset or driver, just grep for it in your system.
- lspci | grep net
- yaourt -S compat-wireless-patched
- Edit the PKGBUILD file on the line shown in the video and replace the driver name with the appropriate one that you require.
- After the installation, a reboot may be necessary.
Follow and Chat with Null Byte!