linux下几款usb无线网卡的使用
我最近要在龙芯福龙的盒子上使用无线网卡,盒子的接口很少,可以用的只有usb接口。市面上的usb无线网卡很多,下面只是几个简单的例子:
1:TP-LINK TL-WN322G+ 54M无线usb网卡
ubuntu默认是支持此芯片的,可以不用以下的内核编译和固件安装,
内核编译:
这个网卡的芯片组是ZyDAS ZD1211/ZD1211B wireless chip,在内核中要选上相关驱动:
? ZyDAS ZD1211/ZD1211B USB-wireless support
Prompt: ZyDAS ZD1211/ZD1211B USB-wireless support
Depends on: NETDEVICES && !S390 && USB && MAC80211 && WLAN_80211 && E
Location:
-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> Wireless LAN
-> Wireless LAN (IEEE 802.11) (WLAN_80211 [=y])
安装firmware:
下载firmware
http://www.doczj.com/doc/f54a9e711711cc7931b71661.html/zd1211/zd1211-firmware-1.4.tar.bz2?modtime=1191498990&big_mirror=0
#tar xjf zd1211-firmware-1.4.tar.bz2
#cd zd1211-firmware-1.4
#mkdir /lib/firemware
#mkdir /lib/firemware/zd1211
#cp zd1211_* /lib/firmware/zd1211
固件安装和内核支持此芯片后,插入WL—322G+后,
#dmesg|tail
[ 5524.635299] usb 2-2: configuration #1 chosen from 1 choice
[ 5524.682688] ieee80211_crypt: registered algorithm 'NULL'
[ 5524.690262] ieee80211: 802.11 data/management/control stack, git-1.1.13
[ 5524.690267] ieee80211: Copyright (C) 2004-2005 Intel Corporation [ 5524.758491] usb 2-2: reset high speed USB device using ehci_hcd and address 2
[ 5524.818906] zd1211rw 2-2:1.0: eth1
[ 5524.819254] usbcore: registered new interface driver zd1211rw
[ 5524.832634] udev: renamed network interface eth1 to eth2
[ 5524.911263] zd1211rw 2-2:1.0: firmware version 4725
[ 5524.929430] zd1211rw 2-2:1.0: zd1211b chip 0ace:1215 v4810 high 00-1d-0f UW2453_RF pa0
机器已经识别了,可以使用了。
不过同其它的有线网卡使用不同,它要用wireless-tools来管理,
#apt-get install wireless-tools
#ifconfig eth1 up
#iwlist eth1 scan
eth1 Scan completed :
Cell 04 - Address: 00:E0:FC:3D:E2:6E
ESSID:"HUAWEI"
Protocol:IEEE 802.11b
Mode:Master
Frequency:2.437 GHz (Channel 6)
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Quality=100/100 Signal level=35/100
Extra: Last beacon: 328ms ago
#iwconfig eth1 essid HUAWEI mode managed
#iwconfig eth1