TL-WN8200ND_V2_170627_Linux driver - has errors even after compilation using gcc version 5.4.0
I followed the steps as read in the Installation Guide for Linux:
Driver TL-WN8200ND_V2_170627_Linux
cat /proc/version
Linux version 4.15.0-65-generic (buildd@lcy01-amd64-017) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)) #74~16.04.1-Ubuntu SMP Wed Sep 18 09:51:44 UTC 2019
make clean
cd hal/phydm/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/phydm/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-65-generic/build M=/home/vn/Desktop/rtl8192 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-65-generic'
CC [M] /home/vn/Desktop/rtl8192/core/rtw_cmd.o
In file included from /home/vn/Desktop/rtl8192/include/osdep_service.h:41:0,
from /home/vn/Desktop/rtl8192/include/drv_types.h:32,
from /home/vn/Desktop/rtl8192/core/rtw_cmd.c:22:
/home/vn/Desktop/rtl8192/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/vn/Desktop/rtl8192/include/osdep_service_linux.h:273:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^
/home/vn/Desktop/rtl8192/include/osdep_service_linux.h:274:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
init_timer(ptimer);
^
In file included from /home/vn/Desktop/rtl8192/include/drv_types.h:32:0,
from /home/vn/Desktop/rtl8192/core/rtw_cmd.c:22:
/home/vn/Desktop/rtl8192/include/osdep_service.h: In function ‘thread_enter’:
/home/vn/Desktop/rtl8192/include/osdep_service.h:345:2: error: implicit declaration of function ‘allow_signal’ [-Werror=implicit-function-declaration]
allow_signal(SIGTERM);
^
/home/vn/Desktop/rtl8192/include/osdep_service.h: In function ‘flush_signals_thread’:
/home/vn/Desktop/rtl8192/include/osdep_service.h:355:6: error: implicit declaration of function ‘signal_pending’ [-Werror=implicit-function-declaration]
if (signal_pending (current))
^
/home/vn/Desktop/rtl8192/include/osdep_service.h:357:3: error: implicit declaration of function ‘flush_signals’ [-Werror=implicit-function-declaration]
flush_signals(current);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/home/vn/Desktop/rtl8192/core/rtw_cmd.o' failed
make[2]: *** [/home/vn/Desktop/rtl8192/core/rtw_cmd.o] Error 1
Makefile:1571: recipe for target '_module_/home/vn/Desktop/rtl8192' failed
make[1]: *** [_module_/home/vn/Desktop/rtl8192] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-65-generic'
Makefile:1686: recipe for target 'modules' failed
make: *** [modules] Error 2
Please, help is requiered.