无线网卡总是被禁用,请教解决方法

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
xaolo
帖子: 5
注册时间: 2009-08-20 8:24

无线网卡总是被禁用,请教解决方法

#1

帖子 xaolo » 2010-05-27 13:24

linux下无线网卡的驱动安装以及配置似乎一直都很别扭。最近我刚买了一个笔记本,Toshiba sat pro L510 系列的,里面的网卡型号是Realtek rtl8187B。预装的Win7,想都没想就装了Ubuntu10.04。结果Touchpad跟无线网卡一直不好用,逗弄了两天了,自这里希望大家指教指教。

详细描述一下把。跟很多人类似,都是刚装了系统后重启无线网卡还能用,而且信号也不错,但是第二次重启无线网卡就一直被禁用了。有的人在帖子里说了解决办法,但是我的还是不可以。
列一下我的lsmod,希望给高手多点信息:

代码: 全选

Module                  Size  Used by
joydev                  8708  0 
arc4                    1153  2 
snd_hda_codec_realtek   203168  1 
snd_hda_intel          21877  4 
snd_hda_codec          74201  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               5412  1 snd_hda_codec
snd_pcm_oss            35308  0 
snd_mixer_oss          13746  1 snd_pcm_oss
snd_pcm                70662  4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy           1338  0 
snd_seq_oss            26726  0 
snd_seq_midi            4557  0 
snd_rawmidi            19056  1 snd_seq_midi
snd_seq_midi_event      6003  2 snd_seq_oss,snd_seq_midi
snd_seq                47263  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
rtl8187                50680  0 
mac80211              204922  1 rtl8187
led_class               2864  1 rtl8187
snd_timer              19098  2 snd_pcm,snd_seq
snd_seq_device          5700  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
fbcon                  35102  71 
tileblit                2031  1 fbcon
font                    7557  1 fbcon
bitblit                 4707  1 fbcon
softcursor              1189  1 bitblit
video                  17375  0 
cfg80211              126485  2 rtl8187,mac80211
fglrx                2092908  31 
eeprom_93cx6            1333  1 rtl8187
output                  1871  1 video
uvcvideo               56990  0 
videodev               34361  1 uvcvideo
v4l1_compat            13251  2 uvcvideo,videodev
snd                    54148  19 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
psmouse                63245  0 
serio_raw               3978  0 
intel_agp              24177  0 
vga16fb                11385  1 
vgastate                8961  1 vga16fb
agpgart                31724  2 fglrx,intel_agp
soundcore               6620  1 snd
snd_page_alloc          7076  2 snd_hda_intel,snd_pcm
lp                      7028  0 
parport                32635  1 lp
usbhid                 36110  0 
hid                    67032  1 usbhid
ahci                   32008  4 
r8169                  33884  0 
mii                     4381  1 r8169
然后就是那个touchpad,我想在这个板块就不细说了,反正也是有驱动但是一直不能用。希望大家给个解决方法阿。
头像
monk
帖子: 19507
注册时间: 2010-01-28 10:45

Re: 无线网卡总是被禁用,请教解决方法

#2

帖子 monk » 2010-05-27 13:33

输入ifconfig贴结果

*********宁静致远*********
如果我说的有什么不对,请看签名第一行
xaolo
帖子: 5
注册时间: 2009-08-20 8:24

Re: 无线网卡总是被禁用,请教解决方法

#3

帖子 xaolo » 2010-05-27 14:06

这个是ifconfig结果:

代码: 全选

eth0      Link encap:以太网  硬件地址 00:26:6c:6d:a0:05  
          inet 地址:172.18.138.230  广播:172.18.139.255  掩码:255.255.252.0
          inet6 地址: 2001:250:3002:4700:226:6cff:fe6d:a005/64 Scope:Global
          inet6 地址: fe80::226:6cff:fe6d:a005/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:124156 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:15912 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:22010055 (22.0 MB)  发送字节:2194689 (2.1 MB)
          中断:27 基本地址:0x4000 

lo        Link encap:本地环回  
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  跃点数:1
          接收数据包:4772 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:4772 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:0 
          接收字节:594630 (594.6 KB)  发送字节:594630 (594.6 KB)
这个是ifconfig -a结果

代码: 全选

eth0      Link encap:以太网  硬件地址 00:26:6c:6d:a0:05  
          inet 地址:172.18.138.230  广播:172.18.139.255  掩码:255.255.252.0
          inet6 地址: 2001:250:3002:4700:226:6cff:fe6d:a005/64 Scope:Global
          inet6 地址: fe80::226:6cff:fe6d:a005/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:124191 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:15914 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:22012948 (22.0 MB)  发送字节:2194797 (2.1 MB)
          中断:27 基本地址:0x4000 

