I’m trying to install my wifi adapter Tenda U6 but there are problems. first i open terminal and go to the folder where is install.sh file i run
sh install.sh
and it gave this:
Authentication requested [root] for make driver:
install.sh: 48: [: unexpected operator
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.5.0-kali2-amd64/build M=/home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042 modules
make[1]: Entering directory '/usr/src/linux-headers-5.5.0-kali2-amd64'
CC [M] /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/core/rtw_cmd.o
In file included from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/osdep_service.h:41,
from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/drv_types.h:32,
from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/core/rtw_cmd.c:22:
/home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/osdep_service_linux.h:273:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
273 | ptimer->data = (unsigned long)cntx;
| ^~
/home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/osdep_service_linux.h:274:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
274 | init_timer(ptimer);
| ^~~~~~~~~~
| _init_timer
In file included from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/drv_types.h:35,
from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/core/rtw_cmd.c:22:
/home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/wifi.h: At top level:
/home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1019 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/osdep_service_linux.h:84,
from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/osdep_service.h:41,
from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/include/drv_types.h:32,
from /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/core/rtw_cmd.c:22:
/usr/src/linux-headers-5.5.0-kali2-common/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[3]: *** [/usr/src/linux-headers-5.5.0-kali2-common/scripts/Makefile.build:271: /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.5.0-kali2-common/Makefile:1707: /home/ledd/Desktop/new/driver/rtl8192EU_linux_v4.4.1.1_18873.20160805_BTCOEX20160412-0042] Error 2
make[1]: *** [/usr/src/linux-headers-5.5.0-kali2-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.5.0-kali2-amd64'
make: *** [Makefile:1686: modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
how can i install this wifi driver?