r8187
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| r8187 [2008/07/14 15:44] – Move "rtl8187" to here, since the page is about r8187 (legacy), not rtl8187 (mac80211). netrolller3d | r8187 [2017/01/09 21:35] (current) – Mark page as deprecated. mister_x | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== DEPRECATED ====== | ||
| + | |||
| + | **IMPORTANT NOTE**: This page is deprecated, updated documentation can be found [[install_drivers|here]] | ||
| + | |||
| ====== General ====== | ====== General ====== | ||
| - | The r8187 driver works properly for the Realtek RTL8187L chipset. | + | The r8187 driver works properly for the Realtek RTL8187L chipset. |
| - | This page only deals with the ieee80211 version of the r8187 driver. For the mac80211 rtl8187 version see the [[mac80211|mac80211 | + | This page only deals with the ieee80211 version of the r8187 driver. For the mac80211 rtl8187 version see the [[rtl8187|rtl8187 |
| **IMPORTANT**\\ | **IMPORTANT**\\ | ||
| If you have a new kernel that support mac80211 and includes the new rtl8187 driver then you **MUST** blacklist it otherwise the ieee80211 version of the module below will not work. See [[r8187# | If you have a new kernel that support mac80211 and includes the new rtl8187 driver then you **MUST** blacklist it otherwise the ieee80211 version of the module below will not work. See [[r8187# | ||
| - | ====== | + | ====== |
| - | rmmod the rtl8187 | + | rmmod the r8187 and rtl8187 |
| ifconfig wlan0 down | ifconfig wlan0 down | ||
| - | rmmod rtl8187 | + | rmmod r8187 rtl8187 |
| wget http:// | wget http:// | ||
| unzip rtl8187_linux_26.1010.zip | unzip rtl8187_linux_26.1010.zip | ||
| cd rtl8187_linux_26.1010.0622.2006/ | cd rtl8187_linux_26.1010.0622.2006/ | ||
| - | wget http:// | + | wget http:// |
| + | wget http:// | ||
| tar xzf drv.tar.gz | tar xzf drv.tar.gz | ||
| tar xzf stack.tar.gz | tar xzf stack.tar.gz | ||
| - | patch -Np1 -i rtl8187_2.6.24v3.patch | + | patch -Np1 -i rtl8187_2.6.27.patch |
| + | patch -Np1 -i rtl8187_2.6.32.patch | ||
| make | make | ||
| make install | make install | ||
| Line 27: | Line 33: | ||
| Please note that a copy of the patch is also included with the aircrack-ng tar file in the " | Please note that a copy of the patch is also included with the aircrack-ng tar file in the " | ||
| - | |||
| ====== Usage Tips ====== | ====== Usage Tips ====== | ||
| - | |||
| - | |||
| ===== Power Settings ===== | ===== Power Settings ===== | ||
| Line 54: | Line 57: | ||
| You MUST ignore the dBm and mW labels. | You MUST ignore the dBm and mW labels. | ||
| - | See this [[http:// | + | See this [[http:// |
| ===== " | ===== " | ||
| Line 73: | Line 76: | ||
| | | ||
| - | |||
| ===== Using Unpatched Driver ===== | ===== Using Unpatched Driver ===== | ||
| Although it is highly recommended that you patch the driver, it is possible to use the unpatched driver for injection. | Although it is highly recommended that you patch the driver, it is possible to use the unpatched driver for injection. | ||
| - | |||
| ====== Troubleshooting Tips ====== | ====== Troubleshooting Tips ====== | ||
| - | |||
| - | |||
| ===== Blacklisting mac80211 driver version ===== | ===== Blacklisting mac80211 driver version ===== | ||
| If you have the file rtl8187.ko in the / | If you have the file rtl8187.ko in the / | ||
| - | * Move the file to another area on your system as follows then do " | + | * Move the file to another area on your system as follows then do " |
| * Edit / | * Edit / | ||
| In both cases, reboot your system afterwards. | In both cases, reboot your system afterwards. | ||
| - | |||
| ===== "sh wlan0up" | ===== "sh wlan0up" | ||
| Line 98: | Line 96: | ||
| Solution:\\ | Solution:\\ | ||
| Make sure your ieee80211 stack is built as a module and remove all those modules. If it is integrated in the kernel, rebuild your kernel with a modular ieee80211 stack. | Make sure your ieee80211 stack is built as a module and remove all those modules. If it is integrated in the kernel, rebuild your kernel with a modular ieee80211 stack. | ||
| + | |||
| ===== wlan0 device does not exist message ===== | ===== wlan0 device does not exist message ===== | ||
| Line 103: | Line 102: | ||
| Solution:\\ | Solution:\\ | ||
| - | You sometimes get this message when another driver, which also creates an wlanX interface is loaded before the r8187 driver. Examples: acx111 | + | You sometimes get this message when another driver, which also creates an wlanX interface is loaded before the r8187 driver. Examples: acx111, hostap |
| ===== Module loading errors ===== | ===== Module loading errors ===== | ||
| Line 174: | Line 173: | ||
| Change "/ | Change "/ | ||
| - | |||
| ===== " | ===== " | ||
| Line 193: | Line 191: | ||
| Solution: This typically occurs after you have upgraded your kernel version. Delete the all the patch files and install a fresh version. | Solution: This typically occurs after you have upgraded your kernel version. Delete the all the patch files and install a fresh version. | ||
| - | |||
| - | |||
| ===== Low injection rates ===== | ===== Low injection rates ===== | ||
| Line 204: | Line 200: | ||
| * Having legacy USB support enabled in your BIOS. Try disabling this option. | * Having legacy USB support enabled in your BIOS. Try disabling this option. | ||
| - | **Note:** VMWare Workstation | + | **Note:** VMWare Workstation |
| Line 236: | Line 232: | ||
| ===== Optimizing injection rates ===== | ===== Optimizing injection rates ===== | ||
| Some people have reported that including "-x 250" on the aireplay-ng command optimizes their injection rates. | Some people have reported that including "-x 250" on the aireplay-ng command optimizes their injection rates. | ||
| - | |||
| ===== "SKB BUG" Error Messages ===== | ===== "SKB BUG" Error Messages ===== | ||
| Line 246: | Line 241: | ||
| The root cause of these messages is not known at this point in time. They can be hidden by the following means: | The root cause of these messages is not known at this point in time. They can be hidden by the following means: | ||
| - | * To remove them from the console: "dmesg -2" | + | * To remove them from the console: "dmesg -n2" |
| * To remove them from system log files, edit / | * To remove them from system log files, edit / | ||
| + | Another more radical approach is to comment out the kernel messages in the kernel source code. This will also mean recompiling your kernel. | ||
| + | |||
| + | Change net/ | ||
| + | |||
| + | void skb_truesize_bug(struct sk_buff *skb) | ||
| + | { | ||
| + | | ||
| + | " | ||
| + | skb-> | ||
| + | } | ||
| + | | ||
| + | |||
| + | to: | ||
| + | |||
| + | void skb_truesize_bug(struct sk_buff *skb) | ||
| + | { | ||
| + | | ||
| + | // | ||
| + | // | ||
| + | // | ||
| + | } | ||
| + | | ||
| + | |||
| + | This effectively eliminates the kernel from reporting the SKB BUG messages. | ||
| + | |||
| + | ===== " | ||
| + | |||
| + | If you get a series of compile messages similar to " | ||
| + | |||
| + | Use | ||
| + | |||
| + | wget http:// | ||
| + | |||
| + | instead of | ||
| + | |||
| + | wget http:// | ||
| + | |||
| + | in the instructions at the top of the page. | ||
| + | |||
| + | ===== " | ||
| + | |||
| + | See this [[http:// | ||
| + | |||
| + | Please note a repair apparently needed in ' rtl8187_2.6.27.patch' | ||
| + | |||
| + | Unmodified, you will get the following error : | ||
| + | -- output from ' make ' : | ||
| + | ...In file included from / | ||
| + | / | ||
| + | |||
| + | |||
| + | Modification to file r8187.h | ||
| + | lines 46,47 are : | ||
| + | #include < | ||
| + | #include < | ||
| + | |||
| + | overwrite lines 46,47 to this.... | ||
| + | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, | ||
| + | #include < | ||
| + | #include < | ||
| + | #else | ||
| + | #include < | ||
| + | #include < | ||
| + | #endif | ||
| + | |||
| + | |||
| + | ===== Will not compile on kerner 2.6.31 or above ===== | ||
| + | |||
| + | Follow the patching instructions at the top of this page then: | ||
| + | |||
| + | wget http:// | ||
| + | patch -Np1 -i rtl8187-ng-2.6.31.patch | ||
| + | |||
| + | Then proceed with make/make install. | ||
| ====== Limitations ====== | ====== Limitations ====== | ||
| Line 255: | Line 324: | ||
| While in monitor mode, airodump-ng will not capture or record any packets injected by the aircrack-ng suite. | While in monitor mode, airodump-ng will not capture or record any packets injected by the aircrack-ng suite. | ||
| - | |||
| ===== Shared Key Authentication fails in managed mode ===== | ===== Shared Key Authentication fails in managed mode ===== | ||
| Line 270: | Line 338: | ||
| SKA is not currently supported with the RTL8187 driver. There is no known workaround. | SKA is not currently supported with the RTL8187 driver. There is no known workaround. | ||
| + | ===== WPA/WPA2 fails in managed mode ===== | ||
| + | |||
| + | On recent kernels, the patched driver fails to work in normal WPA/WPA2 mode. In this case, use the patched ieee80211 driver for injection and use the mac80211 version for normal WPA/ | ||
r8187.1216043069.txt.gz · Last modified: by netrolller3d
