在linux下安装TPLINK无线网卡驱动

使用的是TP-LINK出的TL-WDN3321,官网上只有windows下的驱动

万事问谷歌,它依然没有让我失望,方法如下

从http://www.ctheroux.com/publicfiles/DPO_RT5572_LinuxSTA_2.6.0.1_20120629_EDITED.tar.bz2.bz2下下载驱动

然后按下面的方法安装

1、cd /home/myuser/Downloads
2、tar xvf DPO_RT5572_LinuxSTA_2.6.0.1_20120629.tar.bz2.bz2
3、Edit the file os/linux/config.mk.  Set to y the two variables  HAS_WPA_SUPPLICANT and  HAS_NATIVE_WPA_SUPPLICANT_SUPPORT.  Your file shall shows
# Support Wpa_Supplicant
# i.e. wpa_supplicant -Dralink
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
# i.e. wpa_supplicant -Dwext
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
4、Edit the file os/linux/usb_main_dev.c. Add a line containing MODULE_LICENSE(“GPL”);. This line is important. The position of the line is important. Your file shall shows
MODULE_DESCRIPTION("RT2870 Wireless Lan Linux Driver");
MODULE_LICENSE("GPL");
#ifdef CONFIG_STA_SUPPORT
#ifdef MODULE_VERSION
5、Edit the file common/cmm_mac_usb.c and add the lines “ #define usb_buffer_alloc(a, b, c, d) usb_alloc_coherent(a, b, c, d)” and “ #define usb_buffer_free(a, b, c, d) usb_free_coherent(a, b, c, d)“. The position of the lines is important. Your file shall shows
#ifdef RTMP_MAC_USB

#define usb_buffer_alloc(a, b, c, d) usb_alloc_coherent(a, b, c, d)
#define usb_buffer_free(a, b, c, d) usb_free_coherent(a, b, c, d)

#include        "rt_config.h"
6、
sudo make
7、
sudo make install
然后

ifconfig 查看可以看到出现新的接口ra0

这样就可以无线上网了

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值