有人可以帮我安装 Tp Link TL-WN722N 吗?

有人可以帮我安装 Tp Link TL-WN722N 吗?

我正在使用 Ubuntu 20.04,我遵循了所有说明这里但我在执行时一直出现错误

sudo make clean

sudo make

它给了我错误 2:

    $ sudo make
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-26-generic/build 
    M=/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222  modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-26-generic'
  CC [M]  /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.o
In file included from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service.h:46,
                 from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/drv_types.h:32,
                 from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.c:22:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h:288:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
  288 |  ptimer->data = (unsigned long)cntx;
      |        ^~
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h:289:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  289 |  init_timer(ptimer);
      |  ^~~~~~~~~~
      |  _init_timer
In file included from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/drv_types.h:35,
                 from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.c:22:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/wifi.h: At top level:
/home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/wifi.h:1012: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 1012 | #define IEEE80211_MAX_AMPDU_BUF 0x40
      | 
In file included from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service_linux.h:86,
                 from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/osdep_service.h:46,
                 from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/include/drv_types.h:32,
                 from /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1451: note: this is the location of the previous definition
 1451 | #define IEEE80211_MAX_AMPDU_BUF  0x100
      | 
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1719: /home/ronan/Downloads/TP-Link_Driver_Linux_series7_beta/rtl8188EUS_linux_v5.2.2.4_25483.20171222] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-26-generic'
make: *** [Makefile:1911: modules] Error 2

感谢大家付出的宝贵时间!

PS:命令输出lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 011: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy 
series, misc. (MTP mode)
Bus 001 Device 003: ID 09da:2403 A4Tech Co., Ltd. 2.4G Device
Bus 001 Device 002: ID 0cf3:9271 Qualcomm Atheros Communications 
AR9271 802.11n
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

答案1

0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n device

由 5.4 Linux 内核原生支持,不需要任何驱动程序。

https://kernel.ubuntu.com/git/ubuntu/ubuntu-focal.git/tree/drivers/net/wireless/ath/ath9k/hif_usb.c

您尝试安装完全不同RTL8188EUS设备的驱动程序。此外,正如您在手册顶部看到的那样,该驱动程序已经过时了。它适用于带有 4.13 内核的 Ubuntu 16.04。

无论如何它都无法安装到 20.04。

答案2

我在 HP 笔记本电脑型号 15-dy2050la 上安装了 ubuntu 20.04

我将 TP-LINK TLWN722N 连接到笔记本电脑,ubuntu 识别了它,但无法连接到互联网。我的路由器工作正常,我还有其他设备可以毫无问题地连接 执行命令时;lsusb Ubuntu 识别了 TP-LINK TLWN722N:总线 001 设备 009:ID 2357:010c TP-Link TL-WN722N v2 Ubuntu 无需安装或编译任何东西即可识别该设备。但它没有连接到互联网

我的 wifi 被设置为隐藏。我禁用了隐藏 wifi 的选项:广播网络名称 (SSID),神奇的是,连接到 wifi 的 TP-LINK TLWN722N Ubuntu 无需安装或编译任何东西就能识别该设备。

现在我可以选择使用内置调制解调器或 TP-LINK TLWN722N HP 笔记本电脑型号 15-dy2050la 非常便宜...它附带的调制解调器功能不那么强大或稳定,这就是我使用 TP-LINK TLWN722N 的原因

使用 HP 笔记本电脑型号 15-dy2050la 的内置调制解调器,我很难进行流媒体、在线游戏和视频会议,但多亏了过去的 TP-LINK TLWN722N

相关内容