$ make -C tools
make[1]: Entering directory '/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /lib/modules/4.15.0-47-generic/build SUBDIRS=/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-47-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o
/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c:2180:12: error: passing argument 8 of ‘StaAddMacTableEntry’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ie_list,
^~~~~~~
In file included from /home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:59:0,
from /home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c:28:
/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:7892:9: note: expected ‘IE_LISTS * {aka struct _IE_lists *}’ but argument is of type ‘BCN_IE_LIST * {aka struct _bcn_ie_list *}’
BOOLEAN StaAddMacTableEntry(
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o' failed
make[2]: *** [/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o] Error 1
Makefile:1552: recipe for target '_module_/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux' failed
make[1]: *** [_module_/home/mulchand/Downloads/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-47-generic'
Makefile:394: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
答案1
你的驱动程序肯定太旧了。它是 2013 年的。
尝试寻找更新的、受支持的驱动程序这里。