summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2015-08-22 12:23:11 -0700
committerMatt Turner <mattst88@gentoo.org>2015-08-22 12:23:27 -0700
commitf64619dcd60422663f465644a6f2171b78ec181d (patch)
treeffb798e5398749a5b61668fdac85be3cc12f5663 /net-wireless/broadcom-sta/files
parentmedia-libs/mesa: Version bump to 10.6.5. (diff)
downloadgentoo-f64619dcd60422663f465644a6f2171b78ec181d.tar.gz
gentoo-f64619dcd60422663f465644a6f2171b78ec181d.tar.bz2
gentoo-f64619dcd60422663f465644a6f2171b78ec181d.zip
net-wireless/broadcom-sta: Add patch for Linux 4.2.
Package-Manager: portage-2.2.20.1 Bug: https://bugs.gentoo.org/557338
Diffstat (limited to 'net-wireless/broadcom-sta/files')
-rw-r--r--net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.248-r4-linux-4.2.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.248-r4-linux-4.2.patch b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.248-r4-linux-4.2.patch
new file mode 100644
index 000000000000..9e9f8a15b3bc
--- /dev/null
+++ b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.248-r4-linux-4.2.patch
@@ -0,0 +1,16 @@
+diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
+index ea0726f..1541dad 100644
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
+@@ -2047,7 +2047,11 @@ wl_notify_connect_status(struct wl_cfg80211_priv *wl, struct net_device *ndev,
+ }
+ else if ((event == WLC_E_LINK && ~(flags & WLC_EVENT_MSG_LINK)) ||
+ event == WLC_E_DEAUTH_IND || event == WLC_E_DISASSOC_IND) {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
++ cfg80211_disconnected(ndev, 0, NULL, 0, false, GFP_KERNEL);
++#else
+ cfg80211_disconnected(ndev, 0, NULL, 0, GFP_KERNEL);
++#endif
+ clear_bit(WL_STATUS_CONNECTED, &wl->status);
+ wl_link_down(wl);
+ wl_init_prof(wl->profile);