Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too few arguments to function ‘cfg80211_ch_switch_notify’ #255

Open
thahn01 opened this issue Oct 12, 2022 · 2 comments
Open

too few arguments to function ‘cfg80211_ch_switch_notify’ #255

thahn01 opened this issue Oct 12, 2022 · 2 comments

Comments

@thahn01
Copy link

thahn01 commented Oct 12, 2022

CC [M] /var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/rtw_cfgvendor.o
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c:478:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
478 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/rtl8812au/5.13.6/build/include/osdep_service_linux.h:98,
from /var/lib/dkms/rtl8812au/5.13.6/build/include/osdep_service.h:54,
from /var/lib/dkms/rtl8812au/5.13.6/build/include/drv_types.h:27,
from /var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-5.19.0-2-common/include/net/cfg80211.h:7967:6: note: declared here
7967 | void cfg80211_ch_switch_notify(struct net_device dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c: At top level:
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c:10415: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]
10415 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c:10415:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c:10459:24: error: initialization of ‘int (
)(struct wiphy *, struct wireless_dev *, unsigned int, struct cfg80211_chan_def )’ from incompatible pointer type ‘int ()(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10459 | .get_channel = cfg80211_rtw_get_channel,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c:10459:24: note: (near initialization for ‘rtw_cfg80211_ops.get_channel’)
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.c:10695:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
10695 | if (wdev->current_bss) {
| ^~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-5.19.0-2-common/scripts/Makefile.build:254: /var/lib/dkms/rtl8812au/5.13.6/build/os_dep/linux/ioctl_cfg80211.o] Error 1

@haodaweng
Copy link

@thahn01 have you got a solution for this?

@thahn01
Copy link
Author

thahn01 commented May 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@haodaweng @thahn01 and others