--- /dev/null
+--- rtl8812au_linux-master/os_dep/linux/rtw_android.c~ 2016-06-19 17:56:30.000000000 +0200
++++ rtl8812au_linux-master/os_dep/linux/rtw_android.c 2016-06-19 17:57:23.699243076 +0200
+@@ -574,7 +574,11 @@
+ goto exit;
+ }
+ #ifdef CONFIG_COMPAT
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0))
+ if (is_compat_task()) {
++#else
++ if (in_compat_syscall()) {
++#endif
+ /* User space is 32-bit, use compat ioctl */
+ compat_android_wifi_priv_cmd compat_priv_cmd;
+
# nothing to be placed to debuginfo package
%define _enable_debug_packages 0
-%define rel 10
+%define rel 11
%define snap 20140901
%define pname rtl8812au
Summary: Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter
Patch8: linux-4.1.patch
Patch9: linux-4.2.patch
Patch10: linux-4.3.patch
+Patch11: linux-4.6.patch
BuildRequires: rpmbuild(macros) >= 1.701
%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
BuildRoot: %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
%patch8 -p1
%patch9 -p1
%patch10 -p1
+%patch11 -p1
%build
%{expand:%build_kernel_packages}