使用的是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.bz23、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=y4、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_VERSION5、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 make7、
sudo make install然后
ifconfig 查看可以看到出现新的接口ra0
这样就可以无线上网了