lo        Link encap:本地环回  
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  跃点数:1
          接收数据包:4776 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:4776 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:0 
          接收字节:594850 (594.8 KB)  发送字节:594850 (594.8 KB)

wlan0     Link encap:以太网  硬件地址 70:f1:a1:7a:67:0e  
          BROADCAST MULTICAST  MTU:1500  跃点数:1
          接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:0 (0.0 B)  发送字节:0 (0.0 B)
这个是 ifconfig wlan0 up 结果:

代码: 全选

[sudo] password for xxxx: 
SIOCSIFFLAGS: 未知的错误 132
头像
monk
帖子: 19507
注册时间: 2010-01-28 10:45

Re: 无线网卡总是被禁用,请教解决方法

#4

帖子 monk » 2010-05-27 17:15

在网上搜搜你的网卡型号,慢慢折腾吧
给你找了一个看能不能用
http://codepy.net/2008/10/05/use-realte ... buntu.html

*********宁静致远*********
如果我说的有什么不对,请看签名第一行
xaolo
帖子: 5
注册时间: 2009-08-20 8:24

Re: 无线网卡总是被禁用,请教解决方法

#5

帖子 xaolo » 2010-05-27 19:00

代码: 全选

tar -xzvf rtl8187b-modified-dist.tar.gz
cp 2.6.24.patch rtl8187b-modified/
cd rtl8187b-modified
patch -p1  2.6.24.patch
./makedrv
sudo ./wlan0up
上面是monk给的网址里的一部分内容。多谢monk!
在./makedrv的时候,出现了一大片错误。
很长的一堆:基本上全错了。我昨天也弄过这个,是不是因为我内核的缘故阿,网上也找不到答案。。。

代码: 全选

xxxx@xxxx-laptop:~/Downloads/rtl8187b-modified$ sudo ./makedrv
rm -fr *.mod.c *.mod *.o .*.cmd *.mod.* *.ko *.o *~
make -C /lib/modules/2.6.32-21-generic/build M=/home/xaolo/Downloads/rtl8187b-modified/ieee80211 CC=gcc modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.32-21-generic'
  CC [M]  /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.o
In file included from /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:17:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h:1371: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_scan_wq’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:432: warning: initialization from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_probe_resp’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:709: warning: ISO C90 forbids mixed declarations and code
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1553:4: warning: #warning CHECK_LOCK_HERE
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1593:2: warning: #warning CHECK_LOCK_HERE
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_retry_wq’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2251: warning: initialization from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_init’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2473: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2474: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2475: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2476: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2477: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2478: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_complete’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1170: warning: array subscript is above array bounds
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1553:4: warning: #warning CHECK_LOCK_HERE
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1593:2: warning: #warning CHECK_LOCK_HERE
  CC [M]  /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_rx.o
In file included from /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_rx.c:46:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h:1371: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
  CC [M]  /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_tx.o
In file included from /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_tx.c:56:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h:1371: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
  CC [M]  /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.o
In file included from /home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:37:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h: In function ‘ieee80211_priv’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211.h:1371: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c: In function ‘ipw2100_translate_scan’:
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:57: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:57: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:57: warning: passing argument 4 of ‘iwe_stream_add_event’ makes pointer from integer without a cast
include/net/iw_handler.h:517: note: expected ‘struct iw_event *’ but argument is of type ‘unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:57: error: too few arguments to function ‘iwe_stream_add_event’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:66: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:66: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:66: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:66: error: too few arguments to function ‘iwe_stream_add_point’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:69: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:69: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:69: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘u8 *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:69: error: too few arguments to function ‘iwe_stream_add_point’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:75: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:75: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:75: warning: passing argument 4 of ‘iwe_stream_add_event’ makes pointer from integer without a cast
include/net/iw_handler.h:517: note: expected ‘struct iw_event *’ but argument is of type ‘unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:75: error: too few arguments to function ‘iwe_stream_add_event’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:87: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:87: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:87: warning: passing argument 4 of ‘iwe_stream_add_event’ makes pointer from integer without a cast
include/net/iw_handler.h:517: note: expected ‘struct iw_event *’ but argument is of type ‘unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:87: error: too few arguments to function ‘iwe_stream_add_event’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:97: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:97: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:97: warning: passing argument 4 of ‘iwe_stream_add_event’ makes pointer from integer without a cast
include/net/iw_handler.h:517: note: expected ‘struct iw_event *’ but argument is of type ‘unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:97: error: too few arguments to function ‘iwe_stream_add_event’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:106: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:106: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:106: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘u8 *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:106: error: too few arguments to function ‘iwe_stream_add_point’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:136: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:136: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:136: warning: passing argument 4 of ‘iwe_stream_add_event’ makes pointer from integer without a cast
include/net/iw_handler.h:517: note: expected ‘struct iw_event *’ but argument is of type ‘unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:136: error: too few arguments to function ‘iwe_stream_add_event’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:141: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:141: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:141: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:141: error: too few arguments to function ‘iwe_stream_add_point’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:157: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:157: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
include/net/iw_handler.h:517: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:157: warning: passing argument 4 of ‘iwe_stream_add_event’ makes pointer from integer without a cast
include/net/iw_handler.h:517: note: expected ‘struct iw_event *’ but argument is of type ‘unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:157: error: too few arguments to function ‘iwe_stream_add_event’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:164: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:164: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:164: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:164: error: too few arguments to function ‘iwe_stream_add_point’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:178: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:178: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:178: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:178: error: too few arguments to function ‘iwe_stream_add_point’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:193: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:193: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:193: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:193: error: too few arguments to function ‘iwe_stream_add_point’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:204: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_request_info *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:204: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘char *’ but argument is of type ‘struct iw_event *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:204: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
include/net/iw_handler.h:542: note: expected ‘struct iw_event *’ but argument is of type ‘char *’
/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.c:204: error: too few arguments to function ‘iwe_stream_add_point’
make[2]: *** [/home/xaolo/Downloads/rtl8187b-modified/ieee80211/ieee80211_wx.o] 错误 1
make[1]: *** [_module_/home/xaolo/Downloads/rtl8187b-modified/ieee80211] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.32-21-generic'
make: *** [modules] 错误 2
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
make -C /lib/modules/2.6.32-21-generic/build M=/home/xaolo/Downloads/rtl8187b-modified/rtl8187 CC=gcc modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.32-21-generic'
  CC [M]  /home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.o
