You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is fine on my ubuntu20.04, but an error occurs on kali linux,both of them running on VmWare 16.2.4 build-20089737
Kernel version of kali:Linux kali 6.0.0-kali6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1kali1 (2022-12-19) x86_64 GNU/Linux
NIC:Realtek 8811CU Wireless LAN 802.11ac USB NIC
I wanted to fix it myself, but was not able to because of my limitations. All I know is that the problem is "too few arguments to function 'cfg80211_ch_switch_notify' "
Error details:
make[1]: Entering directory '/usr/src/linux-headers-6.0.0-kali6-amd64'
/bin/sh: 1: bc: not found
CC [M] /home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.o
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:420:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
420 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Infileincludedfrom/home/kali/Desktop/rtl8821CU/include/osdep_service_linux.h:93,
from/home/kali/Desktop/rtl8821CU/include/osdep_service.h:50,
from/home/kali/Desktop/rtl8821CU/include/drv_types.h:27,
from/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-6.0.0-kali6-common/include/net/cfg80211.h:8261:6: note: declared here
8261 | void cfg80211_ch_switch_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:1088:26: error: ‘struct cfg80211_roam_info’ has no member named ‘bssid’
1088 | roam_info.bssid = cur_network->network.MacAddress;
| ^
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_scan’:
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:2867:33: warning: the comparison will always evaluate as ‘true’ for the address of ‘ssid’ will never be NULL [-Waddress]
2867 | if (ssids->ssid != NULL
| ^~
/usr/src/linux-headers-6.0.0-kali6-common/include/net/cfg80211.h:2357:12: note: ‘ssid’ declared here
2357 | u8 ssid[IEEE80211_MAX_SSID_LEN];
| ^~~~
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9416:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
9416 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9416:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9682:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
9682 | if (wdev->current_bss) {
| ^~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.0.0-kali6-common/scripts/Makefile.build:254: /home/kali/Desktop/rtl8821CU/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.0.0-kali6-common/Makefile:1876: /home/kali/Desktop/rtl8821CU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.0.0-kali6-amd64'
make: *** [Makefile:2218: modules] Error 2
The text was updated successfully, but these errors were encountered:
It is fine on my ubuntu20.04, but an error occurs on kali linux,both of them running on VmWare 16.2.4 build-20089737
Kernel version of kali:Linux kali 6.0.0-kali6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1kali1 (2022-12-19) x86_64 GNU/Linux
NIC:Realtek 8811CU Wireless LAN 802.11ac USB NIC
I wanted to fix it myself, but was not able to because of my limitations. All I know is that the problem is "too few arguments to function 'cfg80211_ch_switch_notify' "
Error details:
The text was updated successfully, but these errors were encountered: