上等兵
- 注册时间
- 2013-8-12
- 金币
- 73 个
- 威望
- 0 个
- 荣誉
- 0 个
累计签到:9 天 连续签到:0 天 [LV.20]漫游旅程
|
发表于 2014-9-8 09:03
linux的内核中已经支持rtl8187,工作的很好,一般无需再自己装驱动。
但是内核中的驱动“设置网卡功率”的功能太弱,只支持1-20 dBm 这个设置范围。
WINDOWS下有可调功率的8187网卡驱动,可以很方便地设置1%-100%,感觉WINDOWS下信号比LINUX下更强,连接也更流畅些。
用LINUX的朋友是怎么解决这个问题的?
在网上只看到一篇文章:http://wenku.baidu.com/link?url= ... GU6ThHyElLMeteaZAIy
年代也有些老了。
全文如下:
8187网卡在LINUX设置功率[EN]
=警告=乱改功率是违法的事情 谨慎使用!! 中国限制<100mw
General
The r8187 driver works properly for the Realtek RTL8187L chipset. Support for the RTL8187B chipset is under development but is not fully working.
This page only deals with the ieee80211 version of the r8187 driver. For the mac80211 rtl8187 version see the mac80211 page. To understand the differences, see mac80211 versus ieee80211 stacks write-up.
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 blacklisting mac80211 driver version below.
R8187
rmmod the r8187 and rtl8187 modules before proceeding:
===
这里是命令 ubuntu 需要sudo
ifconfig wlan0 down
rmmod r8187 rtl8187 2>/dev/null
wget http://dl.aircrack-ng.org/drivers/rtl8187_linux_26.1010.zip
unzip rtl8187_linux_26.1010.zip
cd rtl8187_linux_26.1010.0622.2006/
wget http://patches.aircrack-ng.org/rtl8187_2.6.24v3.patch
tar xzf drv.tar.gz
tar xzf stack.tar.gz
patch -Np1 -i rtl8187_2.6.24v3.patch
make
make install
安装完毕后
替换驱动
rmmod rtl8187
modprobe r8187
内核操作 系统操作 都需要ROOT身份!!!
==================================
Now reboot your system. If your card is connected then wlan0 should now be listed in iwconfig.
Please note that a copy of the patch is also included with the aircrack-ng tar file in the “patches” subdirectory.
Usage Tips
Power Settings
The transmit power can be adjusted using:
#这里是设置 功率 0-35 范围
iwconfig wlan0 txpower <value of 0 to 35>
With 0 being the lowest and 35 being the highest transmit power. The default is 5 which is normal. In order to use higher values, you must first “enable” the high power option. See the next section regarding how to do this. WARNING: Enabling high power can damage or destroy your wireless device. Use this feature at your own risk.
It is important to understand that the values are relative power values, not absolute. Meaning that they do not refer to dBm or mW values.
To view the current setting enter:
#查看功率
iwlist wlan0 txpower
The system responds with the current setting:
wlan0 unknown transmit-power information.
Current Tx-Power=5 dBm (3 mW)You MUST ignore the dBm and mW labels. The value of “5” above is the actual value in the 0 to 35 range. Unfortunately due to driver constraints, the “dBm (3mW)” are also displayed but must be ignored.
See this posting for a more detailed description of the power settings.
"highpower" ipriv Setting
+++++++++ WARNING +++++++++
+++++++++ WARNING +++++++++
WARNING: Enabling high power can damage or destroy your wireless device. Use this feature at your own risk.
+++++++++ WARNING +++++++++
+++++++++ WARNING +++++++++
Starting with the rtl8187_2.6.24v3.patch, there is a iwpriv “highpower” setting you need to set to “1” in order to increase the txpower over the default value.
To enable high power:
iwpriv wlan0 highpower 1To disable high power:
iwpriv wlan0 highpower 0Using Unpatched Driver
Although it is highly recommended that you patch the driver, it is possible to use the unpatched driver for injection. Simply enter this command first “iwpriv wlan0 rawtx 1”.转载请注明出自中国无线论坛 http://www.wlanbbs.com/,本贴地址:http://www.wlanbbs.com/thread-537-1-1.html
卡王是RTL8187L的芯片,这个芯片在linux下有两个支持监听和注入的驱动
ieee80211 和mac80211官方推荐使用ieee80211
先卸载原来的驱动模块
rmmod r8187 rtl8187 >/dev/null
下载新的驱动
wget http://dl.aircrack-ng.org/drivers/rtl8187_linux_26.1010.zip
下载驱动补丁
http://patches.aircrack-ng.org/rtl8187_2.6.24v3.patch
解压后进行make&&makeinstall编译和安装
修改网卡功率的命令
iwconfig 网卡接口 txpower 数值(0-35)
个人感觉xx没有xxx好用,xxx经常不能连接服务器,我习惯用xxx,且xxx的更新速度比XX快转载请注明出自中国无线论坛 http://www.wlanbbs.com/,本贴地址:http://www.wlanbbs.com/thread-537-1-1.html
|
|