How to patch kernels for aircrack-ng

Write tutorials here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please, Before you post please read this
d4rk50ld13r
Level 1
Level 1
Posts: 16
Joined: Sun Apr 12, 2015 2:13 pm

How to patch kernels for aircrack-ng

Postby d4rk50ld13r » Tue Apr 14, 2015 12:45 pm

Hi

In this tutorial we are going to patch your kernel for better wifi packets injection and we will get rid of " Channel-1"
error .

So let's begin :

To this present date , Linux kernel backports stable are available to all kernels up to : 3.19.
Download the package compatible with your kernel from here :

https://www.kernel.org/pub/linux/kernel ... ts/stable/

I am going to use v3.16.* as an example , you get the one that is compatible with your kernel .

# cd /usr/src/

# wget https://www.kernel.org/pub/linux/kernel ... -1.tar.bz2

Extract it :

# tar xvf backports-3.16-1.tar.bz2

Change Directory :

# cd backports-3.16-1

If you dont have it, you need to install Patch.

# apt-get install patch

In the same terminal Download this patch :

# wget http://patches.aircrack-ng.org/mac80211 ... k_v1.patch

Now , Patch :

# patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch

This one as well :

# wget -Ocompatdrivers_chan_qos_frag.patch http://www.pastie.org/pastes/8846771/download

Now Patch :

# patch -p1 < compatdrivers_chan_qos_frag.patch

Now this one as well :

# wget -Ofix-channel-negative-1-on-new-backport-by-Devil_D.patch http://pastebin.com/wPwAJaQC

Apply the patch :

# patch -p1 < fix-channel-negative-1-on-new-backport-by-Devil_D.patch

Close everything ! " makes no sense , but do it .

CD to your Backport folder again :

# cd /usr/src/backports-3.16-1

** Remember that 3.16.1 is an example !

# make oldconfig

# make

# make install

# update-initramfs -u

# reboot

That's it :) now you can use aircrack-ng without disabling Network-manager.

Enjoy
d4rk

Return to “Tutorials”