环境说明
系统:Centos7 (3.10.0)
驱动版本:00014996-RTL8192EU_linux_v5.6.3.1_34030_COEX20171113-0047.20190613.zip
网卡:Realtek RTL8192EU
错误log
/home/w1206/RTL8192EU_linux_v5.6.3.1_34030_COEX20171113-0047.20190613/driver/rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/os_dep/linux/ioctl_cfg80211.c:2260:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_SIGNAL;
^
解决方案
修改ioctl_cfg80211.c文件,在开头增加以下代码
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)) //add by wellnw 20211213
+#define STATION_INFO_SIGNAL BIT(NL80211_STA_INFO_SIGNAL)
+#endif /* Linux kernel >= 3.10.0*/