Ralink RT3290无线网卡驱动安装 (linux)

Ralink RT3290无线网卡驱动安装
(linux, 笔记备忘)

1. 设备信息
查看无线网卡设备信息

 # lspci
 :

2. 驱动下载
http://pan.baidu.com/s/1sjsHNgp

3. 解压,修改,编译,安装
(1) 编辑解压后的 DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/目录中的 config.mk
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
修改为
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

(2) make

(3) make install

4. 配置模块别名
添加 /etc/modprobe.d/wireless.conf 文件,内容如下:
alias ra0 rt3290sta

5. /etc/sysconfig/wpa_supplicant

# Use the flag "-i" before each of your interfaces, like so:
#  INTERFACES="-ieth1 -iwlan0"
INTERFACES="-ira0"

# Use the flag "-D" before each driver, like so:
DRIVERS="-Dwext"
#  DRIVERS=""

# Other arguments
#   -u   Enable the D-Bus interface (required for use with NetworkManager)
#   -f   Log to /var/log/wpa_supplicant.log
#   -P   Write pid file to /var/run/wpa_supplicant.pid
#        required to return proper codes by init scripts (e.g. double "start" action)
#        -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"

6. /etc/wpa_supplicant/wpa_supplicant.conf (WPA-PSK)

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=

ap_scan=

# WPA-PSK
network={
    ssid="TPLink1"
    #bssid=:EA:3A::D9:3A
    key_mgmt=WPA-PSK
    pairwise=CCMP
    group=CCMP
    psk="
    priority=
}

7. 启动脚本

#!/bin/bash
# This script is used for config the wireless to
# connect CHX_DORM
#

 $(> /dev/null

ifconfig ra0 up
#iwconfig ra0 essid "CHX_DORM"
#iwconfig ra0 essid "YHEM"
#iwconfig ra0 mode Managed
#wpa_supplicant -B -ira0 -c /etc/wpa_supplicant/wpa_supplicant.conf
service wpa_supplicant start > /dev/null
dhclient ra0
 > /dev/null
 ]; then
    echo "success."
    exit
else
    echo "failed."
    exit
fi

把该启动脚本加入 /etc/rc.local

8. 参考
(1) http://askubuntu.com/questions/253632/how-do-i-get-a-ralink-rt3290-wireless-card-working

上一篇:普通用户在命令终端使用Python脚本连入校园网


下一篇:C语言数据结构----双向链表