rtlwifi-next
rtlwifi-next copied to clipboard
Compile error in Ubuntu 18.04
When I launch command
sudo make
I get some errors
$ sudo make
make -C /lib/modules/4.18.0-24-generic/build M=/home/jeshrz/Downloads/rtlwifi-next modules
make[1]: 进入目录“/usr/src/linux-headers-4.18.0-24-generic”
CC [M] /home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.o
/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.c: In function ‘odm_initialize_timer’:
/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.c:192:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
init_timer(timer);
^~~~~~~~~~
init_timers
/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.c:194:7: error: ‘struct timer_list’ has no member named ‘data’
timer->data = (unsigned long)dm;
^~
cc1: some warnings being treated as errors
scripts/Makefile.build:323: recipe for target '/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.o' failed
make[3]: *** [/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.o] Error 1
scripts/Makefile.build:579: recipe for target '/home/jeshrz/Downloads/rtlwifi-next/phydm' failed
make[2]: *** [/home/jeshrz/Downloads/rtlwifi-next/phydm] Error 2
Makefile:1534: recipe for target '_module_/home/jeshrz/Downloads/rtlwifi-next' failed
make[1]: *** [_module_/home/jeshrz/Downloads/rtlwifi-next] Error 2
make[1]: 离开目录“/usr/src/linux-headers-4.18.0-24-generic”
Makefile:100: recipe for target 'all' failed
make: *** [all] Error 2
Have you solved it? I have the same problem 😭
Have you solved it? I have the same problem 😭
nope, almost give it up...
Which chip do you use? If your chip is 8822b/8822c, they're supported by rtw88 announced in kernel 5.2.