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
@drygdryg I get a warning here about the struct immediately going out of scope, and errors here and here about the struct being an undefined type. It compiled fine on Kali, so I'm not sure why it's breaking on my new Arch install. Maybe the code contains a ton of UB.
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