[packages/rtl8812au] - fix building with linux 4.8 - rel 13
baggins
baggins at pld-linux.org
Tue Oct 11 22:47:51 CEST 2016
commit 4c684a7af0949c1fe5560860c5d9a31e575bf6f2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Oct 11 22:47:28 2016 +0200
- fix building with linux 4.8
- rel 13
linux-4.8.patch | 17 +++++++++++++++++
rtl8812au.spec | 4 +++-
2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index 96928cf..4950d7b 100755
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -4,7 +4,7 @@
# nothing to be placed to debuginfo package
%define _enable_debug_packages 0
-%define rel 12
+%define rel 13
%define snap 20140901
%define pname rtl8812au
Summary: Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter
@@ -32,6 +32,7 @@ Patch9: linux-4.2.patch
Patch10: linux-4.3.patch
Patch11: linux-4.6.patch
Patch12: linux-4.7.patch
+Patch13: linux-4.8.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)
@@ -86,6 +87,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
%patch10 -p1
%patch11 -p1
%patch12 -p1
+%patch13 -p1
%build
%{expand:%build_kernel_packages}
diff --git a/linux-4.8.patch b/linux-4.8.patch
new file mode 100644
index 0000000..8cee88e
--- /dev/null
+++ b/linux-4.8.patch
@@ -0,0 +1,17 @@
+--- rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c.orig 2016-10-11 22:43:33.301619693 +0200
++++ rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c 2016-10-11 22:45:03.937470268 +0200
+@@ -1946,7 +1946,14 @@
+ }
+ else
+ {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
++ struct cfg80211_scan_info info = {
++ .aborted = aborted
++ };
++ cfg80211_scan_done(pwdev_priv->scan_request, &info);
++#else
+ cfg80211_scan_done(pwdev_priv->scan_request, aborted);
++#endif
+ }
+
+ pwdev_priv->scan_request = NULL;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/4c684a7af0949c1fe5560860c5d9a31e575bf6f2
More information about the pld-cvs-commit
mailing list