/root/rtl8188eus/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/root/rtl8188eus/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);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/rtl8188eus/include/osdep_service_linux.h:93,
from /root/rtl8188eus/include/osdep_service.h:50,
from /root/rtl8188eus/include/drv_types.h:26,
from /root/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-5.19.0-kali2-common/include/net/cfg80211.h:7967:6: note: declared here
7967 | void cfg80211_ch_switch_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8188eus/os_dep/linux/ioctl_cfg80211.c: At top level:
/root/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:9379: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]
9379 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/root/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:9379:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/root/rtl8188eus/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/root/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:9637:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
9637 | if (wdev->current_bss) {
| ^~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-5.19.0-kali2-common/scripts/Makefile.build:254: /root/rtl8188eus/os_dep/linux/ioctl_cfg80211.o] Ошибка 1
make[1]: *** [/usr/src/linux-headers-5.19.0-kali2-common/Makefile:1870: /root/rtl8188eus] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-5.19.0-kali2-amd64»
make: *** [Makefile:2058: modules] Ошибка 2