- 论坛徽章:
- 1
|
小巧的usb无线网卡,默认安装一路畅通!没有密码的essid链接也能上网。没有了没有密码的essid链接,想用我们自己的带密码的essid上网,结果就怎么也连不上了。我在网上搜寻觉得是wpa_supplicant的问题,可是不会解决。希望高手指点一二!
# lsusb
Bus 006 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 004: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 001: ID 0000:0000
Bus 008 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 002: ID 413c:2107 Dell Computer Corp.
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 003: ID 0461:4d81 Primax Electronics, Ltd
# lsmod|grep rt
exportfs 38849 1 nfsd
scsi_transport_iscsi2 73945 8
be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2
scsi_transport_iscsi 35017 1 scsi_transport_iscsi2
rt5370sta 721352 1
parport_pc 62313 1
parport 73165 2 lp,parport_pc
scsi_mod 199129 12
be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2,scsi_transport_iscsi2,scsi_dh,sr_mod,sg,libata,sd_mod
usb无线网卡是RT2807/RT3070,默认加载出来的却是rt5370sta。
# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
ra0 Ralink STA ESSID:"11n-AP" Nickname:"RT2870STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate=1 Mb/s
RTS thr ff Fragment thr ff
Encryption key ff
Link Quality=10/100 Signal level:-256 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
到这一步就更郁闷了!我明明用的是:
# iwconfig ra0 essid "ZBD-2F" key 8888-8888
好吧!
# pkill wpa_supplicant
# wpa_supplicant -B -Dwext -ira0 -c/etc/wpa_supplicant/wpa_supplicant.conf -d
Initializing interface 'ra0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='wheel' (DEPRECATED)
update_config=1
Priority group 0
id=0 ssid='any'
Initializing interface (2) 'ra0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
(wext) Device ra0 kernel driver name: usb.
ioctl[SIOCSIWPMKSA]: Network is down
ioctl[SIOCSIWMODE]: Network is down
Could not configure driver to use managed mode
SIOCGIWRANGE: WE(compiled)=20 WE(source)=14 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:25:22:43:6b:80
wpa_driver_wext_set_wpa
Device ra0 kernel driver name: usb.
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
ctrl_interface_group=10 (from group name 'wheel')
Added interface ra0
Daemonize..
然后,再用
# iwconfig ra0 essid "ZBD-2F" key 8888-8888
结果还是一样!
# iwpriv ra0 connStatus
ra0 connStatus isconnected
# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
ra0 Ralink STA ESSID:"11n-AP" Nickname:"RT2870STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate=1 Mb/s
RTS thr ff Fragment thr ff
Encryption key ff
Link Quality=10/100 Signal level:-256 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
我想 卸载重新安装:
#rmmod rt5370sta
ERROR:Module rt5370sta is in use
网都没有上,怎么都删不掉呢?
请高手指点!
谢谢! |
|