[packages/rtl8812au] - start fixing build with linux 4.12

baggins baggins at pld-linux.org
Tue Aug 1 00:01:36 CEST 2017


commit f28b7c49f1713b4500df6f9faabb7eac3af6ef7f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Aug 1 00:01:10 2017 +0200

    - start fixing build with linux 4.12

 linux-4.12.patch | 14 ++++++++++++++
 rtl8812au.spec   |  2 ++
 2 files changed, 16 insertions(+)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index 6e1fc27..bffa047 100644
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -35,6 +35,7 @@ Patch12:	linux-4.7.patch
 Patch13:	linux-4.8.patch
 Patch14:	linux-4.11.patch
 Patch15:	linux-4.11.9.patch
+Patch16:	linux-4.12.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)
@@ -92,6 +93,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 %build
 %{expand:%build_kernel_packages}
diff --git a/linux-4.12.patch b/linux-4.12.patch
new file mode 100644
index 0000000..a35c922
--- /dev/null
+++ b/linux-4.12.patch
@@ -0,0 +1,14 @@
+--- rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c~	2017-07-31 23:54:36.000000000 +0200
++++ rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c	2017-07-31 23:58:19.371143221 +0200
+@@ -5991,7 +5991,11 @@
+ #endif
+ 
+ #if defined(CONFIG_PM) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0))
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
++	wiphy->max_sched_scan_reqs = 1;
++#else
+ 	wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
++#endif
+ #ifdef CONFIG_PNO_SUPPORT
+ 	wiphy->max_sched_scan_ssids = MAX_PNO_LIST_COUNT;
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/f28b7c49f1713b4500df6f9faabb7eac3af6ef7f



More information about the pld-cvs-commit mailing list