1

I am trying to install the TL-WN881ND wifi card on Ubuntu 20.04.

The card is not showing inside lspci. I tried this answer : Problems installing a TL-WN881ND driver on Ubuntu 18.04 but it seems the repo no longuer exist.

I downloaded those drivers : https://www.tp-link.com/fr/support/download/tl-wn881nd/

When I try to do make I have the following error :

"******************************************"
"NO KSRC,we will use default KSRC"
"******************************************"
  CC [M]  /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/core/rtw_cmd.o
In file included from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/osdep_service.h:41,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/drv_types.h:32,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/core/rtw_cmd.c:22:
/home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/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 no member named ‘data’
  267 |  ptimer->data = (unsigned long)cntx;
      |        ^~
/home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/osdep_service_linux.h:268:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  268 |  init_timer(ptimer);
      |  ^~~~~~~~~~
      |  _init_timer
In file included from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/drv_types.h:35,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/core/rtw_cmd.c:22:
/home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/wifi.h: At top level:
/home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/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/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/osdep_service_linux.h:81,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/osdep_service.h:41,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/drv_types.h:32,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-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/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/drv_types.h:95,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/core/rtw_cmd.c:22:
/home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/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/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/osdep_service_linux.h:35,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/osdep_service.h:41,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/include/drv_types.h:32,
                 from /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/core/rtw_cmd.c:22:
./include/linux/fs.h:3031:14: note: previous declaration of ‘file_path’ was here
 3031 | extern char *file_path(struct file *, char *, int);
      |              ^~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:270 : /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK/core/rtw_cmd.o] Erreur 1
make[1]: *** [Makefile:1762 : /home/alain/Téléchargements/TL-WN881ND_2.0_LinuxDriverSetup/rtl8192EE_linux_v4.3.15.1_19180_BTCOEX20150615-0041.20160824_OK] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-headers-5.4.0-124-generic »
make: *** [Makefile:1696 : modules] Erreur 2

What can I do ?

EDIT: As requested the result of lspci -nnk : https://pastebin.com/ispgua8t

While troubleshooting I opened the computer removed an put back the WN881D card. That's how I found it's model number.

Alain
  • 11
  • 2

0 Answers0