fastoe / RTL8812BU

Realtek RTL8812BU Driver for Linux
346 stars 84 forks source link

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

Open vito-r1 opened 1 year ago

vito-r1 commented 1 year ago

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 commented 1 year ago

git branch

henriqueqc commented 1 year ago

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