zeerooo / rtl8192eu Goto Github PK
View Code? Open in Web Editor NEWLinux driver for Realtek RTL8192EU.
License: MIT License
Linux driver for Realtek RTL8192EU.
License: MIT License
Everything works fine, but there are 2 little things, 40 MHz is not turned on forcibly, and the signal power is always 12.00 dBm. How to increase txpower signal power up to 20-30 dBm?
phy#1
Interface wlx503eaa53b68c
ifindex 3
wdev 0x100000001
addr 50:3e:aa:53:b6:8c
ssid test_2
type AP
txpower 12.00 dBm
Build failed with following configuration
uname -a
Linux kali 5.4.0-kali3-amd64 #1 SMP Debian 5.4.13-1kali1 (2020-01-20) x86_64 GNU/Linux
CC [M] /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.o
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c: In function ‘dump_drv_version’:
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^
In file included from /media/sf_KaliShare/RTL8192EU-master/include/drv_types.h:60,
from /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:17:
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:107:34: note: in definition of macro ‘RTW_PRINT’
107 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:54: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:107:34: note: in definition of macro ‘RTW_PRINT’
107 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:285:25: note: in definition of macro ‘RTW_PRINT_SEL’
285 | _seqdump(sel, fmt, ##arg) /rtw_warn_on(1)/;
| ^~~
cc1: some warnings being treated as errors
System info:
$ uname -a
Linux kali 5.18.0-kali2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali1 (2022-06-20) x86_64 GNU/Linux
Make output:
$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali2-amd64/build M=/home/kali/tmp/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali2-amd64'
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_cmd.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_security.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_debug.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_io.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_ioctl_query.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_ioctl_set.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_ieee80211.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_mlme.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.o
/home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.c:1638:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
1638 | if (MLME_IS_AP(padapter))
| ^
/home/kali/tmp/RTL8192EU/core/rtw_mlme_ext.c:1643:9: note: here
1643 | case WIFI_ASSOCREQ:
| ^~~~
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_mi.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_wlan_util.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_vht.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_pwrctrl.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_rf.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_recv.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_sta_mgt.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_ap.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_xmit.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_p2p.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_rson.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_tdls.o
CC [M] /home/kali/tmp/RTL8192EU/core/rtw_br_ext.o
/home/kali/tmp/RTL8192EU/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-5.18.0-kali2-common/scripts/Makefile.build:293: /home/kali/tmp/RTL8192EU/core/rtw_br_ext.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.18.0-kali2-common/Makefile:1858: /home/kali/tmp/RTL8192EU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali2-amd64'
make: *** [Makefile:1829: modules] Error 2
Hi guys,
I have been tring to make my wifi dongle work but facing some weird situation as I am able to inject packets and even hear other networks but, not able to use wireshark at all as not able to set the wifi dongle into Monitor mode.
From a wireshark perspective, I can see the interface which has the Monitor checkbox available but automatically unchecks it in case I try to check it.
Other fact that I am facing is that I can't start monitor mode by doing "airmon-ng start wlan0". I have to manually turn it into moiitor mode but never becomes "wlan0mon", it just keeps as "wlan0".
I am not very sure whether this is a bug or whether I am missign something or what's going on with it?
Could someone please drop some light over this topic?
Regards.
Alejandro.
@ZeeRooo
after adding rtl8xxxu driver to blacklist and installing RTL8192EU driver, wifi connection is successful on Linux version 4.15.0-29-generic (buildd@lgw01-amd64-057) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 (Ubuntu 4.15.0-29.31-generic 4.15.18)
extra informations:
1. driver name and chipset nameis not shown on airmon-ng i dont know why, only shows ?????? on driver name (i dont know whether this device support monitor-mode or promiscuous mode)
2. if i do reset the NetworkManager, i have to reboot the linux for using wifi device otherwise it is not working
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-1-amd64/build M=/home/ipaleka/opt/repos/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-1-amd64'
CC [M] /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.o
In file included from /home/ipaleka/opt/repos/RTL8192EU/include/drv_types.h:78,
from /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.c:17:
/home/ipaleka/opt/repos/RTL8192EU/include/rtw_security.h:243:8: error: redefinition of ‘struct sha256_state’
243 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.8.0-1-common/include/linux/filter.h:23,
from /usr/src/linux-headers-5.8.0-1-common/include/net/sock.h:59,
from /usr/src/linux-headers-5.8.0-1-common/include/linux/tcp.h:19,
from /usr/src/linux-headers-5.8.0-1-common/include/linux/ipv6.h:88,
from /usr/src/linux-headers-5.8.0-1-common/include/net/addrconf.h:50,
from /home/ipaleka/opt/repos/RTL8192EU/include/osdep_service_linux.h:48,
from /home/ipaleka/opt/repos/RTL8192EU/include/osdep_service.h:47,
from /home/ipaleka/opt/repos/RTL8192EU/include/drv_types.h:27,
from /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.8.0-1-common/include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-5.8.0-1-common/scripts/Makefile.build:286: /home/ipaleka/opt/repos/RTL8192EU/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:1768: /home/ipaleka/opt/repos/RTL8192EU] Error 2
make[1]: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-1-amd64'
make: *** [Makefile:1829: modules] Error 2
┌──(kali㉿kali)-[~/RTL8192EU]
└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.0-kali5-amd64/build M=/home/kali/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-11 (Debian 11.3.0-3) 11.3.0
You are using: gcc-11 (Debian 11.3.0-8) 11.3.0
CC [M] /home/kali/RTL8192EU/core/rtw_cmd.o
CC [M] /home/kali/RTL8192EU/core/rtw_security.o
CC [M] /home/kali/RTL8192EU/core/rtw_debug.o
CC [M] /home/kali/RTL8192EU/core/rtw_io.o
CC [M] /home/kali/RTL8192EU/core/rtw_ioctl_query.o
CC [M] /home/kali/RTL8192EU/core/rtw_ioctl_set.o
CC [M] /home/kali/RTL8192EU/core/rtw_ieee80211.o
CC [M] /home/kali/RTL8192EU/core/rtw_mlme.o
CC [M] /home/kali/RTL8192EU/core/rtw_mlme_ext.o
/home/kali/RTL8192EU/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/kali/RTL8192EU/core/rtw_mlme_ext.c:1638:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
1638 | if (MLME_IS_AP(padapter))
| ^
/home/kali/RTL8192EU/core/rtw_mlme_ext.c:1643:9: note: here
1643 | case WIFI_ASSOCREQ:
| ^~~~
CC [M] /home/kali/RTL8192EU/core/rtw_mi.o
CC [M] /home/kali/RTL8192EU/core/rtw_wlan_util.o
CC [M] /home/kali/RTL8192EU/core/rtw_vht.o
CC [M] /home/kali/RTL8192EU/core/rtw_pwrctrl.o
CC [M] /home/kali/RTL8192EU/core/rtw_rf.o
CC [M] /home/kali/RTL8192EU/core/rtw_recv.o
CC [M] /home/kali/RTL8192EU/core/rtw_sta_mgt.o
CC [M] /home/kali/RTL8192EU/core/rtw_ap.o
CC [M] /home/kali/RTL8192EU/core/rtw_xmit.o
CC [M] /home/kali/RTL8192EU/core/rtw_p2p.o
CC [M] /home/kali/RTL8192EU/core/rtw_rson.o
CC [M] /home/kali/RTL8192EU/core/rtw_tdls.o
CC [M] /home/kali/RTL8192EU/core/rtw_br_ext.o
/home/kali/RTL8192EU/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-5.18.0-kali5-common/scripts/Makefile.build:293: /home/kali/RTL8192EU/core/rtw_br_ext.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.18.0-kali5-common/Makefile:1858: /home/kali/RTL8192EU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.0-kali5-amd64'
make: *** [Makefile:1829: modules] Error 2
Hello. Please add a line
{USB_DEVICE (0x2c4e, 0x0100),. Driver_info = RTL8192E}, / * mercusys * /
in section #ifdef CONFIG_RTL8192E
To support Wi-Fi adapter Mercusys MW300UM.
Trying to get TP link dongle (2357:0109) to work with 4.18.0 -15 kernel in Linux Mint.
Experienced this problem?
neil@culnacnoc:~/RTL8192EU$ sudo modprobe 8192eu
modprobe: ERROR: could not insert '8192eu': Invalid argument
I'm new to this and am probably doing something stupid/ have missed something important, etc.
Any advice and/or instructions to remedy issue?
I've been trying to set this up for 2 months now and I still get the same error
Authentication requested [root] for make clean:
cd hal/OUTSRC/ ; rm -fr /.mod.c /.mod /.o /..cmd /.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c .mod .o ..cmd .ko
cd hal/led ; rm -fr .mod.c .mod .o ..cmd .ko
cd hal ; rm -fr //.mod.c //.mod //.o //..cmd //.ko
cd hal ; rm -fr /.mod.c /.mod /.o /..cmd /.ko
cd hal ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd core ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod .o ..cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod .o ..cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod .o ..cmd *.ko *~
rm -fr .tmp_versions
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-kali2-amd64/build M=/root/Realtek-RTL8192EU-driver/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules
make[1]: Entering directory '/usr/src/linux-headers-4.18.0-kali2-amd64'
/usr/src/linux-headers-4.18.0-kali2-common modules
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-kali2-amd64/build M=/usr/src/linux-headers-4.18.0-kali2-common modules
make[2327]: fork: Resource temporarily unavailable
make[2326]: *** [Makefile:1700: modules] Error 2
for the sake of not spamming these two lines go about TWOTHOUSAND times each
I've noticed that even after installing the driver and applying the modprobe
command, I was still using the generic network driver rtl8xxxu
So, I did a little research and I found THE SOLUTION
I leave you the quote:
Distributions based on Debian & Ubuntu have RTL8XXXU driver present & running in kernelspace. To use our RTL8192EU driver, we need to blacklist RTL8XXXU.
$ echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf;Force RTL8192EU Driver to be active from boot.
$ echo -e "8192eu\n\nloop" | sudo tee /etc/modules;Update changes to Grub & initramfs
$ sudo update-grub; sudo update-initramfs -u;Reboot system to load new changes from newly generated initramfs.
$ systemctl reboot -i;
Check that your kernel has loaded the right module:
$ sudo lshw -c network;
You should see the line
driver=8192eu
Of course, it'd be better to automatize this in, I don't know ... a bash script?
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali9-amd64/build M=/home/kali/RTL8192EU modules
make[1]: *** /lib/modules/5.10.0-kali9-amd64/build: No such file or directory. Stop.
make: *** [Makefile:1829: modules] Error 2
/lib/modules/5.10.0-kali9-amd64/
doesn't contain build/
.
hello there
i have wn822n v5 and i want to use it in monitor mode when i install this driver it shows me this
root@Gaara:/home/gaara/RTL8192EU# make install
install -p -m 644 8192eu.ko /lib/modules/5.6.0-kali2-686-pae/kernel/drivers/net/wireless/
install: cannot stat '8192eu.ko': No such file or directory
make: *** [Makefile:1835: install] Error 1
please help
Hi.
I would like to ask a small description of each feature of the driver.
With this info, I can configure properly the Makefile before compiling and installing the driver.
Thanks
Command was executed with the following configuration:
$ uname -a
Linux kali 5.7.0-kali1-amd64 #1 SMP Debian 5.7.6-1kali2 (2020-07-01) x86_64 GNU/Linux
$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.7.0-kali1-amd64/build M=/home/kali/Downloads/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.7.0-kali1-amd64'
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_cmd.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_security.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_debug.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_io.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_ioctl_query.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_ioctl_set.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_ieee80211.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_mlme.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.o
/home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.c:1638:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
1638 | if (MLME_IS_AP(padapter))
| ^
/home/kali/Downloads/RTL8192EU/core/rtw_mlme_ext.c:1643:2: note: here
1643 | case WIFI_ASSOCREQ:
| ^~~~
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_mi.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_wlan_util.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_vht.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_pwrctrl.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_rf.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_recv.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_sta_mgt.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_ap.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_xmit.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_p2p.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_rson.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_tdls.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_br_ext.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_iol.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_sreset.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_btcoex_wifionly.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_btcoex.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_beamforming.o
CC [M] /home/kali/Downloads/RTL8192EU/core/rtw_odm.o
CC [M] /home/kali/Downloads/RTL8192EU/core/efuse/rtw_efuse.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/osdep_service.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/os_intfs.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/usb_intf.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/usb_ops_linux.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_linux.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/xmit_linux.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/mlme_linux.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/recv_linux.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.o
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_change_iface’:
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2069:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
2069 | is_p2p = _TRUE;
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2071:2: note: here
2071 | case NL80211_IFTYPE_STATION:
| ^~~~
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2093:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
2093 | is_p2p = _TRUE;
/home/kali/Downloads/RTL8192EU/os_dep/linux/ioctl_cfg80211.c:2095:2: note: here
2095 | case NL80211_IFTYPE_AP:
| ^~~~
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_cfgvendor.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/wifi_regd.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_android.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_radiotap.o
CC [M] /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.o
/home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.c: In function ‘rtw_proc_create_entry’:
/home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.c:72:71: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
72 | entry = proc_create_data(name, S_IFREG | S_IRUGO | S_IWUGO, parent, fops, data);
| ^~~~
| |
| const struct file_operations *
In file included from /home/kali/Downloads/RTL8192EU/include/../os_dep/linux/rtw_proc.h:18,
from /home/kali/Downloads/RTL8192EU/include/osdep_intf.h:128,
from /home/kali/Downloads/RTL8192EU/include/drv_types.h:104,
from /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.c:17:
/usr/src/linux-headers-5.7.0-kali1-common/include/linux/proc_fs.h:74:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
74 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.7.0-kali1-common/scripts/Makefile.build:272: /home/kali/Downloads/RTL8192EU/os_dep/linux/rtw_proc.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.7.0-kali1-common/Makefile:1745: /home/kali/Downloads/RTL8192EU] Error 2
make[1]: *** [/usr/src/linux-headers-5.7.0-kali1-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-kali1-amd64'
make: *** [Makefile:1829: modules] Error 2
Можно ли исправить? Ответьте плз.
Ubuntu 18.04 with kernel 4.15.0-58-generic and kernel 4.15.0-55-generic
This driver successfully builded, installed and worked with D-Link DWA-131 Revision E USB stick.
Please add to documentation this command:
sudo apt install libelf-dev
because without libelf-dev you can't build .ko file from sources
after use make command
┌──(kali㉿kali)-[~/RTL8192EU]
└─$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.0.0-kali6-amd64/build M=/home/kali/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-6.0.0-kali6-amd64'
CC [M] /home/kali/RTL8192EU/core/rtw_br_ext.o
/home/kali/RTL8192EU/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
20 | #include <net/ipx.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-6.0.0-kali6-common/scripts/Makefile.build:254: /home/kali/RTL8192EU/core/rtw_br_ext.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.0.0-kali6-common/Makefile:1876: /home/kali/RTL8192EU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.0.0-kali6-amd64'
make: *** [Makefile:1829: modules] Error 2
Driver seems to support the TL-WN821N V5 too.
There is an issue, though which is probably in common with the TL-WN821N V6.
If you load the module and connect, the connection is fine.
If you ask network manager to unconnect and then you try to connect again, it does not work anymore.
Hi!
Sorry for a noob question but I can't seem to compile and install these drivers.
I get the following:
"make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.9.0-0.bpo.2-rt-amd64/build M=/home//Downloads/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-0.bpo.2-rt-amd64'ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.make[2]: *** [/usr/src/linux-headers-5.9.0-0.bpo.2-common-rt/Makefile:718: include/config/auto.conf] Error 1
make[1]: *** [/usr/src/linux-headers-5.9.0-0.bpo.2-common-rt/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-0.bpo.2-rt-amd64'
make: *** [Makefile:1829: modules] Error 2"
I tried to:
make oldconfig
make prepare
make scripts
I have:
gcc 8.3.0-6
git 2.20.1
dkms 2.6
And I'm trying to install the drivers on Debian based distro with 5.9 kernel.
when i type make, i get the following error:
┌──(root💀kali)-[~/RTL8192EU] └─# make 2 ⨯ make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali5-amd64/build M=/root/RTL8192EU modules make[1]: Entering directory '/usr/src/linux-headers-5.10.0-kali5-amd64' CC [M] /root/RTL8192EU/core/rtw_cmd.o In file included from /root/RTL8192EU/include/drv_types.h:78, from /root/RTL8192EU/core/rtw_cmd.c:17: /root/RTL8192EU/include/rtw_security.h:243:8: error: redefinition of ‘struct sha256_state’ 243 | struct sha256_state { | ^~~~~~~~~~~~ In file included from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/filter.h:24, from /usr/src/linux-headers-5.10.0-kali5-common/include/net/sock.h:59, from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/tcp.h:19, from /usr/src/linux-headers-5.10.0-kali5-common/include/linux/ipv6.h:87, from /usr/src/linux-headers-5.10.0-kali5-common/include/net/addrconf.h:50, from /root/RTL8192EU/include/osdep_service_linux.h:48, from /root/RTL8192EU/include/osdep_service.h:47, from /root/RTL8192EU/include/drv_types.h:27, from /root/RTL8192EU/core/rtw_cmd.c:17: /usr/src/linux-headers-5.10.0-kali5-common/include/crypto/sha.h:84:8: note: originally defined here 84 | struct sha256_state { | ^~~~~~~~~~~~ make[3]: *** [/usr/src/linux-headers-5.10.0-kali5-common/scripts/Makefile.build:284: /root/RTL8192EU/core/rtw_cmd.o] Error 1 make[2]: *** [/usr/src/linux-headers-5.10.0-kali5-common/Makefile:1819: /root/RTL8192EU] Error 2 make[1]: *** [/usr/src/linux-headers-5.10.0-kali5-common/Makefile:185: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-kali5-amd64' make: *** [Makefile:1829: modules] Error 2
Current driver don't work with Ubuntu kernel version 18.04 5.3.0-26-generic
There is an error after trying to Make the driver:
root@kali:~/RTL8192EU# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.9.0-kali1-amd64/build M=/root/RTL8192EU modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-kali1-amd64'
CC [M] /root/RTL8192EU/core/rtw_cmd.o
In file included from /root/RTL8192EU/include/drv_types.h:78,
from /root/RTL8192EU/core/rtw_cmd.c:17:
/root/RTL8192EU/include/rtw_security.h:243:8: error: redefinition of ‘struct sha256_state’
243 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.9.0-kali1-common/include/linux/filter.h:24,
from /usr/src/linux-headers-5.9.0-kali1-common/include/net/sock.h:59,
from /usr/src/linux-headers-5.9.0-kali1-common/include/linux/tcp.h:19,
from /usr/src/linux-headers-5.9.0-kali1-common/include/linux/ipv6.h:88,
from /usr/src/linux-headers-5.9.0-kali1-common/include/net/addrconf.h:50,
from /root/RTL8192EU/include/osdep_service_linux.h:48,
from /root/RTL8192EU/include/osdep_service.h:47,
from /root/RTL8192EU/include/drv_types.h:27,
from /root/RTL8192EU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.9.0-kali1-common/include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-5.9.0-kali1-common/scripts/Makefile.build:288: /root/RTL8192EU/core/rtw_cmd.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:1796: /root/RTL8192EU] Error 2
make[1]: *** [/usr/src/linux-headers-5.9.0-kali1-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-kali1-amd64'
make: *** [Makefile:1829: modules] Error 2
Info:
Linux kali 5.16.0-kali7-amd64 #1 SMP PREEMPT Debian 5.16.18-1kali1 (2022-04-01) x86_64 GNU/Linux
Error:
/bin/sh: 1: bc: not found make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali7-amd64/build M=/home/kali/RTL8192EU modules make[1]: *** /lib/modules/5.16.0-kali7-amd64/build: No such file or directory. Stop. make: *** [Makefile:1829: modules] Error 2
I also tried:
sudo apt upgrade
sudo apt update
It didn't help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.