]> git.pld-linux.org Git - packages/rtl8812au.git/commitdiff
- fix building with linux 4.6 auto/th/rtl8812au-4.3.2_11100.20140411-0.20140901.11
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 19 Jun 2016 15:58:19 +0000 (17:58 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 19 Jun 2016 15:58:19 +0000 (17:58 +0200)
- rel 11

linux-4.6.patch [new file with mode: 0644]
rtl8812au.spec

diff --git a/linux-4.6.patch b/linux-4.6.patch
new file mode 100644 (file)
index 0000000..b6d7e03
--- /dev/null
@@ -0,0 +1,14 @@
+--- 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;
index 03ab57ec1107ce1447dbfec726409694d91e6ec8..f881f1214e691be42eb38fd2aca42d10660cf64f 100644 (file)
@@ -4,7 +4,7 @@
 # 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
@@ -30,6 +30,7 @@ Patch7:               linux-4.0.patch
 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)
@@ -82,6 +83,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 %build
 %{expand:%build_kernel_packages}
This page took 0.131009 seconds and 4 git commands to generate.