Posting ini sebenarnya hanya update untuk posting saya yang terdahulu (Compile Source Compat Wireless dengan Patch Backtrack 4). Tapi karena saya telah meng-update kernel slackware saya dengan kernel testing pada slackware current (2.6.38.4-smp), maka ada beberapa penyesuaian yang harus saya lakukan terhadap tutorial sebelumnya.
Tapi kenapa harus membuat posting baru? Kenapa tidak di-edit saja posting yang lama? Ya, awalnya saya juga berpikiran seperti itu. Saya merasa sayang untuk mengubahnya, jadi saya biarkan saja posting saya itu apa adanya.
Seperti biasa, alat yang harus dipersiapkan adalah:
-
source code kernel 2.6.38.x (saya pake bawaan testing dari current, 2.6.38.4).
-
source code compat wireless untuk kernel 2.6.38.x
-
patch (bagi yang pengen maenan aircrack-ng, ini yg penting loh…)
Saya akan berikan tutorialnya:
masuk ke direktori /usr/src/
cd /usr/src
buat direktori khusus untuk compat-wireless
mkdir compat-wireless ; cd compat-wireless
download source code compat wireless dan patch yang perlu (atau
bisa juga diambil di http://mti.ugm.ac.id/~priyoatmojo/SlackBuilds/compat-wireless/)
wget http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.38/compat-wireless-2.6.38.2-2-ns.tar.bz2 wget http://mti.ugm.ac.id/~priyoatmojo/SlackBuilds/compat-wireless/wireless-patches-2.6.35.8.tar.gz wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
ekstrak source code yang ada:
tar xvf *.tar.?z*
masuk ke direktori source compat wireless :
cd compat-wireless-2.6.38.2-2-ns
patch source code compat wireless:
patch -Np1 < ../mac80211.compat08082009.wl_frag+ack_v1.patch patch -Np1 < ../wireless-patches/404-ath_regd_optional.patch patch -Np1 < ../wireless-patches/ar9170_regdomain_override.patch patch -Np1 < ../wireless-patches/ath.patch patch -Np1 < ../wireless-patches/ath5k_regdomain_override.patch patch -Np0 < ../wireless-patches/ath9k_injection_fix.patch patch -Np1 < ../wireless-patches/channel-negative-one-maxim.patch patch -Np0 < ../wireless-patches/zd1211rw-inject+dbi-fix-2.6.26.patch patch -Np0 < ../wireless-patches/zd1211rw.patch
lalu compile:
make make install make wlunload
untuk lebih aman, silakan reboot linuxnya. Setelah reboot, cek apakah interface wirelessnya sudah bisa diakses atau belum. Jika belum, berarti kita harus me-load manual module wireless-nya.

bhai. please help me to set may backtrack5. because it did not work on monitor mode. i try everything to have but still its not working. can you send me step by step setup for backtrack5 please. and more power thanks!
hi juan,
first, I would tell to you, not all wireless chipset is capable to operate in monitor mode. some card support for monitor mode out-of-the-box (ie. atheros and ralink), and some not.
fell free to check if your wireless chipset is listed in this site (http://www.aircrack-ng.org/doku.php?id=compatibility_drivers#compatibility).
Those patches did not apply cleanly. Some with fuzz and the ath9k injection fix failed.
patching file net/wireless/ath/ath9k/xmit.c.new
Hunk #1 FAILED at 1525.
1 out of 1 hunk FAILED — saving rejects to file net/wireless/ath/ath9k/xmit.c.new.rej
hi,
thanks for your comments.
yes, you right about that patches did not apply cleanly, because it’s not mine.
Those patches I collect from many sources, and I just use it. Some of those are from backtrack 4 patch, and the rest of it, I just googling and use it. But I only use some of them that really work for my cards.
For testing, I use 3 wireless cards. 1 from my laptop Atheros AR5001 (ath5k), 2 USB wifi, TP-Link TL-WN322G (zd1211rw) and TP-Link TL-WN422Gv2 (ath9k_htc).
And about patch failed that you say, it didn’t happened to me. I use compat-wireless-2.6.38.2-2-ns.tar.bz2 and do exactly like I mentions on my post. I also already check those patches that I use in my post, and none of them are patching file net/wireless/ath/ath9k/xmit.c.But may be I miss in some patches… May be you can tell me which patches that you use and make that failed.
Oh, damm… yes, I found it… I will recheck that patch… thanks for your complain
cheers
um… it kind weird… I try it from the beginning, and it just work..
yes, it reproduce fuzz, but not failed..
it just like this:
root@orihime:[/tmp/YPA/compat-wireless-2.6.38.2-2-ns]# patch -p0 < ../wireless-patches/ath9k_injection_fix.patch
patching file drivers/net/wireless/ath/ath9k/xmit.c
Hunk #1 succeeded at 1464 with fuzz 1 (offset -61 lines).
May be you used another version of compat-wireless. In my case, I only test this patch on compat-wireless-2.6.38.2-2-ns, because it the stable release for kernel 2.6.38.x.
hi bro please help to install alpha nhr on back track ..ihave probleme to assossiate ap.thanks a lote.
I would suggest you to upgrade your backtrack to the latest release (BackTrack 5R2). It already released on Mar 1st 2012.