commit:     5c291bb9ba5f428de8e85865b1733b19a4c6a0fd
Author:     Luca Barbato <lu_zero <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 20 21:58:01 2016 +0000
Commit:     Luca Barbato <lu_zero <AT> gentoo <DOT> org>
CommitDate: Sat Aug 20 22:00:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c291bb9

net-wireless/broadcom-sta: Add linux-4.7 support

Bug #590078

Package-Manager: portage-2.3.0

 .../broadcom-sta/broadcom-sta-6.30.223.271-r3.ebuild       |  3 ++-
 .../files/broadcom-sta-6.30.223.271-r3-linux-4.7.patch     | 14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r3.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r3.ebuild
index d28e50e..6029b0c 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r3.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r3.ebuild
@@ -64,7 +64,8 @@ src_prepare() {
                "${FILESDIR}/${PN}-6.30.223.141-gcc.patch" \
                "${FILESDIR}/${PN}-6.30.223.248-r3-Wno-date-time.patch" \
                "${FILESDIR}/${PN}-6.30.223.271-r1-linux-3.18.patch" \
-               "${FILESDIR}/${PN}-6.30.223.271-r2-linux-4.3-v2.patch"
+               "${FILESDIR}/${PN}-6.30.223.271-r2-linux-4.3-v2.patch" \
+               "${FILESDIR}/${PN}-6.30.223.271-r3-linux-4.7.patch"
 
        epatch_user
 }

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r3-linux-4.7.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r3-linux-4.7.patch
new file mode 100644
index 0000000..55b30e3
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r3-linux-4.7.patch
@@ -0,0 +1,14 @@
+--- a/src/wl/sys/wl_cfg80211_hybrid.c  2016-08-20 17:19:11.285578121 +0200
++++ b/src/wl/sys/wl_cfg80211_hybrid.c  2016-08-20 17:20:55.611574041 +0200
+@@ -49,6 +49,11 @@
+ u32 wl_dbg_level = WL_DBG_ERR;
+ #endif
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
++#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
++#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
++#endif
++
+ static s32 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device 
*ndev,
+            enum nl80211_iftype type, u32 *flags, struct vif_params *params);
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)

Reply via email to