In file included from /home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:64:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187.h:48:27: error: asm/semaphore.h: 没有那个文件或目录
In file included from /home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187.h:50,
                 from /home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:64:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/ieee80211.h: In function ‘ieee80211_priv’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/ieee80211.h:1371: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_rx_urbsubmit’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:934: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
include/linux/usb.h:1277: note: expected ‘usb_complete_t’ but argument is of type ‘void (*)(struct urb *, struct pt_regs *)’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_rx_manage_urbsubmit’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:954: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
include/linux/usb.h:1277: note: expected ‘usb_complete_t’ but argument is of type ‘void (*)(struct urb *, struct pt_regs *)’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_rtx_disable’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:1255: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_tx’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2220: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
include/linux/usb.h:1277: note: expected ‘usb_complete_t’ but argument is of type ‘void (*)(struct urb *, struct pt_regs *)’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2227: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
include/linux/usb.h:1277: note: expected ‘usb_complete_t’ but argument is of type ‘void (*)(struct urb *, struct pt_regs *)’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2277: warning: ISO C90 forbids mixed declarations and code
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2281: warning: ISO C90 forbids mixed declarations and code
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2310: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2256: warning: unused variable ‘i’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_usb_deleteendpoints’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2328: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: At top level:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2435: warning: ‘struct struct_work’ declared inside parameter list
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2435: warning: its scope is only this definition or declaration, which is probably not what you want
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_wmm_param_update’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2437: warning: initialization from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2439: warning: initialization from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_init’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2654: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2702: warning: assignment from incompatible pointer type
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:2768: error: ‘struct net_device’ has no member named ‘get_stats’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_adapter_start’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:3054: warning: unused variable ‘bInvalidWirelessMode’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:3053: warning: unused variable ‘SupportedWirelessMode’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:3052: warning: unused variable ‘InitWirelessMode’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:3051: warning: unused variable ‘ieee’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_irq_rx_tasklet’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:3769: warning: ISO C90 forbids mixed declarations and code
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_usb_probe’:
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:4071: error: ‘struct net_device’ has no member named ‘open’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:4072: error: ‘struct net_device’ has no member named ‘stop’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:4074: error: ‘struct net_device’ has no member named ‘tx_timeout’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:4076: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:4077: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.c:4078: error: ‘struct net_device’ has no member named ‘set_mac_address’
make[2]: *** [/home/xaolo/Downloads/rtl8187b-modified/rtl8187/r8187_core.o] 错误 1
make[1]: *** [_module_/home/xaolo/Downloads/rtl8187b-modified/rtl8187] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.32-21-generic'
make: *** [modules] 错误 2
希望有人给点指点。。。
头像
monk
帖子: 19507
注册时间: 2010-01-28 10:45

Re: 无线网卡总是被禁用,请教解决方法

#6

帖子 monk » 2010-05-27 23:06

/usr/src/linux-headers-2.6.32-21-generic
看你的内核,没升级吧
先别弄上面那个东西,升级内核到2.6.32-22-generic看行不行,不行再弄

代码: 全选

