Kali Linux 无法安装 Wise Tiger 无线适配器驱动程序

Kali Linux 无法安装 Wise Tiger 无线适配器驱动程序

我目前已双启动 Kali Linux,并且拥有 Wise Tiger WT-AC9006 无线适配器。我已从公司网站下载了驱动程序,并尝试通过命令行进行安装:

./install.sh

但是,我继续收到以下错误:

cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.6.0-kali1-common/scripts/Makefile.build:273: /home/bballboy8/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:1696: /home/bballboy8/Desktop/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51] Error 2
make[1]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-kali1-amd64'
make: *** [Makefile:1551: modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################

此外,当我运行 lsusb 时,该设备显示为设备 008:

Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 04f2:b449 Chicony Electronics Co., Ltd Integrated Camera
Bus 002 Device 004: ID 8087:0a2a Intel Corp. 
Bus 002 Device 007: ID 045e:0797 Microsoft Corp. Optical Mouse 200
Bus 002 Device 008: ID 0bda:0811 Realtek Semiconductor Corp. 802.11ac WLAN Adapter 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

我使用了 GitHub 存储库https://github.com/scrivy/rtl8812AU_8821AU_linux当我去制作文件时出现以下错误。

/home/bballboy8/rtl8812AU_8821AU_linux/os_dep/linux/rtw_proc.c: In function ‘rtw_proc_create_entry’:
/home/bballboy8/rtl8812AU_8821AU_linux/os_dep/linux/rtw_proc.c:73:67: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   73 |  entry = proc_create_data(name,  S_IFREG|S_IRUGO|S_IWUGO, parent, fops, data);
      |                                                                   ^~~~
      |                                                                   |
      |                                                                   const struct file_operations *
In file included from /home/bballboy8/rtl8812AU_8821AU_linux/include/../os_dep/linux/rtw_proc.h:23,
                 from /home/bballboy8/rtl8812AU_8821AU_linux/include/osdep_intf.h:123,
                 from /home/bballboy8/rtl8812AU_8821AU_linux/include/drv_types.h:107,
                 from /home/bballboy8/rtl8812AU_8821AU_linux/os_dep/linux/rtw_proc.c:21:
/usr/src/linux-headers-5.6.0-kali1-common/include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
   59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.6.0-kali1-common/scripts/Makefile.build:273: /home/bballboy8/rtl8812AU_8821AU_linux/os_dep/linux/rtw_proc.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:1696: /home/bballboy8/rtl8812AU_8821AU_linux] Error 2
make[1]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-kali1-amd64'
make: *** [Makefile:1622: modules] Error 2

我该如何调整文件才能使其正常工作?

相关内容