无线网络Linux RT73 TL_WN321G USB

几乎费了两天时间来捣鼓这个Wireless,在Winxp上装上驱动就可以用了。但是Linux确实很麻烦,这就是为什么linux到现在无法普及的一个原因。
有人说,你根本不会装,你根本不会用。我只想啐你一句:“操你妈!”不说废话了。为了安装Wireless, 网络搜索了一大些,增长了在Linux下Wireless配置,
但是基本上没帮上什么忙。所以我要写个完整的过程。这篇适合FC8 X86_64的机器

Fedora Core 8 RT73 Wireless USB Tutorial:

yum install kernel kernel-devel gcc make

D-Link : DSL-G604T
USB Wireless Network : TL-WN321G  USB

Firstly, you need download the official driver from here: RT2501USB(RT73:RT2571W/RT2573/RT2671)

# cp RT73_Linux_STA_Drv1.0.4.0.tar.gz /tmp/
# cd /tmp/
# tar
zxvf RT73_Linux_STA_Drv1.0.4.0.tar.gz
# cd /tmp/RT73_Linux_STA_Drv1.0.4.0/Module/
# cp Makefile.6 ./Makefile

# make all ( officially asks to use make all, but what I think, it’s better to use make && make install)
(Your Option # make && make install)

———————————————————————————–
Once u used make install, u would see following output

[root@localhost Module]# make install

make -C /lib/modules/2.6.23.9-85.fc8/build
        INSTALL_MOD_DIR=extra SUBDIRS=/tmp/RT73_Linux_STA_Drv1.0.4.0/Module
        modules_install
make[1]: Entering directory `/usr/src/kernels/2.6.23.9-85.fc8-x86_64′
  INSTALL /tmp/RT73_Linux_STA_Drv1.0.4.0/Module/rt73.ko
  DEPMOD  2.6.23.9-85.fc8
make[1]: Leaving directory `/usr/src/kernels/2.6.23.9-85.fc8-x86_64′
Network device directory /etc/sysconfig/network-scripts
Module configuration file /etc/modprobe.conf
Create ‘ifcfg-rausb0′ in /etc/sysconfig/network-scripts/
append ‘alias rausb0 rt73′ to /etc/modprobe.conf
/sbin/depmod -a

——————————————————————————-

# mkdir /etc/Wireless

# mkdir /etc/Wireless/RT73STA/

# cp rt73.bin /etc/Wireless/RT73STA/

# dos2unix rt73sta.dat

# cp rt73sta.dat /etc/Wireless/RT73STA/rt73sta.dat
# cp ifcfg-rausb0 /etc/sysconfig/network-scripts/

# vi /etc/Wireless/RT73STA/rt73sta.dat

[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=0
SSID=Your_Wireless Name
NetworkType=Infra
Channel=6
AuthMode=WPAPSK
EncrypType=TKIP
DefaultKeyID=1
Key1Type=0
Key1Str=Your Password
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
WPAPSK=
the WPAPSK Passworkd
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

if u r unsure how to edit this section, u need to read here
/tmp/RT73_Linux_STA_Drv1.0.4.0/Module/README

———————————————————-

[root@localhost Module]# ifconfig rausb0 10.1.1.20 up
[root@localhost Module]# iwconfig
lo        no wireless extensions.

eth1      no wireless extensions.

eth0      no wireless extensions.

rausb0    RT73 WLAN  ESSID:off/any 
          Mode:Auto  Channel=1  Bit Rate=54 Mb/s  
          RTS thr:off   Fragment thr:off
          Encryption key:off

———————————————————–

unfortunately,  iwconfig rausb0 scan failed. i dont known why, but it works at background.
[root@localhost Module]# iwlist rausb0 scan
rausb0    Interface doesn’t support scanning.

———————————————————-

iwconfig to check if your Wireless card has been recognized or not

[root@localhost Module]# iwconfig
lo        no wireless extensions.

eth1      no wireless extensions.

eth0      no wireless extensions.

rausb0    RT73 WLAN  ESSID:"Your_Wireless Name" 
          Mode:Managed  Channel=6  Access Point: 00:1B:11:15:01:73  
          Bit Rate=54 Mb/s  
          RTS thr:off   Fragment thr:off
          Encryption key:xxx-xxx-xxx-xxx-xxx-xxx

if Encryption key:off , u need to use this to make the wireless connect to the Router

iwconfig rausb0 key s:Your_password

——————————————————————————-

Put these unacceptable modules to blacklist
#vi /etc/modprobe.d/blacklist

blacklist rt2×00lib
blacklist rt2×00usb
blacklist rt73usb

——————————————————————————–
# vi /etc/sysconfig/network-scripts/ifcfg-rausb0

DEVICE=rausb0
ONBOOT=yes
HWADDR=Your MAC Address
BOOTPROTO=dhcp
PEERDNS=no

## Confirm your AP supports dhcp or connects up the ethernet
## before set-up as a dynamic IP
#BOOTPROTO=dhcp

NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
TYPE=Wireless
ESSID=Your Wirless Name
CHANNEL=6
MODE=Master
RATE=Auto
USERCTL=no
IPV6INIT=no

———————————————————————

#vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=localhost.localdomain
NOZEROCONF=yes   (ensure you have this)
———————————————————————-

also u can use

ifup or ifdown to switch on or off the network.

———————————————————————-

it should work then

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s