From db5fd61b6dea9c72fdc4a9ac010de37772bea895 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 13 Oct 2016 01:20:28 +0100 Subject: [PATCH] RTL8192DU: linux 4.8 fix --- .../patches/RTL8192DU-kernel-4.8.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch diff --git a/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch b/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch new file mode 100644 index 0000000000..c6f517ba64 --- /dev/null +++ b/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch @@ -0,0 +1,18 @@ +diff -Naur a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c +--- a/os_dep/ioctl_cfg80211.c 2016-09-11 01:51:12.796375013 +0100 ++++ b/os_dep/ioctl_cfg80211.c 2016-09-11 01:52:39.942348529 +0100 +@@ -1425,7 +1425,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;