Mt7612u driver for AWUS036ACM alpha network driver

What have you tried:Tried compiling the available driver but no hope as I vetted the entire configurations files but still errors. I have just pasted one of the errors which i changed by patching but i can see 1000’s of other errors while compiling.

What is the error:

fatal error: asm/unaligned.h: No such file or directory
53 | #include <asm/unaligned.h> /* for get_unaligned() */
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.12.25-common/scripts/Makefile.build:234: /home/ajin/mt7612u/ap/ap_mbss.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.12.25-common/Makefile:1974: /home/ajin/mt7612u] Error 2
make[1]: *** [/usr/src/linux-headers-6.12.25-common/Makefile:236: __sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.12.25-amd64’
make: *** [Makefile:615: modules] Error 2

What device is this on: kali linux latest version 6.12 bare metal.

You shouldn’t need drivers;

@Fred Thanks for the response but it is not working out of the box. The new kernel needs patching of the old drivers and I tried so hard but compiling error made me lose all hope.

Are you running Kali bare metal or in a VM?

Some VM set ups don’t pass through the USB properly and so the drivers aren’t loaded.