## First Edit the ioctl_cfg80211.c file in this location rtl8812au/os_dep/linux/ioctl_cfg80211.c
line no 2328 sinfo->bss_param.flags |= NL80211_STA_BSS_PARAM_SHORT_PREAMBLE;
line no 2331 sinfo->bss_param.flags |= NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME;
line no 2335 sinfo->bss_param.flags |= NL80211_STA_BSS_PARAM_CTS_PROT;
line no 2338 sinfo->bss_param.flags |= NL80211_STA_BSS_PARAM_DTIM_PERIOD;
## Some Important Points
Do not change your kernel name or version in any manner while preparing the module or else it will not work and you will get errors like insmod 8188.ko >> fatal error exec format failed. This happens when you use build script from kali site and on the other hand you build your modules manually.
For example say during the time of building kernel your situation was like /lib/modules/3.10.35-kali and while making the module your position is say /lib/modules/3.10.35_kali or anything else. This kind of thing will not work. So first built your kernel then just after that build your modules.
## Toolchain Used for building this module - gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf
## 2.Your kernel should enabled below. check in /proc/config.gz or device_defconfig
make O=../kernel-headers modules_prepare (prepare module)
make O=../kernel-headers modules INSTALL_MOD_PATH=../kernel-headers (make modules)
make O=../kernel-headers modules_install INSTALL_MOD_PATH=../kernel-headers(install modules)
## Build Kernel Headers ( shown for armhf/arm only do changes for arm64)
make headers_install CROSS_COMPILE=$path-your-cross-compiler ARCH=arm SUBARCH=arm INSTALL_HDR_PATH=../kernel-headers (install kernel headers on the same directory ie “kernel-headers”)