This document uses Gentoo Linux and the kernel has been upgraded to the latest version as follows:
Crob @ Crob ~ $ Uname-
Linux Crob 2.6.28-Gentoo #34 SMP wed Jan 14 17:00:22 CST 2009 i686 Intel (r) core (TM) 2 Duo CPU t5470 @ 1.60 GHz genuineintel GNU/Linux
1. Configure the kernel, select the support for rtl8187 in the kernel, and compile it into a module
Device Drivers --->
Network Device Support --->
Wireless LAN --->
[*] Wireless LAN (IEEE 802.11)
<M> RealTek 8187 and 8187b USB support
2. Download the kernel patch to enable rtl8187 to support injection (injection mode)
Wget http://astray.fragstore.net/apps/mac80211_2.6.28-rc8-wl_frag+ack_radiotap_2.6.28_mod.patch
Wget http://astray.fragstore.net/apps/rtl8187-mac80211-pwr.patch
1. Copy the above two files to the kernel source code directory (usually/usr/src/Linux)
2. Run the following command to check whether the patch is correct.
Patch-Np1 -- dry-run-I rtl8187-mac80211-injection-speed-2.6.28-rc6.patch
Patch-Np1 -- dry-run-I rtl8187-mac80211-pwr.patch
3. If no error occurs in step 1, remove -- dry-run and execute it again.
4. recompile and install the kernel module
Make clean & make modules_install
Copy ARCH/i386/boot/bzimage/boot/Kernel File Name
5. Restart
Note: For kernels earlier than 2.6.28, the following patches may need to be installed. The steps are the same (in the Appendix 1, foreigners say 2.6.28 kernel does not need to be patched)
Wget requests:
OK! Now your rtl8187 can support injection, aircrack-ng no problems!
Appendix:
1,
Kernel 2.6.28 update patched for ext4 CD upgrade.
Http://forums.remote-exploit.org/showthread.php? T = 19221 & Highlight = rtl8187
Well, as a Sidenote: Generally the patches for mac80211 used in my
Tutorial are generic 2.6.28 fragmentation/ack patches, so they cocould be
Used for this 2.6.28 update CD. The only true Alfa related patches are
Rtl8187-mac80211-injection-speed-2.6.28-rc6.patch and
Rtl8187-mac80211-pwr.patch, which aren't necessary, but useful.
2,Alfa awus036h (rtl8187) and Linux kernel 2.6.28-the ultimate Alfa driver
Http://forums.remote-exploit.org/showthread.php? T = 19350 & Highlight = rtl8187