我正在尝试在 Ubuntu 20.04 上安装 TL-WN881ND wifi 卡。
该卡未在 lspci 中显示。我尝试了这个答案:在 Ubuntu 18.04 上安装 TL-WN881ND 驱动程序时出现问题但看起来该仓库已不复存在。
我下载了这些驱动程序:https://www.tp-link.com/fr/support/download/tl-wn881nd/
当我尝试执行 make 时出现以下错误:
"******************************************"
"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
我能做些什么 ?
编辑:根据要求,lspci -nnk 的结果:https://pastebin.com/ispgua8t
在排除故障时,我打开电脑,取出并放回了 WN881D 卡。我就是这样找到它的型号的。