ioctl_cfg80211.c:1025:2: error: too few arguments to function ‘cfg80211_ibss_joined’
环境说明
系统:Centos7 (3.10.0)
驱动版本:00014996-RTL8192EU_linux_v5.6.3.1_34030_COEX20171113-0047.20190613.zip
网卡:Realtek RTL8192EU
错误log
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
@@ -1015,7 +1025,7 @@RTW_PRINT(FUNC_ADPT_FMT" BSS not found !!\n", FUNC_ADPT_ARG(padapter));}/* notify cfg80211 that device joined an IBSS */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)) //change by wellnw 20211213freq = rtw_ch2freq(cur_network->network.Configuration.DSConfig);if (1)RTW_INFO("chan: %d, freq: %d\n", cur_network->network.Configuration.DSConfig, freq);
驱动代码完整修改链接
Centos7(3.10.0内核)编译rtl8192EU WiFi driver v5.6.3.1出现 error: ‘IEEE80211_NUM_BANDS’ undeclared here修改方案_wgl307293845的博客-CSDN博客
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
