[packages/rtl8812au] - fix building with linux 4.6 - rel 11
baggins
baggins at pld-linux.org
Sun Jun 19 17:58:34 CEST 2016
commit 18acb8e1a7434cfa4025407137dfda7e0a2c8e0d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jun 19 17:58:19 2016 +0200
- fix building with linux 4.6
- rel 11
linux-4.6.patch | 14 ++++++++++++++
rtl8812au.spec | 4 +++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index 03ab57e..f881f12 100644
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -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}
diff --git a/linux-4.6.patch b/linux-4.6.patch
new file mode 100644
index 0000000..b6d7e03
--- /dev/null
+++ b/linux-4.6.patch
@@ -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;
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/18acb8e1a7434cfa4025407137dfda7e0a2c8e0d
More information about the pld-cvs-commit
mailing list