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

Error while compiling in 6.9.1 kernel #268

Closed
p0ryae opened this issue May 19, 2024 · 2 comments
Closed

Error while compiling in 6.9.1 kernel #268

p0ryae opened this issue May 19, 2024 · 2 comments

Comments

@p0ryae
Copy link

p0ryae commented May 19, 2024

Attempting to compile (or even deploy) will lead to the following error:

/home/porya/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/porya/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:441:17: error: too many arguments to function ‘cfg80211_ch_switch_started_notify’
  441 |                 cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/porya/rtl88x2bu/include/osdep_service_linux.h:94,
                 from /home/porya/rtl88x2bu/include/osdep_service.h:53,
                 from /home/porya/rtl88x2bu/include/drv_types.h:27,
                 from /home/porya/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:8811:6: note: declared here
 8811 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/porya/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:457:9: error: too many arguments to function ‘cfg80211_ch_switch_notify’
  457 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
./include/net/cfg80211.h:8795:6: note: declared here
 8795 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:244: /home/porya/rtl88x2bu/os_dep/linux/ioctl_cfg80211.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/lib/modules/6.9.1-zen1-1-zen/build/Makefile:1917: /home/porya/rtl88x2bu] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.9.1-zen1-1-zen/build'
make: *** [Makefile:2395: modules] Error 2

I'm using Arch Linux, GCC verison is 14.1.1

@CGarces
Copy link
Contributor

CGarces commented May 19, 2024

You need this patch
aircrack-ng/rtl8812au#1149

@MaxG87
Copy link
Collaborator

MaxG87 commented May 21, 2024

I just pushed a fix for compatibility with v6.9. I usually push using the newest driver and Kernel, which took some time this time due to the GCC 13 issues.

@MaxG87 MaxG87 closed this as completed May 21, 2024
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