sudo apt-get update
sudo apt-get upgrade

*********宁静致远*********
如果我说的有什么不对,请看签名第一行
xaolo
帖子: 5
注册时间: 2009-08-20 8:24

Re: 无线网卡总是被禁用,请教解决方法

#7

帖子 xaolo » 2010-05-28 22:01

代码: 全选

Linux xxo-laptop 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux
我的内核已经升级了,还是错误。说实在的各种方法几乎都试了,而且还有别的事情作。。。诶。。。

不知道为什么,这个论坛很难登上去。本来昨天就该来的,可惜一直登不上去。。。

如果有人有什么解决方法,希望回复下。谢谢。
sheji
帖子: 431
注册时间: 2008-04-30 21:40

Re: 无线网卡总是被禁用,请教解决方法

#8

帖子 sheji » 2010-10-25 15:35

我刚好也遇到这个问题。

我装的是 10.04 ,前段时间一直重装这个系统好几次,每次无线网卡都没有任何问题,感觉这个设备识别真是强大啊~~

没曾想,这次同样的安装,就出现了楼主所说的情况,除了第一次可以自动上网以外,每次都是无线网卡被锁,打都打不开啊~~找遍了系统中的所有程序(工具)就是不见有可以打开网卡的地方,,ubuntu,连基本的设备工具都没有?太傻瓜化了吧?这次才是真正意识到——ubuntu与windows在这方面的差别不是一点点!Windows不但系统本身有对网络设备修复功能,何况还有纵多的工具。而ubuntu呢?我刚装的系统,才做了第一次上网更新语言,重启后就这样与世隔绝,,,
这肯定不是网卡驱动的问题,而是系统设置问题!系统谁来设置?傻瓜。
gjmlzrj
帖子: 1
注册时间: 2010-10-25 21:27

Re: 无线网卡总是被禁用,请教解决方法

#9

帖子 gjmlzrj » 2010-10-25 21:32

我也遇到了,这个问题。期待解决方案~!
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: 无线网卡总是被禁用,请教解决方法

#10

帖子 cnkilior » 2010-10-25 21:40

1、从你ifconfig的结果来看,你的无线网卡已经被支持,所以不要再折腾驱动了。
2、好好描述你的问题!
有截图最好,怕你说不清楚。
3、我现在在猜测,你是不是用了其他的工具来管理网络链接,导致nm不能管理,故而报被禁用了

所以,请你再更清楚的描述你的问题,能有截图最好了。
sheji
帖子: 431
注册时间: 2008-04-30 21:40

Re: 无线网卡总是被禁用,请教解决方法

#12

帖子 sheji » 2010-10-26 2:08

问题总算是“半”解决了——总算可以上网了。
我的经验是对的,这不是驱动的问题,而是系统的“毛病”。
找遍网络,只有这些方法有价值:关于“开关几次网卡电源(就是硬激活无线网卡)”“狂按 Fn+F1(就是软激活无线网卡)”。

我实际100%有效的方法是:启动系统后,如果没有自动连接上(不管无线状态是打开的还是禁用的,反正这种状态怎么设置最终还是会变成被禁用的状态),就“狂按 Fn+F1”(不要一次一次文雅的按,就按几秒算一次,多按它几次,这似乎不符合翘板开关特性,反正用它来刺激网卡就对了),松开手等一会儿,就会发现它开始动作了——自动查找和登录。

此后,有时候系统启动后会自动连上,但有时候还是要靠“狂按”——这个等于没说。
acoolbid
帖子: 21
注册时间: 2008-01-02 11:12

Re: 无线网卡总是被禁用,请教解决方法

#13

帖子 acoolbid » 2011-02-09 15:11

sheji 写了:问题总算是“半”解决了——总算可以上网了。
我的经验是对的,这不是驱动的问题,而是系统的“毛病”。
找遍网络,只有这些方法有价值:关于“开关几次网卡电源(就是硬激活无线网卡)”“狂按 Fn+F1(就是软激活无线网卡)”。

我实际100%有效的方法是:启动系统后,如果没有自动连接上(不管无线状态是打开的还是禁用的,反正这种状态怎么设置最终还是会变成被禁用的状态),就“狂按 Fn+F1”(不要一次一次文雅的按,就按几秒算一次,多按它几次,这似乎不符合翘板开关特性,反正用它来刺激网卡就对了),松开手等一会儿,就会发现它开始动作了——自动查找和登录。

此后,有时候系统启动后会自动连上,但有时候还是要靠“狂按”——这个等于没说。
我反复折腾了两天,网卡驱动和wicd、madwifi之类的东西不知道重装了多少次都没搞好的问题居然看到这段话后简单就搞定了。事实胜于雄辩,linux要想为更多的人熟知还要努力啊
回复