错误一:error: ‘IEEE80211_BAND_5GHZ’ undeclared here (not in a function)
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/include/../os_dep/linux/ioctl_cfg80211.h:414:27: error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function)
#define NL80211_BAND_2GHZ IEEE80211_BAND_2GHZ
^
错误二:ioctl_cfg80211.h:415:27: error: ‘IEEE80211_BAND_5GHZ’ undeclared here (not in a function)
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/include/../os_dep/linux/ioctl_cfg80211.h:415:27: error: ‘IEEE80211_BAND_5GHZ’ undeclared here (not in a function)
#define NL80211_BAND_5GHZ IEEE80211_BAND_5GHZ
^
错误三:ioctl_cfg80211.h:419:27: error: ‘IEEE80211_NUM_BANDS’ undeclared (first use in this function)
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/include/../os_dep/linux/ioctl_cfg80211.h:419:27: error: ‘IEEE80211_NUM_BANDS’ undeclared (first use in this function)
#define NUM_NL80211_BANDS IEEE80211_NUM_BANDS
^
错误四:ioctl_cfg80211.c:1025:2: error: too few arguments to function ‘cfg80211_ibss_joined’
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/os_dep/linux/ioctl_cfg80211.c:1025:2: error: too few arguments to function ‘cfg80211_ibss_joined’
cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC);
错误五: ioctl_cfg80211.c:1130:4: error: too many arguments to function ‘cfg80211_roamed’
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/os_dep/linux/ioctl_cfg80211.c:1130:4: error: too many arguments to function ‘cfg80211_roamed’
, GFP_ATOMIC);
^
错误六:ioctl_cfg80211.c:1141:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/os_dep/linux/ioctl_cfg80211.c:1141:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
RTW_INFO("pwdev->sme_state(b)=%d\n", pwdev->sme_state);
^
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/os_dep/linux/ioctl_cfg80211.c:1152:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
RTW_INFO("pwdev->sme_state(a)=%d\n", pwdev->sme_state);
^
rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/os_dep/linux/ioctl_cfg80211.c:1207:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
RTW_INFO("pwdev->sme_state(b)=%d\n", pwdev->sme_state);
^
/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:1209:12: error: ‘struct wireless_dev’ has no member named ‘sme_state’
if (pwdev->sme_state == CFG80211_SME_CONNECTING) {
^
/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:1209:27: error: ‘CFG80211_SME_CONNECTING’ undeclared (first use in this function)
if (pwdev->sme_state == CFG80211_SME_CONNECTING) {
^
/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:1213:19: error: ‘struct wireless_dev’ has no member named ‘sme_state’
} else if (pwdev->sme_state == CFG80211_SME_CONNECTED) {
^
/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:1213:34: error: ‘CFG80211_SME_CONNECTED’ undeclared (first use in this function)
} else if (pwdev->sme_state == CFG80211_SME_CONNECTED) {
^
错误七:ioctl_cfg80211.c:1215:4: error: too few arguments to function ‘cfg80211_disconnected’
/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:1215:4: error: too few arguments to function ‘cfg80211_disconnected’
rtw_cfg80211_disconnected(pwdev, reason, NULL, 0, locally_generated, GFP_ATOMIC);
错误八:ioctl_cfg80211.c:1218:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
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:1218:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
RTW_INFO("pwdev->sme_state(a)=%d\n", pwdev->sme_state);
^
错误九:ioctl_cfg80211.c:2260:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
/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:2263:20: error: ‘STATION_INFO_TX_BITRATE’ undeclared (first use in this function)
/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:2263:20: error: ‘STATION_INFO_TX_BITRATE’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_TX_BITRATE;
^
错误十一:ioctl_cfg80211.c:2274:20: error: ‘STATION_INFO_INACTIVE_TIME’ undeclared (first use in this function)
/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:2263:20: error: ‘STATION_INFO_TX_BITRATE’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_TX_BITRATE;
^
错误十二:ioctl_cfg80211.c:2276:20: error: ‘STATION_INFO_RX_PACKETS’ undeclared (first use in this function)
/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:2276:20: error: ‘STATION_INFO_RX_PACKETS’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_RX_PACKETS;
^
错误十三:ioctl_cfg80211.c:2278:20: error: ‘STATION_INFO_TX_PACKETS’ undeclared (first use in this function)
/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:2278:20: error: ‘STATION_INFO_TX_PACKETS’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_TX_PACKETS;
^
错误十四:ioctl_cfg80211.c:2280:20: error: ‘STATION_INFO_TX_FAILED’ undeclared (first use in this function)
/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:2280:20: error: ‘STATION_INFO_TX_FAILED’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_TX_FAILED;
错误十五:ioctl_cfg80211.c:2495:4: error: incompatible type for argument 2 of ‘cfg80211_scan_done’
/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: In function ‘rtw_cfg80211_indicate_scan_done’:
/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:2495:4: error: incompatible type for argument 2 of ‘cfg80211_scan_done’
cfg80211_scan_done(pwdev_priv->scan_request, aborted);
错误十六:ioctl_cfg80211.c:4322:18: error: ‘STATION_INFO_ASSOC_REQ_IES’ undeclared (first use in this function)
/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: In function ‘rtw_cfg80211_indicate_sta_assoc’:
/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:4322:18: error: ‘STATION_INFO_ASSOC_REQ_IES’ undeclared (first use in this function)
sinfo.filled = STATION_INFO_ASSOC_REQ_IES;
^
错误十七:ioctl_cfg80211.c:5759:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
/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: In function ‘cfg80211_rtw_dump_station’:
/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:5759:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_SIGNAL;
^
错误十八:ioctl_cfg80211.c:5761:20: error: ‘STATION_INFO_INACTIVE_TIME’ undeclared (first use in this function)
/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:5761:20: error: ‘STATION_INFO_INACTIVE_TIME’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_INACTIVE_TIME;
^
错误十九:ioctl_cfg80211.c:9477:18: error: ‘WIPHY_FLAG_SUPPORTS_SCHED_SCAN’ undeclared (first use in this function)
/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: In function ‘rtw_cfg80211_preinit_wiphy’:
/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:9477:18: error: ‘WIPHY_FLAG_SUPPORTS_SCHED_SCAN’ undeclared (first use in this function)
wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
^
错误二十:ioctl_cfg80211.c:9488:16: error: incompatible types when assigning to type ‘const struct wiphy_wowlan_support *’ from type ‘const struct wiphy_wowlan_support’
wiphy->wowlan = wowlan_stub;
/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:9488:16: error: incompatible types when assigning to type ‘const struct wiphy_wowlan_support *’ from type ‘const struct wiphy_wowlan_support’
wiphy->wowlan = wowlan_stub;
^
错误二十一:Compile make driver error: 2
/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:9887:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’) [enabled by default]
make[2]: *** [/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.o] Error 1
make[1]: *** [_module_/home/w1206/RTL8192EU_linux_v5.6.3.1_34030_COEX20171113-0047.20190613/driver/rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-862.el7.x86_64'
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
解决方案
Centos7(3.10.0内核)编译rtl8192EU WiFi driver v5.6.3.1出现 error: ‘IEEE80211_BAND_2GHZ’ undeclared here修改方案_wgl307293845的博客-CSDN博客