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

 

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

 

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

1 # lspci 

2 02:00.0 Network controller: Ralink corp. Device 3290

 

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=0



ap_scan=1



# WPA-PSK

network={

    ssid="TPLink1"

    #bssid=74:EA:3A:19:D9:3A

    key_mgmt=WPA-PSK

    pairwise=CCMP

    group=CCMP

    psk="123456"

    priority=2

}

 

7. 启动脚本

#!/bin/bash

# This script is used for config the wireless to

# connect CHX_DORM

#



kill -9 $(ps -ef|grep -E 'dhclient|wpa' | awk '$0 !~ /grep/ {print $2}') 2> /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

ping www.baidu.com -c 1 > /dev/null

if [ $? == 0 ]; then

    echo "success."

    exit 0

else

    echo "failed."

    exit 1

fi

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

 

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

 

 

 

 

你可能感兴趣的:(linux)