这篇适合FC8X86_64的机器
FedoraCore8RT73WirelessUSBTutorial:
yuminstallkernelkernel-develgccmake
D-Link:DSL-G604T
USBWirelessNetwork:TL-WN321GUSB
Firstly,youneeddownloadtheofficialdriverfromhere:RT2501USB(RT73:RT2571W/RT2573/RT2671)
#cpRT73_Linux_STA_Drv1.0.4.0.tar.gz/tmp/
#cd/tmp/
#tarzxvfRT73_Linux_STA_Drv1.0.4.0.tar.gz
#cd/tmp/RT73_Linux_STA_Drv1.0.4.0/Module/
#cpMakefile.6./Makefile
#makeall(officiallyaskstousemakeall,butwhatIthink,it''sbettertousemake&&makeinstall)
(YourOption#make&&makeinstall)
-----------------------------------------------------------------------------------
Onceuusedmakeinstall,uwouldseefollowingoutput
[root@localhostModule]#makeinstall
make-C/lib/modules/2.6.23.9-85.fc8/build\
INSTALL_MOD_DIR=extraSUBDIRS=/tmp/RT73_Linux_STA_Drv1.0.4.0/Module\
modules_install
make[1]:Enteringdirectory`/usr/src/kernels/2.6.23.9-85.fc8-x86_64''
INSTALL/tmp/RT73_Linux_STA_Drv1.0.4.0/Module/rt73.ko
DEPMOD2.6.23.9-85.fc8
make[1]:Leavingdirectory`/usr/src/kernels/2.6.23.9-85.fc8-x86_64''
Networkdevicedirectory/etc/sysconfig/network-scripts
Moduleconfigurationfile/etc/modprobe.conf
Create''ifcfg-rausb0''in/etc/sysconfig/network-scripts/
append''aliasrausb0rt73''to/etc/modprobe.conf
/sbin/depmod-a
-------------------------------------------------------------------------------
#mkdir/etc/Wireless
#mkdir/etc/Wireless/RT73STA/
#cprt73.bin/etc/Wireless/RT73STA/
#dos2unixrt73sta.dat
#cprt73sta.dat/etc/Wireless/RT73STA/rt73sta.dat
#cpifcfg-rausb0/etc/sysconfig/network-scripts/
#vi/etc/Wireless/RT73STA/rt73sta.dat
[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=0
SSID=Your_WirelessName
NetworkType=Infra
Channel=6
AuthMode=WPAPSK
EncrypType=TKIP
DefaultKeyID=1
Key1Type=0
Key1Str=YourPassword
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
WPAPSK=theWPAPSKPassworkd
TxBurst=0
PktAggregate=0
TurboRate=0
WmmCapable=0
AckPolicy=0;0;0;0
BGProtection=0
IEEE80211H=0
TxRate=12
RTSThreshold=2347
FragThreshold=2346
PSMode=CAM
TxPreamble=0
AdhocOfdm=0
FastRoaming=0
RoamThreshold=70
ifurunsurehowtoeditthissection,uneedtoreadhere
/tmp/RT73_Linux_STA_Drv1.0.4.0/Module/README
----------------------------------------------------------
[root@localhostModule]#ifconfigrausb010.1.1.20up
[root@localhostModule]#iwconfig
lonowirelessextensions.
eth1nowirelessextensions.
eth0nowirelessextensions.
rausb0RT73WLANESSID:off/any
Mode:AutoChannel=1BitRate=54Mb/s
RTSthr:offFragmentthr:off
Encryptionkey:off
-----------------------------------------------------------
unfortunately,iwconfigrausb0scanfailed.idontknownwhy,butitworksatbackground.
[root@localhostModule]#iwlistrausb0scan
rausb0Interfacedoesn''tsupportscanning.
----------------------------------------------------------
iwconfigtocheckifyourWirelesscardhasbeenrecognizedornot
[root@localhostModule]#iwconfig
lonowirelessextensions.
eth1nowirelessextensions.
eth0nowirelessextensions.
rausb0RT73WLANESSID:"Your_WirelessName"
Mode:ManagedChannel=6AccessPoint:00:1B:11:15:01:73
BitRate=54Mb/s
RTSthr:offFragmentthr:off
Encryptionkey:xxx-xxx-xxx-xxx-xxx-xxx
ifEncryptionkey:off,uneedtousethistomakethewirelessconnecttotheRouter
iwconfigrausb0keys:Your_password
-------------------------------------------------------------------------------
Puttheseunacceptablemodulestoblacklist
#vi/etc/modprobe.d/blacklist
blacklistrt2x00lib
blacklistrt2x00usb
blacklistrt73usb
--------------------------------------------------------------------------------
#vi/etc/sysconfig/network-scripts/ifcfg-rausb0
DEVICE=rausb0
ONBOOT=yes
HWADDR=YourMACAddress
BOOTPROTO=dhcp
PEERDNS=no
##ConfirmyourAPsupportsdhcporconnectsuptheethernet
##beforeset-upasadynamicIP
#BOOTPROTO=dhcp
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
TYPE=Wireless
ESSID=YourWirlessName
CHANNEL=6
MODE=Master
RATE=Auto
USERCTL=no
IPV6INIT=no
---------------------------------------------------------------------
#vi/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
NOZEROCONF=yes(ensureyouhavethis)
----------------------------------------------------------------------
alsoucanuse
ifuporifdowntoswitchonoroffthenetwork.
----------------------------------------------------------------------
itshouldworkthen
下载本文示例代码