首页 > 代码库 > Ralink RT3290无线网卡驱动安装 (linux)
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.mkHAS_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.dOTHER_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_supplicantctrl_interface_group=0ap_scan=1# WPA-PSKnetwork={ 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#ifconfig ra0 upiwconfig ra0 essid "CHX_DORM"iwconfig ra0 mode Managed#wpa_supplicant -B -ira0 -c /etc/wpa_supplicant/wpa_supplicant.conf service wpa_supplicant start > /dev/nulldhclient ra0ping www.baidu.com -c 1 > /dev/nullif [ $? == 0 ]; then echo "success."else echo "failed."fi
8. 参考
(1) http://askubuntu.com/questions/253632/how-do-i-get-a-ralink-rt3290-wireless-card-working
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。