Error while installing TL-WN881ND driver on Ubuntu 20.04

Error while installing TL-WN881ND driver on Ubuntu 20.04
Error while installing TL-WN881ND driver on Ubuntu 20.04
2020-09-26 16:44:14
Model: TL-WN881ND
Hardware Version: V2
Firmware Version:

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.

0
0
#1
Options
6 Reply
Re:Error while installing TL-WN881ND driver on Ubuntu 20.04
2020-09-27 08:52:27

Hi, Thank you very much for your detailed information.

Since the official driver of TL-WN881ND only supported Linux kernel 2.6.24~4.1.

And there is no Ubuntu 20.04 driver available from TP-Link.

So may I know what driver did you use since it might be caused by the improper driver?

As for Linux is an open-source system,  anyone who is interested in Linux, please shed a light on us.

Any ideas would be welcome.

 

Thank you very much.

0
0
#2
Options
Re:Error while installing TL-WN881ND driver on Ubuntu 20.04
2020-09-27 11:44:42 - last edited 2020-09-27 11:46:12

Thank you for your help @Kathy_Z 

I tried installing that driver for Linux kernel 2.6.24, from the TP-Link website. But I guess it doesn't work for Ubuntu 20.04, which is based on a more recent Linux kernel.

 

Does TP-Link plan to update their drivers to newer versions of Linux?

0
0
#3
Options
Re:Error while installing TL-WN881ND driver on Ubuntu 20.04
2020-09-30 07:22:17
Hi, thank you for your time and patience. Till now, we did not have a plan to release the newer versions of Linux yet. Thanks a lot.
0
0
#4
Options
Re:Error while installing TL-WN881ND driver on Ubuntu 20.04
2020-09-30 21:10:14

@Kathy_Z  after some research, it turns out this is not necessary.

What counts, is that the Linux driver exists for the card's chipset. The chipset is for that card is rtl8192ee. And with some research on the web, it's possible to install it on a recent Linux kernel. Not the easiest way to install, but there is a way.

1
1
#5
Options
Re:Error while installing TL-WN881ND driver on Ubuntu 20.04
2021-07-05 18:00:16

Hi there, @PanzerKunst 

I am having the exact same problem at the moment, which you apparently have solved. I am running ubuntu 20.04.2 LTS.

Would you please be so kind as to explain how to find the card's chipset, and how to install the driver from there?

Many thanks !

0
0
#6
Options
Re:Error while installing TL-WN881ND driver on Ubuntu 20.04
2021-07-05 20:45:01 - last edited 2021-07-05 20:45:57

@Toto-Pierre unfortunately I didn't write down the steps to install the card on Linux, but I definitely got it to work, on Ubuntu 20.04 just like you. From memory, I didn't install any 3rd party drivers - a recent Linux kernel already contains the driver for the rtl8812ee chipset.

 

One good step on the way to have the card working, is if you get the "dkms status" command to display the "rtl8812ee" driver.

Then the next step is to configure your network settings, so that it's this wireless connection which is used to connect to the network.

 

Best of luck!

0
0
#7
Options