Error while installing TL-WN881ND driver on Ubuntu 20.04
I've tried installing the driver on Ubuntu 20.04 by following the procedure, but encounter an error when running make.
The output when executing cat /prod/version:
Linux version 5.4.0-48-generic (buildd@lcy01-amd64-010) (gcc version 9.3.0 (Ubuntu 9.3.0
-10ubuntu2)) #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020
The output when executing make:
"******************************************"
"NO KSRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-48-generic/build M=/home/panzerkun
st/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-48-generic'
"******************************************"
"NO KSRC,we will use default KSRC"
"******************************************"
CC [M] /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-004
1.20160824_OK/core/rtw_cmd.o
In file included from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/osdep_service.h:41,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/drv_types.h:32,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/core/rtw_cmd.c:22:
/home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824
_OK/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824
_OK/include/osdep_service_linux.h:267:8: error: ‘_timer’ {aka ‘struct timer_list’} has n
o member named ‘data’
267 | ptimer->data = (unsigned long)cntx;
| ^~
/home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824
_OK/include/osdep_service_linux.h:268:2: error: implicit declaration of function ‘init_t
imer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
268 | init_timer(ptimer);
| ^~~~~~~~~~
| _init_timer
In file included from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/drv_types.h:35,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/core/rtw_cmd.c:22:
/home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824
_OK/include/wifi.h: At top level:
/home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824
_OK/include/wifi.h:994: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
994 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from ./include/net/cfg80211.h:21,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/osdep_service_linux.h:81,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/osdep_service.h:41,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/drv_types.h:32,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
1460 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
In file included from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/drv_types.h:95,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/core/rtw_cmd.c:22:
/home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824
_OK/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
413 | extern char file_path[PATH_LENGTH_MAX];
| ^~~~~~~~~
In file included from ./include/linux/compat.h:17,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:37,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/osdep_service_linux.h:35,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/osdep_service.h:41,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/include/drv_types.h:32,
from /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX
20150615-0041.20160824_OK/core/rtw_cmd.c:22:
./include/linux/fs.h:3028:14: note: previous declaration of ‘file_path’ was here
3028 | extern char *file_path(struct file *, char *, int);
| ^~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /home/panzerkunst/Downloads/rtl8192EE_linux_v4
.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1734: /home/panzerkunst/Downloads/rtl8192EE_linux_v4.3.15.1_19180
_BTCOEX20150615-0041.20160824_OK] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-48-generic'
make: *** [Makefile:1696: modules] Error 2
I really hope someone can help me, as at the moment the card is unusable.