From: Jan Rękorajski Date: Tue, 11 Oct 2016 20:47:28 +0000 (+0200) Subject: - fix building with linux 4.8 X-Git-Tag: auto/th/rtl8812au-4.3.2_11100.20140411-0.20140901.13 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frtl8812au.git;a=commitdiff_plain;h=4c684a7 - fix building with linux 4.8 - rel 13 --- 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; 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}