Difference between revisions of "Rtl8187 wireless"
(use ip route2 commands.) |
|||
(27 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Wireless Networking]] |
− | |||
This page describes how to get the '''rtl8187''' wifi-driver working | This page describes how to get the '''rtl8187''' wifi-driver working | ||
− | + | The rtl8187 chip is made for usb-cards/dongles. It supports 802.11(a)/b/g and the following encryptions: WEP, WPA and WPA2. The rtl8187 driver is in the kernel now. | |
− | + | == Using the driver == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Make sure that you have loaded the rtl8187 module with | Make sure that you have loaded the rtl8187 module with | ||
− | modprobe rtl8187 | + | # modprobe rtl8187 |
Then run | Then run | ||
− | dmesg | grep rtl8187 | + | # dmesg | grep rtl8187 |
You should see some output like this <pre> usbcore: registered new interface driver rtl8187 </pre> | You should see some output like this <pre> usbcore: registered new interface driver rtl8187 </pre> | ||
If you see that line everything should be OK | If you see that line everything should be OK | ||
− | |||
− | |||
If everything is right, you should have two new interfaces: wlan0 and wmaster0 | If everything is right, you should have two new interfaces: wlan0 and wmaster0 | ||
− | If you | + | If you do not see wlan0 just run |
− | + | # ip link set dev wlan0 up | |
To list all available wifi-networks just run | To list all available wifi-networks just run | ||
− | + | # iw dev wlan0 scan | |
− | For more information about configuring your wifi-network see here: [ | + | For more information about configuring your wifi-network see here: [[Wireless_Setup#Part II: Wireless management|Wireless management]]. |
== What to do if your connection always times out? == | == What to do if your connection always times out? == | ||
− | === | + | The open source driver suffers from a lot of tx excessive retries and invalid misc errors for some unknown reason, resulting in a lot of packet loss and it keeps disconnecting, some times instantly. |
− | The solution can be found in this thread: | + | |
+ | === Lowering the rate === | ||
+ | |||
+ | The solution can be found in this thread: https://bbs.archlinux.org/viewtopic.php?pid=299642 | ||
Just set the rate to 5.5 | Just set the rate to 5.5 | ||
iwconfig wlan0 rate 5.5M auto | iwconfig wlan0 rate 5.5M auto | ||
− | + | Fixed option should ensure, however, it doesn't change the rate on its own, thus making the connection a bit more stable: | |
− | |||
− | |||
iwconfig wlan0 rate 5.5M fixed | iwconfig wlan0 rate 5.5M fixed | ||
− | + | Alternativelly find the $POST_UP option and append the above options to your profile config file: | |
− | |||
− | |||
− | + | POST_UP="iwconfig wlan0 rate 5.5M fixed" | |
− | + | Try various rates until you get the optimal setting, with no disconnection. In this case 12Mbits, as shown bellow: | |
− | |||
− | + | POST_UP="iwconfig wlan0 rate 12M fixed" | |
− | |||
− | |||
− | |||
− | |||
Now calling; | Now calling; | ||
− | + | netfcg2 -c <wireless profile> | |
or | or | ||
netcfg-menu | netcfg-menu | ||
and choosing your profile works without extra commands. | and choosing your profile works without extra commands. | ||
− | === | + | === Lowering the txpower === |
− | |||
− | |||
− | === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | You can try lowering the transmit power as well. This may save power as well: | |
− | |||
− | + | iwconfig wlan0 txpower 5 | |
− | |||
− | + | or even as low as 0. Valid settings are from 0 to 20, auto and off for the stock kernel driver. | |
− | |||
− | |||
− | |||
− | |||
− | + | === Setting rts and fragmentation thresholds === | |
− | + | Default iwconfig options have rts and fragmentation thresholds off. These options are particularly useful when there are many adjacent APs or in a noisy environment. | |
− | |||
− | + | The minimum value for fragmentation value is 256 and maximum is 2346. In many windows drivers the maximum is the default value: | |
− | + | iwconfig wlan0 frag 2346 | |
− | |||
− | |||
− | + | For rts minimum is 0, maximum is 2347. Once again windows drivers use maximum as the default: | |
− | |||
− | |||
− | |||
− | + | iwconfig wlan0 rts 2347 | |
− | = | + | == See also == |
− | *[http:// | + | *[http://wireless.kernel.org/ The Linux Wireless project] |
+ | *[http://aircrack-ng.org/doku.php?id=r8187 Aircrack-ng information for rtl8187 chips] |
Revision as of 09:35, 6 March 2013
This page describes how to get the rtl8187 wifi-driver working
The rtl8187 chip is made for usb-cards/dongles. It supports 802.11(a)/b/g and the following encryptions: WEP, WPA and WPA2. The rtl8187 driver is in the kernel now.
Contents
Using the driver
Make sure that you have loaded the rtl8187 module with
# modprobe rtl8187
Then run
# dmesg | grep rtl8187You should see some output like this
usbcore: registered new interface driver rtl8187
If you see that line everything should be OK
If everything is right, you should have two new interfaces: wlan0 and wmaster0 If you do not see wlan0 just run
# ip link set dev wlan0 up
To list all available wifi-networks just run
# iw dev wlan0 scan
For more information about configuring your wifi-network see here: Wireless management.
What to do if your connection always times out?
The open source driver suffers from a lot of tx excessive retries and invalid misc errors for some unknown reason, resulting in a lot of packet loss and it keeps disconnecting, some times instantly.
Lowering the rate
The solution can be found in this thread: https://bbs.archlinux.org/viewtopic.php?pid=299642
Just set the rate to 5.5
iwconfig wlan0 rate 5.5M auto
Fixed option should ensure, however, it doesn't change the rate on its own, thus making the connection a bit more stable:
iwconfig wlan0 rate 5.5M fixed
Alternativelly find the $POST_UP option and append the above options to your profile config file:
POST_UP="iwconfig wlan0 rate 5.5M fixed"
Try various rates until you get the optimal setting, with no disconnection. In this case 12Mbits, as shown bellow:
POST_UP="iwconfig wlan0 rate 12M fixed"
Now calling;
netfcg2 -c <wireless profile>
or
netcfg-menu
and choosing your profile works without extra commands.
Lowering the txpower
You can try lowering the transmit power as well. This may save power as well:
iwconfig wlan0 txpower 5
or even as low as 0. Valid settings are from 0 to 20, auto and off for the stock kernel driver.
Setting rts and fragmentation thresholds
Default iwconfig options have rts and fragmentation thresholds off. These options are particularly useful when there are many adjacent APs or in a noisy environment.
The minimum value for fragmentation value is 256 and maximum is 2346. In many windows drivers the maximum is the default value:
iwconfig wlan0 frag 2346
For rts minimum is 0, maximum is 2347. Once again windows drivers use maximum as the default:
iwconfig wlan0 rts 2347