[wl-kmod] Fix 4.7 kernel patch

Leigh Scott leigh123linux at rpmfusion.org
Fri Sep 2 12:41:48 CEST 2016


commit 7aab64d0cd2e61a752e1c5260c13856df1378e91
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Fri Sep 2 11:41:43 2016 +0100

    Fix 4.7 kernel patch

 wl-kmod-005_kernel_4.7_IEEE80211_BAND_to_NL80211_BAND.patch | 2 +-
 wl-kmod.spec                                                | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/wl-kmod-005_kernel_4.7_IEEE80211_BAND_to_NL80211_BAND.patch b/wl-kmod-005_kernel_4.7_IEEE80211_BAND_to_NL80211_BAND.patch
index 85e61c4..2256e7c 100644
--- a/wl-kmod-005_kernel_4.7_IEEE80211_BAND_to_NL80211_BAND.patch
+++ b/wl-kmod-005_kernel_4.7_IEEE80211_BAND_to_NL80211_BAND.patch
@@ -102,7 +102,7 @@ diff -Naur hybrid-v35_64-nodebug-pcoem-6_30_223_271.orig/src/wl/sys/wl_cfg80211_
  			}
  			chan = wf_chspec_ctlchan(chanspec);
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
-+			band = (chan <= CH_MAX_2G_CHANNEL) ? NL80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
++			band = (chan <= CH_MAX_2G_CHANNEL) ? NL80211_BAND_2GHZ : NL80211_BAND_5GHZ;
 +#else
  			band = (chan <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
 +#endif
diff --git a/wl-kmod.spec b/wl-kmod.spec
index a1389a7..e3daceb 100644
--- a/wl-kmod.spec
+++ b/wl-kmod.spec
@@ -8,7 +8,7 @@
 
 Name:       wl-kmod
 Version:    6.30.223.271
-Release:    5%{?dist}
+Release:    6%{?dist}
 Summary:    Kernel module for Broadcom wireless devices
 Group:      System Environment/Kernel
 License:    Redistributable, no modification permitted
@@ -95,6 +95,9 @@ chmod 0755 $RPM_BUILD_ROOT%{kmodinstdir_prefix}*%{kmodinstdir_postfix}/* || :
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Fri Sep 02 2016 Leigh Scott <leigh123linux at googlemail.com> - 6.30.223.271-6
+- Fix 4.7 kernel patch
+
 * Mon Aug 29 2016 Nicolas Viéville <nicolas.vieville at univ-valenciennes.fr> - 6.30.223.271-5
 - Add patch to replace IEEE80211_BAND_x macros with NL80211_BAND_x ones for kernel >= 4.7
   thanks to Tim Thomas


More information about the rpmfusion-commits mailing list