--- /dev/null
+--- 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;
# 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
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)
%patch10 -p1
%patch11 -p1
%patch12 -p1
+%patch13 -p1
%build
%{expand:%build_kernel_packages}