U12驱动官方下载:http://wifi.tenda.com.cn/
我的CentOS7内核:
3.10.0-862.9.1.el7.x86_64(满足2.6.18~4.4内核)
在执行make命令时报错:
由于字数限制,详细信息:链接https://pan.baidu.com/s/1DQsJyRuLPDxlwBLc2S39Aw 密码:tcrj
关键错误信息:
/root/U12_linux_v5.1.5_19247.20160830/driver/rtl8812AU_linux_v5.1.5_19247.20160830/os_dep/linux/ioctl_cfg80211.c:87:13: 错误:‘IEEE80211_BAND_2GHZ’未声明(不在函数内) .band = IEEE80211_BAND_2GHZ, \ ^ /root/U12_linux_v5.1.5_19247.20160830/driver/rtl8812AU_linux_v5.1.5_19247.20160830/os_dep/linux/ioctl_cfg80211.c:145:2: 附注:in expansion of macro ‘CHAN2G’ CHAN2G(1, 2412, 0), ^ /root/U12_linux_v5.1.5_19247.20160830/driver/rtl8812AU_linux_v5.1.5_19247.20160830/os_dep/linux/ioctl_cfg80211.c:96:13: 错误:‘IEEE80211_BAND_5GHZ’未声明(不在函数内) .band = IEEE80211_BAND_5GHZ, \ ^ /root/U12_linux_v5.1.5_19247.20160830/driver/rtl8812AU_linux_v5.1.5_19247.20160830/os_dep/linux/ioctl_cfg80211.c:162:2: 附注:in expansion of macro ‘CHAN5G’ CHAN5G(34, 0), CHAN5G(36, 0), ^ /root/U12_linux_v5.1.5_19247.20160830/driver/rtl8812AU_linux_v5.1.5_19247.20160830/os_dep/linux/ioctl_cfg80211.c:162:2: 错误:初始值设定元素不是常量
解决方法:http://www.cnblogs.com/feiquan/p/9333719.html