... it seems that a previously unused |type| has been cleaned-up/removed in newer kernels.
FYI, I changed|| <https://github.com/aircrack-ng/rtl8812au/blob/1c72e119d775a32dd8d44e5bdb6115c6fa8e7057/os_dep/linux/rtw_android.c#L614> [...] to the following and compilation completed.
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)) if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) { #else if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) { #endif/* Linux kernel < 5.0.0 */