ubnt解决方案
查看: 1702|回复: 10

[讨论] 这里人气不旺啊!问个rtl8187 for linux驱动的事。

[复制链接]

58

回帖

156

积分

33 小时

在线时间

上等兵

注册时间
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

58

回帖

156

积分

33 小时

在线时间

上等兵

注册时间
2013-8-12
金币
73 个
威望
0 个
荣誉
0 个
累计签到:9 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-9-8 09:05
还有个问题,文中有这句话:
卡王是RTL8187L的芯片,这个芯片在linux下有两个支持监听和注入的驱动
ieee80211 和mac80211官方推荐使用ieee80211

================================
我的内核是自己编译的最新3.16.1,查看了一下内核模块,只有mac80211这个模块,没有ieee80211模块,但是有个ieee802154模块,是一回事吗?

58

回帖

156

积分

33 小时

在线时间

上等兵

注册时间
2013-8-12
金币
73 个
威望
0 个
荣誉
0 个
累计签到:9 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-9-8 09:13
www.aircrack-ng.org 被墙了?
想下载文章中那个驱动也下不了。
唉。。。。。。

1256

回帖

3828

积分

302 小时

在线时间

少校

注册时间
2013-2-10
金币
2441 个
威望
0 个
荣誉
0 个
累计签到:118 天
连续签到:0 天
[LV.200]无线新星
发表于 2014-9-8 09:36
你说说哪里人气旺?

1万

回帖

7万

积分

4373 小时

在线时间

中将

水滴试水员

灌水天才

注册时间
2014-4-19
金币
56119 个
威望
355 个
荣誉
0 个
累计签到:2800 天
连续签到:1 天
[LV.2920]超级粉丝
发表于 2014-9-8 10:08
黑胖子 发表于 2014-9-8 09:13
www.aircrack-ng.org 被墙了?
想下载文章中那个驱动也下不了。
唉。。。。。。

建议,不要轻易改变网卡功率
江城五月落梅花

1万

回帖

7万

积分

4373 小时

在线时间

中将

水滴试水员

灌水天才

注册时间
2014-4-19
金币
56119 个
威望
355 个
荣誉
0 个
累计签到:2800 天
连续签到:1 天
[LV.2920]超级粉丝
发表于 2014-9-8 10:12
一钱 发表于 2014-9-8 09:36
你说说哪里人气旺?

笨人,倒是愿意相信LZ的原意是:这里人气兴旺啊
尊上觉得,是这样吧
江城五月落梅花

58

回帖

156

积分

33 小时

在线时间

上等兵

注册时间
2013-8-12
金币
73 个
威望
0 个
荣誉
0 个
累计签到:9 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-9-8 15:31
ChowLiang 发表于 2014-9-8 10:08
建议,不要轻易改变网卡功率

在windows下,一些信号较差的AP,通过调节网卡功率也可以正常连接使用,
LINUX则显得吃力些,AP信号差则经常掉线或者连不上。

58

回帖

156

积分

33 小时

在线时间

上等兵

注册时间
2013-8-12
金币
73 个
威望
0 个
荣誉
0 个
累计签到:9 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-9-8 15:32
一钱 发表于 2014-9-8 09:36
你说说哪里人气旺?

本版块人气不旺,新人区和路由区人气不错。

1万

回帖

7万

积分

4373 小时

在线时间

中将

水滴试水员

灌水天才

注册时间
2014-4-19
金币
56119 个
威望
355 个
荣誉
0 个
累计签到:2800 天
连续签到:1 天
[LV.2920]超级粉丝
发表于 2014-9-8 16:23
黑胖子 发表于 2014-9-8 15:31
在windows下,一些信号较差的AP,通过调节网卡功率也可以正常连接使用,
LINUX则显得吃力些,AP信号差则 ...

重点,不在能或者不能
也不在如何能

在下的重点,是不轻易改变
重点在“轻易”两字


并且,是个人建议
江城五月落梅花

1万

回帖

7万

积分

4373 小时

在线时间

中将

水滴试水员

灌水天才

注册时间
2014-4-19
金币
56119 个
威望
355 个
荣誉
0 个
累计签到:2800 天
连续签到:1 天
[LV.2920]超级粉丝
发表于 2014-9-8 16:30
黑胖子 发表于 2014-9-8 15:32
本版块人气不旺,新人区和路由区人气不错。

同意
Linux交流区,在此发帖的
在下认为皆为中国无线论坛坛友中的高手
江城五月落梅花

站点统计 | Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2024-6-5 22:51

返回顶部 返回列表