aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.51k stars 767 forks source link

Compilation failing on Rocky/RHEL #999

Closed dipjyoti22 closed 1 year ago

dipjyoti22 commented 2 years ago

Any leads on the below ? Compilation failing on Rocky 8.5 !!

CC [M] xxxxxxx/Downloads/rtl8812au-5.6.4.2/os_dep/linux/ioctl_cfg80211.o xxxxxxx/Downloads/rtl8812au-5.6.4.2/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’: xxxxxxx/Downloads/rtl8812au-5.6.4.2/os_dep/linux/ioctl_cfg80211.c:466:3: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’ cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0); ^~~~~~~~~ In file included from xxxxxxx/Downloads/rtl8812au-5.6.4.2/include/osdep_service_linux.h:97, from xxxxxxx/Downloads/rtl8812au-5.6.4.2/include/osdep_service.h:58, from xxxxxxx/Downloads/rtl8812au-5.6.4.2/include/drv_types.h:26, from xxxxxxx/Downloads/rtl8812au-5.6.4.2/os_dep/linux/ioctl_cfg80211.c:17: ./include/net/cfg80211.h:7673:6: note: declared here void cfg80211_ch_switch_started_notify(struct net_device *dev, ^~~~~~~~~ xxxxxxx/Downloads/rtl8812au-5.6.4.2/os_dep/linux/ioctl_cfg80211.c: At top level: xxxxxxx/Downloads/rtl8812au-5.6.4.2/os_dep/linux/ioctl_cfg80211.c:10193:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’ .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register, ^~~~~~~ make[2]: [scripts/Makefile.build:316: xxxxxxx/Downloads/rtl8812au-5.6.4.2/os_dep/linux/ioctl_cfg80211.o] Error 1 make[1]: [Makefile:1571: _module_xxxxxxx/Downloads/rtl8812au-5.6.4.2] Error 2 make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.20.1.el8_5.x86_64'

Using kernel 4.18.0-348.20.1.el8_5.x86_64..

CGarces commented 2 years ago

Duplicate of #873 #780 #542

RHEL has made some backports to old kernels that made complicated to maintain this drivers

Please check issue #861 And this patch https://github.com/aircrack-ng/rtl8812au/issues/861#issuecomment-859794427

Also you must change #811 with a similar patch.

But please consider using a different kernel as suggested at https://github.com/aircrack-ng/rtl8812au/issues/542#issuecomment-587775745

kimocoder commented 1 year ago

This issue should be fixed