net-wireless/broadcom-sta: Add linux-4.7 support
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 20 Aug 2016 21:58:01 +0000 (23:58 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 20 Aug 2016 22:00:49 +0000 (00:00 +0200)
Bug #590078

Package-Manager: portage-2.3.0

net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r3.ebuild
net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r3-linux-4.7.patch [new file with mode: 0644]

index d28e50e90caa4bce8687e363fcf5355337a1741c..6029b0ce3c84a06e009b4f6dbb341a9ed4809162 100644 (file)
@@ -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 (file)
index 0000000..55b30e3
--- /dev/null
@@ -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)