1、下载驱动程序,解压缩
Realtek瑞昱RTL8192SU/RTL8188SU/RTL8191SU/RTL8712SU无线网卡驱动6.0.20101111版For Linux(2011年2月12日发布)
http://drivers.mydrivers.com/download/420-168230-Realtek-RTL8192SU-RTL8188SU-RTL8191SU-RT/
2、修改os_intf/osdep_service.c
将init_mutex(prwlock);改为sema_init(prwlock,1);,因为前面的函数在新的核心中已经被废除了
3、make
4、Makefile第11行,include $(TOPDIR)/config修改为include config
51行去掉$(src)/和$(PWD)/
ifeq ($(CONFIG_BUILT_IN), y)
$(shell cp $(src)/autoconf_$(RTL871X)_usb_linux.h $(src)/include/autoconf.h)
else
$(shell cp $(PWD)/autoconf_$(RTL871X)_usb_linux.h $(PWD)/include/autoconf.h)
endif
改为
ifeq ($(CONFIG_BUILT_IN), y)
$(shell cp autoconf_$(RTL871X)_usb_linux.h include/autoconf.h)
else
$(shell cp autoconf_$(RTL871X)_usb_linux.h include/autoconf.h)
endif
5、sudo make install
6、sudo modprobe 8712u
参考文章http://www.linuxidc.com/Linux/2010-05/25861.htm