Environmental description
System: centos7 (3.10.0)
Driver version: 00014996-rtl8192eu_linux_v5.6.3.1_34030_COEX20171113-0047.20190613.zip
Network card: Realtek rtl8192eu
Error log
In file included from /home/w1206/RTL8192EU_linux_v5.6.3.1_34030_COEX20171113-0047.20190613/driver/rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/include/osdep_service_linux.h:93:0,
from /home/w1206/RTL8192EU_linux_v5.6.3.1_34030_COEX20171113-0047.20190613/driver/rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/include/osdep_service.h:50,
from /home/w1206/RTL8192EU_linux_v5.6.3.1_34030_COEX20171113-0047.20190613/driver/rtl8192EU_WiFi_linux_v5.6.3.1_34030.20190613_COEX20171113-0047/include/drv_types.h:27,
from /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:17:
include/net/cfg80211.h:5502: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/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:1130:4: error: too many arguments to function ‘cfg80211_roamed’
, GFP_ATOMIC);
^
Solution:
Modify IOCTL_cfg80211.C Documents
@@ -1036,7 +1046,7 @@
#ifdef CONFIG_P2P
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) //change by wellnw 20211213
struct cfg80211_roam_info roam_info ={};
#endif
@@ -1109,7 +1119,7 @@
notify_channel = ieee80211_get_channel(wiphy, freq);
#endif
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) //change by wellnw 20211213
roam_info.bssid = cur_network->network.MacAddress;
roam_info.req_ie = pmlmepriv->assoc_req + sizeof(struct rtw_ieee80211_hdr_3addr) + 2;
roam_info.req_ie_len = pmlmepriv->assoc_req_len - sizeof(struct rtw_ieee80211_hdr_3addr) - 2;
Read More:
- [Solved] ioctl_cfg80211.c:1141:45: error: ‘struct wireless_dev’ has no member named ‘sme_state’
- How to Solve C++ Error: “no matching function for call to ‘atoi/atof’”
- linux C called object ‘maze’ is not a function or function pointer printf(“%d\t“, maze(i, j))
- VMware: vmw_ ioctl_ Command error invalid parameter [How to Solve]
- How to Solve Android Linux5.10 Kernel do_gettimeofday Function Error
- [Solved] Linux C++ warning: ISO C++ forbids converting a string constant to ‘char*‘ [-Wwrite-strings]
- [Solved] Compose error “HTTP request took too long to complete“
- [Solved] git error: unable to create file Filename too long
- [Solved] FATAL CONFIG FILE ERROR: Bad directive or wrong number of arguments
- Linux system service command error: Failed to allocate directory watch: Too many open files
- How to Solve Git Filename too long Error
- [Solved] minio Failed to Upload File Error: The difference between the request time and the server‘s time is too large.
- The semget function error: errno is set to 28 [How to Solve]
- Sublime text 3 compiles and executes C/C++ programs directly
- [Solved] Ubuntu Eclipse C/C++ Error: launch failed.binary not found
- MAC: Clion configure C compiler Error: The C compiler identification is unknown
- Es Container Error: too many open files [How to Solve]
- Vector series in actual C + +_ To_ fit()
- [How to Solve] Too many authentication failures for xxxx_username
- [Solved] libvirtd Error: virNetServerAddClient:271 : Too many active clients