How to patch kernels for aircrack-ng

Archived topics about LMDE 1 and LMDE 2
Locked
d4rk50ld13r

How to patch kernels for aircrack-ng

Post by d4rk50ld13r »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “LMDE Archive”