rtl8812au-driver-5.2.9
rtl8812au-driver-5.2.9 copied to clipboard
Doesn't compile with DKMS on Fedora 27
Error when compiling with DKMS on Fedora 27 Error is as follows from dkms log
/var/lib/dkms/rtl8812au/5.2.9/build/include/osdep_service_linux.h: In function ‘_init_timer’: /var/lib/dkms/rtl8812au/5.2.9/build/include/osdep_service_linux.h:301:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’ ptimer->data = (unsigned long)cntx; ^~ /var/lib/dkms/rtl8812au/5.2.9/build/include/osdep_service_linux.h:302:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration] init_timer(ptimer);
Attached is make.log
init_timer function (and setup_timer) has been replaced in 4.15 https://lwn.net/Articles/735887/
I made the necessary changes, uncommenting the setup_timer, and changing it to timer_setup, and using a macro to switch between the original code and the new, depending on kernel version, and then I compiled with DKMS, but it wasn't working. Also, the module that is created by this code base is huge and bloated. I would recommend a different one, or investigating the config options etc.