From 27260c41971c679f50a6732f29d05b509a468ecb Mon Sep 17 00:00:00 2001 From: Nimloth Date: Sun, 23 Oct 2016 09:44:58 +0200 Subject: [PATCH] broadcom-wl-dkms: add patch to fix dkms on 4.8 (#5019) broadcom-wl-dkms: add patch to fix dkms on linux-4.8 --- .../broadcom-wl-dkms/patches/linux-4.8.patch | 52 +++++++++++++++++++ srcpkgs/broadcom-wl-dkms/template | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch new file mode 100644 index 00000000000..185376b9080 --- /dev/null +++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.8.patch @@ -0,0 +1,52 @@ +Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839629 + +--- src/wl/sys/wl_cfg80211_hybrid.c 2016-10-03 10:53:55.588036464 +0200 ++++ src/wl/sys/wl_cfg80211_hybrid.c 2016-10-03 10:54:11.911695944 +0200 +@@ -2386,8 +2386,15 @@ + s32 err = 0; + + if (wl->scan_request) { ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) ++ struct cfg80211_scan_info info = { ++ .aborted = true ++ }; + WL_DBG(("%s: Aborting scan\n", __FUNCTION__)); +- cfg80211_scan_done(wl->scan_request, true); ++ cfg80211_scan_done(wl->scan_request, &info); ++#else ++ cfg80211_scan_done(wl->scan_request, true); ++#endif + wl->scan_request = NULL; + } + +@@ -2488,7 +2495,14 @@ + + scan_done_out: + if (wl->scan_request) { ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) ++ struct cfg80211_scan_info info = { ++ .aborted = false ++ }; ++ cfg80211_scan_done(wl->scan_request, &info); ++#else + cfg80211_scan_done(wl->scan_request, false); ++#endif + wl->scan_request = NULL; + } + rtnl_unlock(); +@@ -2913,7 +2927,14 @@ + s32 err = 0; + + if (wl->scan_request) { +- cfg80211_scan_done(wl->scan_request, true); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) ++ struct cfg80211_scan_info info = { ++ .aborted = true ++ }; ++ cfg80211_scan_done(wl->scan_request, &info); ++#else ++ cfg80211_scan_done(wl->scan_request, true); ++#endif + wl->scan_request = NULL; + } + diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template index 029da4bd15a..cfbbc17c2c2 100644 --- a/srcpkgs/broadcom-wl-dkms/template +++ b/srcpkgs/broadcom-wl-dkms/template @@ -2,7 +2,7 @@ pkgname=broadcom-wl-dkms version=6.30.223.271 -revision=3 +revision=4 maintainer="Juan RP " license="Proprietary Broadcom license" homepage="http://broadcom.com"