McMCCRU / rtl8188gu

Driver for Linux RTL8188GU (RTL8710B) (VID:PID = 0x0BDA:0xB711)
318 stars 109 forks source link

make Errors related to ioctl_cfg80211.c and cfg80211.h on CentOS 7.9 #69

Open merfii opened 6 months ago

merfii commented 6 months ago

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.10.0-1160.114.2.el7.x86_64/build M=/home/qida/rtl8188gu modules make[1]: Entering directory `/usr/src/kernels/3.10.0-1160.114.2.el7.x86_64' CC [M] /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.o /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_spt_band_free’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:498:24: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function) if (spt_band->band == IEEE80211_BAND_2GHZ) { ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:498:24: note: each undeclared identifier is reported only once for each function it appears in /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:506:31: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function) } else if (spt_band->band == IEEE80211_BAND_5GHZ) { ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ibss_indicate_connect’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:895:2: warning: passing argument 3 of ‘cfg80211_ibss_joined’ makes pointer from integer without a cast [enabled by default] cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC); ^ In file included from /home/qida/rtl8188gu/include/osdep_service_linux.h:93:0, from /home/qida/rtl8188gu/include/osdep_service.h:47, from /home/qida/rtl8188gu/include/drv_types.h:27, from /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17: include/net/cfg80211.h:5906:6: note: expected ‘struct ieee80211_channel ’ but argument is of type ‘unsigned int’ void cfg80211_ibss_joined(struct net_device dev, const u8 bssid, ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:895:2: error: too few arguments to function ‘cfg80211_ibss_joined’ cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC); ^ In file included from /home/qida/rtl8188gu/include/osdep_service_linux.h:93:0, from /home/qida/rtl8188gu/include/osdep_service.h:47, from /home/qida/rtl8188gu/include/drv_types.h:27, from /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17: include/net/cfg80211.h:5906:6: note: declared here void cfg80211_ibss_joined(struct net_device dev, const u8 bssid, ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1006:4: warning: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type [enabled by default] , GFP_ATOMIC); ^ In file included from /home/qida/rtl8188gu/include/osdep_service_linux.h:93:0, from /home/qida/rtl8188gu/include/osdep_service.h:47, from /home/qida/rtl8188gu/include/drv_types.h:27, from /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17: include/net/cfg80211.h:6477:6: note: expected ‘struct cfg80211_roam_info ’ but argument is of type ‘struct ieee80211_channel ’ void cfg80211_roamed(struct net_device dev, struct cfg80211_roam_info info, ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1006:4: warning: passing argument 3 of ‘cfg80211_roamed’ makes integer from pointer without a cast [enabled by default] , GFP_ATOMIC); ^ In file included from /home/qida/rtl8188gu/include/osdep_service_linux.h:93:0, from /home/qida/rtl8188gu/include/osdep_service.h:47, from /home/qida/rtl8188gu/include/drv_types.h:27, from /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17: include/net/cfg80211.h:6477:6: note: expected ‘gfp_t’ but argument is of type ‘unsigned char ’ void cfg80211_roamed(struct net_device dev, struct cfg80211_roam_info info, ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1006:4: error: too many arguments to function ‘cfg80211_roamed’ , GFP_ATOMIC); ^ In file included from /home/qida/rtl8188gu/include/osdep_service_linux.h:93:0, from /home/qida/rtl8188gu/include/osdep_service.h:47, from /home/qida/rtl8188gu/include/drv_types.h:27, from /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17: include/net/cfg80211.h:6477:6: note: declared here void cfg80211_roamed(struct net_device dev, struct cfg80211_roam_info info, ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_disconnect’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1086:12: error: ‘struct wireless_dev’ has no member named ‘sme_state’ if (pwdev->sme_state == CFG80211_SME_CONNECTING) { ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1086:27: error: ‘CFG80211_SME_CONNECTING’ undeclared (first use in this function) if (pwdev->sme_state == CFG80211_SME_CONNECTING) { ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1090:19: error: ‘struct wireless_dev’ has no member named ‘sme_state’ } else if (pwdev->sme_state == CFG80211_SME_CONNECTED) { ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1090:34: error: ‘CFG80211_SME_CONNECTED’ undeclared (first use in this function) } else if (pwdev->sme_state == CFG80211_SME_CONNECTED) { ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1092:4: error: too few arguments to function ‘cfg80211_disconnected’ rtw_cfg80211_disconnected(pwdev, reason, NULL, 0, locally_generated, GFP_ATOMIC); ^ In file included from /home/qida/rtl8188gu/include/osdep_service_linux.h:93:0, from /home/qida/rtl8188gu/include/osdep_service.h:47, from /home/qida/rtl8188gu/include/drv_types.h:27, from /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17: include/net/cfg80211.h:6510:6: note: declared here void cfg80211_disconnected(struct net_device dev, u16 reason, ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_get_station’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1954:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function) sinfo->filled |= STATION_INFO_SIGNAL; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1957:20: error: ‘STATION_INFO_TX_BITRATE’ undeclared (first use in this function) sinfo->filled |= STATION_INFO_TX_BITRATE; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1960:20: error: ‘STATION_INFO_RX_PACKETS’ undeclared (first use in this function) sinfo->filled |= STATION_INFO_RX_PACKETS; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1963:20: error: ‘STATION_INFO_TX_PACKETS’ undeclared (first use in this function) sinfo->filled |= STATION_INFO_TX_PACKETS; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:1966:26: error: ‘STATION_INFO_TX_FAILED’ undeclared (first use in this function) sinfo->filled |= STATION_INFO_TX_FAILED; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_scan_done’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:2174:4: error: incompatible type for argument 2 of ‘cfg80211_scan_done’ cfg80211_scan_done(pwdev_priv->scan_request, aborted); ^ In file included from /home/qida/rtl8188gu/include/osdep_service_linux.h:93:0, from /home/qida/rtl8188gu/include/osdep_service.h:47, from /home/qida/rtl8188gu/include/drv_types.h:27, from /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17: include/net/cfg80211.h:5475:6: note: expected ‘struct cfg80211_scan_info ’ but argument is of type ‘bool’ void cfg80211_scan_done(struct cfg80211_scan_request request, ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_sta_assoc’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:3789:18: error: ‘STATION_INFO_ASSOC_REQ_IES’ undeclared (first use in this function) sinfo.filled = STATION_INFO_ASSOC_REQ_IES; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_dump_station’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:4718:19: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function) sinfo->filled |= STATION_INFO_SIGNAL; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_preinit_wiphy’: /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:7249:18: error: ‘WIPHY_FLAG_SUPPORTS_SCHED_SCAN’ undeclared (first use in this function) wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN; ^ /home/qida/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:7260:16: error: incompatible types when assigning to type ‘const struct wiphy_wowlan_support ’ from type ‘const struct wiphy_wowlan_support’ wiphy->wowlan = wowlan_stub;

merfii commented 6 months ago

maybe CentOS 7.9.2009 has replaced file 'cfg80211.h'. It differs from what it should be in kernel source 3.10.0