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

Debian 6.3.7-1 (2023-06-12) x86_64 GNU/Linux - make encounter an error #44

Open
vito-r1 opened this issue Jun 20, 2023 · 2 comments
Open

Comments

@vito-r1
Copy link

vito-r1 commented Jun 20, 2023

Linux 6.3.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.7-1 (2023-06-12) x86_64 GNU/Linux

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.3.0-1-amd64/build M=/root/RTL8812BU modules
make[1]: Entering directory '/usr/src/linux-headers-6.3.0-1-amd64'
CC [M] /root/RTL8812BU/os_dep/linux/ioctl_cfg80211.o
/root/RTL8812BU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/root/RTL8812BU/os_dep/linux/ioctl_cfg80211.c:468:17: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
468 | cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/RTL8812BU/include/osdep_service_linux.h:98,
from /root/RTL8812BU/include/osdep_service.h:54,
from /root/RTL8812BU/include/drv_types.h:27,
from /root/RTL8812BU/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-6.3.0-1-common/include/net/cfg80211.h:8392:6: note: declared here
8392 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/RTL8812BU/os_dep/linux/ioctl_cfg80211.c:483:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
483 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/linux-headers-6.3.0-1-common/include/net/cfg80211.h:8375:6: note: declared here
8375 | void cfg80211_ch_switch_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.3.0-1-common/scripts/Makefile.build:257: /root/RTL8812BU/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.3.0-1-common/Makefile:2050: /root/RTL8812BU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.3.0-1-amd64'
make: *** [Makefile:2506: modules] Error 2

@vito-r1
Copy link
Author

vito-r1 commented Jun 20, 2023

git branch

  • v5.13.1

henriqueqc added a commit to henriqueqc/RTL8812BU that referenced this issue Jun 29, 2023
In commit torvalds/linux@b345f06, the Linux kernel v6.3.0 introduced an
extra punct_bitmap parameter in the channel swtich notifications and
corresponding trace functions. Add this extra argument when calling
these functions.

Closes fastoe#44.
@henriqueqc
Copy link

I opened a pull request with a fix, meanwhile you can try my branch that includes the fix: https://github.com/henriqueqc/RTL8812BU/tree/add-punct-bitmap-arg

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

2 participants