[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2023-06-24 Thread Mike Pagano
commit: b3538887b69d698359ce340805ab5c19e6e14bad
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jun 24 16:07:17 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jun 24 16:07:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3538887

net-wireless/broadcom-sta: Remove old and corresponding patches

Signed-off-by: Mike Pagano  gentoo.org>

 .../broadcom-sta-6.30.223.271-r6.ebuild|  94 -
 .../broadcom-sta-6.30.223.141-eth-to-wlan.patch|  12 --
 .../files/broadcom-sta-6.30.223.141-gcc.patch  |  11 --
 .../files/broadcom-sta-6.30.223.141-makefile.patch |  14 --
 ...roadcom-sta-6.30.223.248-r3-Wno-date-time.patch |  11 --
 .../broadcom-sta-6.30.223.271-r1-linux-3.18.patch  |  12 --
 ...broadcom-sta-6.30.223.271-r2-linux-4.3-v2.patch |  16 --
 .../broadcom-sta-6.30.223.271-r4-linux-4.11.patch  |  52 -
 .../broadcom-sta-6.30.223.271-r4-linux-4.12.patch  |  64 ---
 .../broadcom-sta-6.30.223.271-r4-linux-4.15.patch  |  63 --
 .../broadcom-sta-6.30.223.271-r4-linux-4.7.patch   | 109 ---
 .../broadcom-sta-6.30.223.271-r4-linux-4.8.patch   |  64 ---
 .../broadcom-sta-6.30.223.271-r5-linux-5.1.patch   |  29 ---
 .../broadcom-sta-6.30.223.271-r5-linux-5.6.patch   |  88 -
 .../broadcom-sta-6.30.223.271-r6-linux-5.9.patch   | 211 -
 15 files changed, 850 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
deleted file mode 100644
index 118df993b314..
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit linux-info linux-mod
-
-DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
-HOMEPAGE="https://www.broadcom.com/support/802.11;
-SRC_BASE="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35;
-SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
-   amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
-   
https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
-S="${WORKDIR}"
-
-LICENSE="Broadcom"
-KEYWORDS="-* ~amd64 ~x86"
-
-RESTRICT="mirror"
-
-DEPEND="virtual/linux-sources"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch"
-   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch"
-   "${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-r4-linux-4.7.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.15.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.1.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.6.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r6-linux-5.9.patch"
-)
-
-MODULE_NAMES="wl(net/wireless)"
-MODULESD_WL_ALIASES=("wlan0 wl")
-
-pkg_pretend() {
-   ewarn
-   ewarn "If you are stuck using this unmaintained driver (likely in a 
MacBook),"
-   ewarn "you may be interested to know that a newer compatible wireless 
card"
-   ewarn "is supported by the in-tree brcmfmac driver. It has a model 
number "
-   ewarn "BCM943602CS and is for sale on the second hand market for less 
than "
-   ewarn "20 USD."
-   ewarn
-   ewarn "See https://wikidevi.com/wiki/Broadcom_Wireless_Adapters and"
-   ewarn "https://wikidevi.com/wiki/Broadcom_BCM943602CS;
-   ewarn "for more information."
-   ewarn
-}
-
-pkg_setup() {
-   # bug #300570
-   # NOTE: module builds correctly anyway with b43 and SSB enabled
-   # make checks non-fatal. The correct fix is blackisting ssb and, perhaps
-   # b43 via udev rules. Moreover, previous fix broke binpkgs support.
-   CONFIG_CHECK="~!B43 ~!BCMA ~!SSB ~!X86_INTEL_LPSS"
-   CONFIG_CHECK2="~LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
-   ERROR_B43="B43: If you insist on building this, you must blacklist it!"
-   ERROR_BCMA="BCMA: If you insist on building this, you must blacklist 
it!"
-   ERROR_SSB="SSB: If you insist on building this, you must blacklist it!"
-   ERROR_LIB80211="LIB80211: Please enable it. If you can't find it: 
enabling the driver for \"Intel PRO/Wireless 2100\" or \"Intel PRO/Wireless 
2200BG\" (IPW2100 or IPW2200) should suffice."
-   ERROR_MAC80211="MAC80211: If you insist on building this, you must 
blacklist it!"
-   ERROR_PREEMPT_RCU="PREEMPT_RCU: Please do not set the Preemption Model 
to \"Preemptible Kernel\"; choose 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2023-06-24 Thread Mike Pagano
commit: b1469bc903cac37bff61b41532127110909d5f57
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jun 24 16:09:49 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jun 24 16:09:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1469bc9

net-wireless/broadcom-sta: add 6.30.223.271-r7

Bump to EAPI-8
Migrate to linux-mod-r1
Include arch patches
Address pkgcheck errors concerning S in pkg_setup
Fix compilation errors

Thanks to the following users that provided patches
ShadowOne333
Alan Kyder

Closes: https://bugs.gentoo.org/836093
Closes: https://bugs.gentoo.org/852569
Closes: https://bugs.gentoo.org/836165
Closes: https://bugs.gentoo.org/839648
Closes: https://bugs.gentoo.org/908711

Signed-off-by: Mike Pagano  gentoo.org>

 .../broadcom-sta-6.30.223.271-r7.ebuild| 103 ++
 .../broadcom-sta/files/001-null-pointer-fix.patch  |  48 +
 net-wireless/broadcom-sta/files/002-rdtscl.patch   |  22 +++
 net-wireless/broadcom-sta/files/003-linux47.patch  | 109 +++
 net-wireless/broadcom-sta/files/004-linux48.patch  |  64 +++
 .../files/005-debian-fix-kernel-warnings.patch | 161 
 net-wireless/broadcom-sta/files/006-linux411.patch |  27 +++
 net-wireless/broadcom-sta/files/007-linux412.patch |  78 
 net-wireless/broadcom-sta/files/008-linux415.patch |  46 +
 .../files/009-fix_mac_profile_discrepancy.patch|  14 ++
 net-wireless/broadcom-sta/files/010-linux56.patch  |  55 ++
 net-wireless/broadcom-sta/files/011-linux59.patch  | 211 +
 net-wireless/broadcom-sta/files/012-linux517.patch |  80 
 net-wireless/broadcom-sta/files/013-linux518.patch |  71 +++
 net-wireless/broadcom-sta/files/014-linux414.patch |  37 
 net-wireless/broadcom-sta/files/015-linux600.patch |  31 +++
 net-wireless/broadcom-sta/files/016-linux601.patch |  90 +
 .../broadcom-sta/files/broadcom-sta-modules.conf   |  17 ++
 18 files changed, 1264 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r7.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r7.ebuild
new file mode 100644
index ..efe1beb913de
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r7.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit linux-mod-r1
+
+DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
+HOMEPAGE="https://www.broadcom.com/support/802.11;
+SRC_BASE="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35;
+SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
+   amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
+   
https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
+
+LICENSE="Broadcom"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+RESTRICT="mirror"
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+PATCHES=(
+   "${FILESDIR}/001-null-pointer-fix.patch"
+   "${FILESDIR}/002-rdtscl.patch"
+   "${FILESDIR}/003-linux47.patch"
+   "${FILESDIR}/004-linux48.patch"
+   "${FILESDIR}/005-debian-fix-kernel-warnings.patch"
+   "${FILESDIR}/006-linux411.patch"
+   "${FILESDIR}/007-linux412.patch"
+   "${FILESDIR}/008-linux415.patch"
+   "${FILESDIR}/009-fix_mac_profile_discrepancy.patch"
+   "${FILESDIR}/010-linux56.patch"
+   "${FILESDIR}/011-linux59.patch"
+   "${FILESDIR}/012-linux517.patch"
+   "${FILESDIR}/013-linux518.patch"
+   "${FILESDIR}/014-linux414.patch"
+   "${FILESDIR}/015-linux600.patch"
+   "${FILESDIR}/016-linux601.patch"
+)
+
+pkg_pretend() {
+   ewarn
+   ewarn "If you are stuck using this unmaintained driver (likely in a 
MacBook),"
+   ewarn "you may be interested to know that a newer compatible wireless 
card"
+   ewarn "is supported by the in-tree brcmfmac driver. It has a model 
number "
+   ewarn "BCM943602CS and is for sale on the second hand market for less 
than "
+   ewarn "20 USD."
+   ewarn
+   ewarn "See https://wikidevi.com/wiki/Broadcom_Wireless_Adapters and"
+   ewarn "https://wikidevi.com/wiki/Broadcom_BCM943602CS;
+   ewarn "for more information."
+   ewarn
+}
+
+pkg_setup() {
+   # bug #300570
+   # NOTE: module builds correctly anyway with b43 and SSB enabled
+   # make checks non-fatal. The correct fix is blackisting ssb and, perhaps
+   # b43 via udev rules. Moreover, previous fix broke binpkgs support.
+   CONFIG_CHECK="~!B43 ~!BCMA ~!SSB ~!X86_INTEL_LPSS"
+   CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
+   ERROR_B43="B43: If you insist on building this, you must blacklist it!"
+   ERROR_BCMA="BCMA: If you insist on building this, you must blacklist 
it!"
+   ERROR_SSB="SSB: If you insist on building this, you must blacklist 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2021-04-27 Thread Mike Gilbert
commit: 5f55197e3c4f5953895e7dcc0f1d7a1bce5aa396
Author: David Michael  gmail  com>
AuthorDate: Tue Apr 27 00:19:01 2021 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Tue Apr 27 13:59:06 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f55197e

net-wireless/broadcom-sta: make CONFIG_LIB80211 optional

Closes: https://bugs.gentoo.org/785922
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: David Michael  gmail.com>
Signed-off-by: Mike Gilbert  gentoo.org>

 net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
index 57a5de8d0d2..118df993b31 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
@@ -60,7 +60,7 @@ pkg_setup() {
# make checks non-fatal. The correct fix is blackisting ssb and, perhaps
# b43 via udev rules. Moreover, previous fix broke binpkgs support.
CONFIG_CHECK="~!B43 ~!BCMA ~!SSB ~!X86_INTEL_LPSS"
-   CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
+   CONFIG_CHECK2="~LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
ERROR_B43="B43: If you insist on building this, you must blacklist it!"
ERROR_BCMA="BCMA: If you insist on building this, you must blacklist 
it!"
ERROR_SSB="SSB: If you insist on building this, you must blacklist it!"



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/, net-wireless/broadcom-sta/files/

2021-04-11 Thread Joonas Niilola
commit: 1460a7472a1a86edb1bb089bb321b4f5562ddc9d
Author: Marco Genasci  gmail  com>
AuthorDate: Sat Apr  3 16:23:35 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun Apr 11 08:06:27 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1460a747

net-wireless/broadcom-sta: linux >=5.9 support

Closes: https://bugs.gentoo.org/761286
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Marco Genasci  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/20246
Signed-off-by: Joonas Niilola  gentoo.org>

 .../broadcom-sta-6.30.223.271-r6.ebuild|   1 +
 .../broadcom-sta-6.30.223.271-r6-linux-5.9.patch   | 211 +
 2 files changed, 212 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
index a75c785b267..57a5de8d0d2 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
@@ -34,6 +34,7 @@ PATCHES=(
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.15.patch"
"${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.1.patch"
"${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.6.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r6-linux-5.9.patch"
 )
 
 MODULE_NAMES="wl(net/wireless)"

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r6-linux-5.9.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r6-linux-5.9.patch
new file mode 100644
index 000..6ef476464c0
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r6-linux-5.9.patch
@@ -0,0 +1,211 @@
+From f3d652840f8dd959395065a1cf67ca40b04ec69b Mon Sep 17 00:00:00 2001
+From: Joan Bruguera 
+Date: Tue, 13 Oct 2020 19:35:55 +0200
+Subject: [PATCH] Get rid of get_fs/set_fs calls in Broadcom WL driver.
+
+Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 5.10 (tested 
-rc1 up to 5.10.1)
+
+Applies on top of all the patches applied to broadcom-wl-dkms 6.30.223.271-23 
on Arch Linux.
+
+NB: Some checks in wlc_ioctl_internal are likely superfluous,
+but I'm not familiar enough with the driver to remove them with confidence.
+
+See also: https://lwn.net/Articles/722267/
+  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47058bb54b57962b3958a936ddbc59355e4c5504
+  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5e6e9852d6f76e01b2e6803c74258afa5b432bc5
+
+Signed-off-by: Joan Bruguera 
+---
+ src/wl/sys/wl_cfg80211_hybrid.c | 25 ++---
+ src/wl/sys/wl_iw.c  | 25 ++---
+ src/wl/sys/wl_linux.c   | 40 -
+ src/wl/sys/wl_linux.h   |  2 ++
+ src/wl/sys/wlc_pub.h|  1 +
+ 5 files changed, 42 insertions(+), 51 deletions(-)
+
+diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
+index 7b606e0..1e0adb7 100644
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
 b/src/wl/sys/wl_cfg80211_hybrid.c
+@@ -38,6 +38,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define EVENT_TYPE(e) dtoh32((e)->event_type)
+ #define EVENT_FLAGS(e) dtoh16((e)->flags)
+@@ -435,30 +436,7 @@ static void key_endian_to_host(struct wl_wsec_key *key)
+ static s32
+ wl_dev_ioctl(struct net_device *dev, u32 cmd, void *arg, u32 len)
+ {
+-  struct ifreq ifr;
+-  struct wl_ioctl ioc;
+-  mm_segment_t fs;
+-  s32 err = 0;
+-
+-  BUG_ON(len < sizeof(int));
+-
+-  memset(, 0, sizeof(ioc));
+-  ioc.cmd = cmd;
+-  ioc.buf = arg;
+-  ioc.len = len;
+-  strcpy(ifr.ifr_name, dev->name);
+-  ifr.ifr_data = (caddr_t)
+-
+-  fs = get_fs();
+-  set_fs(get_ds());
+-#if defined(WL_USE_NETDEV_OPS)
+-  err = dev->netdev_ops->ndo_do_ioctl(dev, , SIOCDEVPRIVATE);
+-#else
+-  err = dev->do_ioctl(dev, , SIOCDEVPRIVATE);
+-#endif
+-  set_fs(fs);
+-
+-  return err;
++  return wlc_ioctl_internal(dev, cmd, arg, len);
+ }
+ 
+ static s32
+diff --git a/src/wl/sys/wl_iw.c b/src/wl/sys/wl_iw.c
+index c4c610b..e346b15 100644
+--- a/src/wl/sys/wl_iw.c
 b/src/wl/sys/wl_iw.c
+@@ -37,6 +37,7 @@ typedef const struct si_pub  si_t;
+ 
+ #include 
+ #include 
++#include 
+ 
+ extern bool wl_iw_conn_status_str(uint32 event_type, uint32 status,
+   uint32 reason, char* stringBuf, uint buflen);
+@@ -103,29 +104,7 @@ dev_wlc_ioctl(
+   int len
+ )
+ {
+-  struct ifreq ifr;
+-  wl_ioctl_t ioc;
+-  mm_segment_t fs;
+-  int ret;
+-
+-  memset(, 0, sizeof(ioc));
+-  ioc.cmd = cmd;
+-  ioc.buf = arg;
+-  ioc.len = len;
+-
+-  strcpy(ifr.ifr_name, dev->name);
+-  ifr.ifr_data = (caddr_t) 
+-
+-  fs = get_fs();
+-  set_fs(get_ds());
+-#if defined(WL_USE_NETDEV_OPS)
+-  ret = dev->netdev_ops->ndo_do_ioctl(dev, , SIOCDEVPRIVATE);
+-#else
+-  ret = dev->do_ioctl(dev, , 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2021-03-09 Thread Sam James
commit: 6b7e9c45d80ddda866432ccfe110e219ad5012a3
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 10 01:25:04 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 10 01:25:04 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b7e9c45

net-wireless/broadcom-sta: drop unused eutils

Signed-off-by: Sam James  gentoo.org>

 net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
index 97fa2fc9dde..a75c785b267 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit eutils linux-info linux-mod
+inherit linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
 HOMEPAGE="https://www.broadcom.com/support/802.11;



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2021-03-09 Thread Sam James
commit: 0e8388b9888cee25d4fa45f6a75db2f82f39993c
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 10 00:34:12 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 10 00:34:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e8388b9

net-wireless/broadcom-sta: adjust ebuild structure

* Sort variables
* Move PATCHES to out of 'phase space'

Signed-off-by: Sam James  gentoo.org>

 .../broadcom-sta-6.30.223.271-r6.ebuild| 37 +++---
 1 file changed, 18 insertions(+), 19 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
index b84669a9969..97fa2fc9dde 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+
 inherit eutils linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
@@ -10,6 +11,7 @@ 
SRC_BASE="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35
 SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )

https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
+S="${WORKDIR}"
 
 LICENSE="Broadcom"
 KEYWORDS="-* ~amd64 ~x86"
@@ -17,9 +19,22 @@ KEYWORDS="-* ~amd64 ~x86"
 RESTRICT="mirror"
 
 DEPEND="virtual/linux-sources"
-RDEPEND=""
 
-S="${WORKDIR}"
+PATCHES=(
+   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch"
+   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch"
+   "${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-r4-linux-4.7.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.15.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.1.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.6.patch"
+)
 
 MODULE_NAMES="wl(net/wireless)"
 MODULESD_WL_ALIASES=("wlan0 wl")
@@ -71,22 +86,6 @@ pkg_setup() {
BUILD_TARGETS="wl.ko"
 }
 
-PATCHES=(
-   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch"
-   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch"
-   "${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-r4-linux-4.7.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.15.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.1.patch"
-   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.6.patch"
-)
-
 src_install() {
linux-mod_src_install
 



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2020-08-08 Thread Mikle Kolyada
commit: 9ecf9092b7eda7448403c3267f4203be783fd471
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Fri Aug  7 11:07:27 2020 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat Aug  8 12:18:16 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ecf9092

net-wireless/broadcom-sta: migrate to sys-apps/kmod

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Mikle Kolyada  gentoo.org>

 ...com-sta-6.30.223.271-r5.ebuild => broadcom-sta-6.30.223.271-r6.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild
similarity index 100%
rename from net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild
rename to net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r6.ebuild



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/, net-wireless/broadcom-sta/files/

2020-06-01 Thread Stefan Strogin
commit: 3742de12e9abd41eebaa87c724b49dc39f7d4ce5
Author: Azamat H. Hackimov  gmail  com>
AuthorDate: Mon Jun  1 16:09:39 2020 +
Commit: Stefan Strogin  gentoo  org>
CommitDate: Mon Jun  1 22:01:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3742de12

net-wireless/broadcom-sta: linux 5.6 support

Add patch that resolves compilation error described in #717320.

Closes: https://bugs.gentoo.org/717320
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Azamat H. Hackimov  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16043
Signed-off-by: Stefan Strogin  gentoo.org>

 .../broadcom-sta-6.30.223.271-r5.ebuild|  3 +-
 .../broadcom-sta-6.30.223.271-r5-linux-5.6.patch   | 88 ++
 2 files changed, 90 insertions(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild
index 91581b52a4e..b84669a9969 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -84,6 +84,7 @@ PATCHES=(
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch"
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.15.patch"
"${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.1.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.6.patch"
 )
 
 src_install() {

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r5-linux-5.6.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r5-linux-5.6.patch
new file mode 100644
index 000..71264346f86
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r5-linux-5.6.patch
@@ -0,0 +1,88 @@
+From: Herman van Hazendonk 
+Date: Tue, 31 Mar 2020 17:09:55 +0200
+Subject: [PATCH] Add fixes for 5.6 kernel
+Origin: https://salsa.debian.org/Herrie82-guest/broadcom-sta/-/merge_requests/1
+
+Use ioremap instead of ioremap_nocache and proc_ops instead of
+file_operations on Linux kernel 5.6 and above.
+
+ Patch amended to adapt i386 arch.
+---
+ src/shared/linux_osl.c |  6 +-
+ src/wl/sys/wl_linux.c  | 21 -
+ 2 files changed, 25 insertions(+), 2 deletions(-)
+
+diff --git a/src/shared/linux_osl.c b/src/shared/linux_osl.c
+index b24a973..9bce9b1 100644
+--- a/src/shared/linux_osl.c
 b/src/shared/linux_osl.c
+@@ -946,7 +946,11 @@ osl_getcycles(void)
+ void *
+ osl_reg_map(uint32 pa, uint size)
+ {
+-  return (ioremap_nocache((unsigned long)pa, (unsigned long)size));
++  #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++  return (ioremap((unsigned long)pa, (unsigned long)size));
++  #else
++  return (ioremap_nocache((unsigned long)pa, (unsigned 
long)size));
++  #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) */
+ }
+ 
+ void
+diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
+index ab7b883..10621c2 100644
+--- a/src/wl/sys/wl_linux.c
 b/src/wl/sys/wl_linux.c
+@@ -590,10 +590,17 @@ wl_attach(uint16 vendor, uint16 device, ulong regs,
+   }
+   wl->bcm_bustype = bustype;
+ 
++  #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++  if ((wl->regsva = ioremap(dev->base_addr, PCI_BAR0_WINSZ)) == NULL) {
++  WL_ERROR(("wl%d: ioremap() failed\n", unit));
++  goto fail;
++  }
++  #else
+   if ((wl->regsva = ioremap_nocache(dev->base_addr, PCI_BAR0_WINSZ)) == 
NULL) {
+   WL_ERROR(("wl%d: ioremap() failed\n", unit));
+   goto fail;
+   }
++  #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) */
+ 
+   wl->bar1_addr = bar1_addr;
+   wl->bar1_size = bar1_size;
+@@ -780,8 +787,13 @@ wl_pci_probe(struct pci_dev *pdev, const struct 
pci_device_id *ent)
+   if ((val & 0xff00) != 0)
+   pci_write_config_dword(pdev, 0x40, val & 0x00ff);
+   bar1_size = pci_resource_len(pdev, 2);
++  #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++  bar1_addr = (uchar *)ioremap(pci_resource_start(pdev, 2),
++  bar1_size);
++  #else
+   bar1_addr = (uchar *)ioremap_nocache(pci_resource_start(pdev, 
2),
+   bar1_size);
++  #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) */
+   wl = wl_attach(pdev->vendor, pdev->device, pci_resource_start(pdev, 0), 
PCI_BUS, pdev,
+   pdev->irq, bar1_addr, bar1_size);
+ 
+@@ -3354,12 +3366,19 @@ wl_proc_write(struct file *filp, const char __user 
*buff, size_t length, loff_t
+ }
+ 
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static const struct proc_ops wl_fops = {

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/, net-wireless/broadcom-sta/files/

2019-08-20 Thread Louis Sautier
commit: 50d614cc8c602bbc5ced0bab0c5de1ca3a91567d
Author: Louis Sautier  gentoo  org>
AuthorDate: Sun Jul 21 19:16:54 2019 +
Commit: Louis Sautier  gentoo  org>
CommitDate: Tue Aug 20 11:47:03 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d614cc

net-wireless/broadcom-sta: fix build for kernel 5.1, EAPI=7

* Apply Ubuntu's patch for the 5.1 kernel, taken from
  
http://launchpadlibrarian.net/429676743/bcmwl_6.30.223.271+bdcom-0ubuntu4_6.30.223.271+bdcom-0ubuntu5.diff.gz.
* Bump to EAPI 7 and use an array for PATCHES, fix one patch that didn't
  apply with -p1.

Closes: https://bugs.gentoo.org/685214
Closes: https://github.com/gentoo/gentoo/pull/12500
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Louis Sautier  gentoo.org>

 ebuild => broadcom-sta-6.30.223.271-r5.ebuild} | 32 ++
 .../files/broadcom-sta-6.30.223.141-makefile.patch |  4 +--
 .../broadcom-sta-6.30.223.271-r5-linux-5.1.patch   | 29 
 3 files changed, 46 insertions(+), 19 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild
similarity index 82%
rename from net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
rename to net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild
index 95eeba5c483..91581b52a4e 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r5.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 inherit eutils linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
@@ -71,22 +71,20 @@ pkg_setup() {
BUILD_TARGETS="wl.ko"
 }
 
-src_prepare() {
-   epatch \
-   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch" \
-   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch" \
-   "${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-r4-linux-4.7.patch" \
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch" \
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch" \
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch" \
+PATCHES=(
+   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch"
+   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch"
+   "${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-r4-linux-4.7.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch"
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.15.patch"
-
-   epatch_user
-}
+   "${FILESDIR}/${PN}-6.30.223.271-r5-linux-5.1.patch"
+)
 
 src_install() {
linux-mod_src_install

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.141-makefile.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.141-makefile.patch
index 09c495d2a10..d5b97fe87eb 100644
--- a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.141-makefile.patch
+++ b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.141-makefile.patch
@@ -1,5 +1,5 @@
 Makefile.old   2013-04-28 22:42:59.0 +0200
-+++ Makefile   2013-04-28 22:45:53.0 +0200
+--- a/Makefile 2013-04-28 22:42:59.0 +0200
 b/Makefile 2013-04-28 22:45:53.0 +0200
 @@ -128,9 +128,9 @@
  
  EXTRA_LDFLAGS  := $(src)/lib/wlc_hybrid.o_shipped

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r5-linux-5.1.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r5-linux-5.1.patch
new file mode 100644
index 000..fcee46ea3d0
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r5-linux-5.1.patch
@@ -0,0 +1,29 @@
+From 20bb1a6da26c496572ee63d310cdf69a2f1553f8 Mon Sep 17 00:00:00 2001
+From: Seth Forshee 
+Date: Fri, 17 May 2019 20:32:20 +
+Subject: [PATCH] add support for linux 5.1
+
+get_ds() was removed and replaced universally with KERNEL_DS.
+Provide a version of get_ds() to do likewise for 5.1 and later.
+
+Signed-off-by: Seth Forshee 
+---
+ src/include/linuxver.h | 5 +
+ 1 file changed, 5 insertions(+)
+
+diff --git 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2018-05-12 Thread Nick Sarnie
commit: 939de78ff1261d4c4bea22ff9b0fc4041e2fd612
Author: Nick Sarnie  gentoo  org>
AuthorDate: Sat May 12 16:16:00 2018 +
Commit: Nick Sarnie  gentoo  org>
CommitDate: Sat May 12 16:16:48 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=939de78f

net-wireless/broadcom-sta: Drop myself as maintainer

I no longer have the hardware

Package-Manager: Portage-2.3.36, Repoman-2.3.9

 net-wireless/broadcom-sta/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index e5624803368..599aa053926 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -1,10 +1,6 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
-   sar...@gentoo.org
-   Nick Sarnie
-   

e...@gentoo.org
Gilles Dartiguelongue



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2018-04-22 Thread Nick Sarnie
commit: f32fa362763d7ac0138fba01f8161108e6ec2032
Author: Nick Sarnie  gentoo  org>
AuthorDate: Sun Apr 22 19:22:06 2018 +
Commit: Nick Sarnie  gentoo  org>
CommitDate: Sun Apr 22 19:25:53 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f32fa362

net-wireless/broadcom-sta: Add myself as maintainer

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 net-wireless/broadcom-sta/metadata.xml | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index cd159c0bf30..e5624803368 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -2,17 +2,13 @@
 http://www.gentoo.org/dtd/metadata.dtd;>
 

-   commendsar...@gmail.com
+   sar...@gentoo.org
Nick Sarnie


e...@gentoo.org
Gilles Dartiguelongue

-   
-   proxy-ma...@gentoo.org
-   Proxy Maintainers
-   

~albertomilone




[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2018-04-03 Thread Jonas Stein
commit: 78f189523224b1cf1aaf259487ef3474749c9c5c
Author: Jonas Stein  gentoo  org>
AuthorDate: Tue Apr  3 15:26:44 2018 +
Commit: Jonas Stein  gentoo  org>
CommitDate: Tue Apr  3 15:27:51 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78f18952

net-wireless/broadcom-sta: Maintainer retired

Proxied maintainer was retired due to inactivity.
Closes: https://bugs.gentoo.org/632854
Package-Manager: Portage-2.3.28, Repoman-2.3.9

 net-wireless/broadcom-sta/metadata.xml | 5 -
 1 file changed, 5 deletions(-)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index ded3ea02120..cd159c0bf30 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -1,14 +1,9 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
-   tombo...@sina.cn
-   M.B.
-   

commendsar...@gmail.com
Nick Sarnie
-   Proxy co-maintainer


e...@gentoo.org



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2018-03-25 Thread Gilles Dartiguelongue
commit: cc1188d5f7095d2ea22be8e4d0d3f99a5ba81168
Author: Nick Sarnie  gmail  com>
AuthorDate: Tue Mar 13 20:30:42 2018 +
Commit: Gilles Dartiguelongue  gentoo  org>
CommitDate: Sun Mar 25 22:07:44 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc1188d5

net-wireless/broadcom-sta: Add myself as proxy co-maintainer

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-wireless/broadcom-sta/metadata.xml | 9 +
 1 file changed, 9 insertions(+)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index 29b7c78b10d..ad8c7dc2e19 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -5,6 +5,15 @@
tombo...@sina.cn
M.B.

+   
+   commendsar...@gmail.com
+   Nick Sarnie
+   Proxy co-maintainer
+   
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   

~albertomilone




[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2018-03-25 Thread Gilles Dartiguelongue
commit: b11bd28ce56dd4b4c08001d3cfa9679d336a2527
Author: Gilles Dartiguelongue  gentoo  org>
AuthorDate: Sun Mar 25 21:59:07 2018 +
Commit: Gilles Dartiguelongue  gentoo  org>
CommitDate: Sun Mar 25 22:07:45 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b11bd28c

net-wireless/broadcom-sta: add myself as maintainer

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-wireless/broadcom-sta/metadata.xml | 4 
 1 file changed, 4 insertions(+)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index ad8c7dc2e19..ded3ea02120 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -10,6 +10,10 @@
Nick Sarnie
Proxy co-maintainer

+   
+   e...@gentoo.org
+   Gilles Dartiguelongue
+   

proxy-ma...@gentoo.org
Proxy Maintainers



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/, net-wireless/broadcom-sta/files/

2018-03-25 Thread Gilles Dartiguelongue
commit: 512c492ad7da750b2d9e1c794b2dee8c774eb3aa
Author: Nick Sarnie  gmail  com>
AuthorDate: Tue Mar 13 19:17:30 2018 +
Commit: Gilles Dartiguelongue  gentoo  org>
CommitDate: Sun Mar 25 22:07:42 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=512c492a

net-wireless/broadcom-sta: Fix build on 4.15

Bug: https://bugs.gentoo.org/646106
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7449

 .../broadcom-sta-6.30.223.271-r4.ebuild|  5 +-
 .../broadcom-sta-6.30.223.271-r4-linux-4.15.patch  | 63 ++
 2 files changed, 66 insertions(+), 2 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
index 34b37eceeaf..b5e03a3184f 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -81,7 +81,8 @@ src_prepare() {
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.7.patch" \
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch" \
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch" \
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch" \
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.15.patch"
 
epatch_user
 }

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.15.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.15.patch
new file mode 100644
index 000..91c4d89519c
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.15.patch
@@ -0,0 +1,63 @@
+diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
+index 489c9f5..f8278ad 100644
+--- a/src/wl/sys/wl_linux.c
 b/src/wl/sys/wl_linux.c
+@@ -93,7 +93,11 @@
+ 
+ #include 
+ 
++#ifdef HAVE_TIMER_SETUP
++static void wl_timer(struct timer_list *list);
++#else
+ static void wl_timer(ulong data);
++#endif
+ static void _wl_timer(wl_timer_t *t);
+ static struct net_device *wl_alloc_linux_if(wl_if_t *wlif);
+ 
+@@ -2296,12 +2300,17 @@
+ 
+   atomic_dec(>wl->callbacks);
+ }
+-
++#ifdef HAVE_TIMER_SETUP
++static void
++wl_timer(struct timer_list *list)
++{
++  wl_timer_t *t = from_timer(t,list,timer);
++#else
+ static void
+ wl_timer(ulong data)
+ {
+   wl_timer_t *t = (wl_timer_t *)data;
+-
++#endif
+   if (!WL_ALL_PASSIVE_ENAB(t->wl))
+   _wl_timer(t);
+   else
+@@ -2351,10 +2360,13 @@
+   }
+ 
+   bzero(t, sizeof(wl_timer_t));
+-
++#ifdef HAVE_TIMER_SETUP
++  timer_setup(>timer, wl_timer,0);
++#else
+   init_timer(>timer);
+   t->timer.data = (ulong) t;
+   t->timer.function = wl_timer;
++#endif
+   t->wl = wl;
+   t->fn = fn;
+   t->arg = arg;
+diff --git a/src/wl/sys/wl_linux.h b/src/wl/sys/wl_linux.h
+index 489c9f5..f8278ad 100644
+--- a/src/wl/sys/wl_linux.h
 b/src/wl/sys/wl_linux.h
+@@ -190,3 +190,7 @@
+ extern struct net_device * wl_netdev_get(wl_info_t *wl);
+ 
+ #endif 
++
++#if defined(timer_setup) && defined(from_timer)
++#define HAVE_TIMER_SETUP
++#endif



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2018-03-25 Thread Gilles Dartiguelongue
commit: 5aea9546fc3c8b521cb272e0c8b996c7388b0b17
Author: Nick Sarnie  gmail  com>
AuthorDate: Tue Mar 13 19:38:15 2018 +
Commit: Gilles Dartiguelongue  gentoo  org>
CommitDate: Sun Mar 25 22:07:43 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aea9546

net-wireless/broadcom-sta: Warn the user about CONFIG_X86_INTEL_LPSS

Bug: https://bugs.gentoo.org/551834
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
index b5e03a3184f..95eeba5c483 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -43,7 +43,7 @@ pkg_setup() {
# NOTE: module builds correctly anyway with b43 and SSB enabled
# make checks non-fatal. The correct fix is blackisting ssb and, perhaps
# b43 via udev rules. Moreover, previous fix broke binpkgs support.
-   CONFIG_CHECK="~!B43 ~!BCMA ~!SSB"
+   CONFIG_CHECK="~!B43 ~!BCMA ~!SSB ~!X86_INTEL_LPSS"
CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
ERROR_B43="B43: If you insist on building this, you must blacklist it!"
ERROR_BCMA="BCMA: If you insist on building this, you must blacklist 
it!"
@@ -52,6 +52,7 @@ pkg_setup() {
ERROR_MAC80211="MAC80211: If you insist on building this, you must 
blacklist it!"
ERROR_PREEMPT_RCU="PREEMPT_RCU: Please do not set the Preemption Model 
to \"Preemptible Kernel\"; choose something else."
ERROR_LIB80211_CRYPT_TKIP="LIB80211_CRYPT_TKIP: You will need this for 
WPA."
+   ERROR_X86_INTEL_LPSS="X86_INTEL_LPSS: Please disable it. The module 
does not work with it enabled."
if kernel_is ge 3 8 8; then
CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211 
~!PREEMPT_RCU ~!PREEMPT"
elif kernel_is ge 2 6 32; then



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2017-09-09 Thread Matt Turner
commit: 45dec5139d6edde19819e350c00cb2b7a42bf2a5
Author: Matt Turner  gentoo  org>
AuthorDate: Sat Sep  9 20:33:43 2017 +
Commit: Matt Turner  gentoo  org>
CommitDate: Sat Sep  9 20:33:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45dec513

net-wireless/broadcom-sta: Remove myself as a maintainer

I have replaced the BCM94360CS wireless card in my MacBook with a BCM943602CS
which is supported by the in-tree brcmfmac wireless driver, so I will not be
able to maintain this driver any longer (nor will I have to suffer from using
it!)

See
https://wikidevi.com/wiki/Broadcom_Wireless_Adapters
https://wikidevi.com/wiki/Broadcom_BCM94360CS
https://wikidevi.com/wiki/Broadcom_BCM943602CS
for more information.

 net-wireless/broadcom-sta/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index 07138473be1..29b7c78b10d 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -2,10 +2,6 @@
 http://www.gentoo.org/dtd/metadata.dtd;>
 

-   matts...@gentoo.org
-   Matt Turner
-   
-   
tombo...@sina.cn
M.B.




[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2017-09-09 Thread Matt Turner
commit: a315a2dffd3af7817c6af988b1d54b8795522a71
Author: Matt Turner  gentoo  org>
AuthorDate: Sat Sep  9 20:30:54 2017 +
Commit: Matt Turner  gentoo  org>
CommitDate: Sat Sep  9 20:31:17 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a315a2df

net-wireless/broadcom-sta: Inform users about a compatible wireless card

 .../broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild   | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
index 5cf284a4ceb..34b37eceeaf 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -24,6 +24,20 @@ S="${WORKDIR}"
 MODULE_NAMES="wl(net/wireless)"
 MODULESD_WL_ALIASES=("wlan0 wl")
 
+pkg_pretend() {
+   ewarn
+   ewarn "If you are stuck using this unmaintained driver (likely in a 
MacBook),"
+   ewarn "you may be interested to know that a newer compatible wireless 
card"
+   ewarn "is supported by the in-tree brcmfmac driver. It has a model 
number "
+   ewarn "BCM943602CS and is for sale on the second hand market for less 
than "
+   ewarn "20 USD."
+   ewarn
+   ewarn "See https://wikidevi.com/wiki/Broadcom_Wireless_Adapters and"
+   ewarn "https://wikidevi.com/wiki/Broadcom_BCM943602CS;
+   ewarn "for more information."
+   ewarn
+}
+
 pkg_setup() {
# bug #300570
# NOTE: module builds correctly anyway with b43 and SSB enabled



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2017-06-10 Thread Matt Turner
commit: 585c4d59c257faae50dd714419b97683381b1432
Author: Matt Turner  gentoo  org>
AuthorDate: Sat Jun 10 22:55:01 2017 +
Commit: Matt Turner  gentoo  org>
CommitDate: Sat Jun 10 22:55:01 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=585c4d59

net-wireless/broadcom-sta: Patch for Linux 4.12 changes

 .../broadcom-sta-6.30.223.271-r4.ebuild|  3 +-
 .../broadcom-sta-6.30.223.271-r4-linux-4.12.patch  | 64 ++
 2 files changed, 66 insertions(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
index d86dba144a2..5cf284a4ceb 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -66,7 +66,8 @@ src_prepare() {
"${FILESDIR}/${PN}-6.30.223.271-r2-linux-4.3-v2.patch" \
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.7.patch" \
"${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch" \
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch" \
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.12.patch"
 
epatch_user
 }

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.12.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.12.patch
new file mode 100644
index 000..94c6253f803
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.12.patch
@@ -0,0 +1,64 @@
+diff -ru work.orig/src/wl/sys/wl_cfg80211_hybrid.c 
work.patched/src/wl/sys/wl_cfg80211_hybrid.c
+--- work.orig/src/wl/sys/wl_cfg80211_hybrid.c  2017-06-10 15:50:27.328823384 
-0700
 work.patched/src/wl/sys/wl_cfg80211_hybrid.c   2017-06-10 
15:52:40.540809187 -0700
+@@ -52,8 +52,13 @@
+ u32 wl_dbg_level = WL_DBG_ERR;
+ #endif
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
++static s32 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device 
*ndev,
++   enum nl80211_iftype type, struct vif_params *params);
++#else
+ static s32 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device 
*ndev,
+enum nl80211_iftype type, u32 *flags, struct vif_params *params);
++#endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)
+ static s32
+ wl_cfg80211_scan(struct wiphy *wiphy,
+@@ -466,7 +471,11 @@
+ 
+ static s32
+ wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev,
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
++ enum nl80211_iftype type,
++#else
+  enum nl80211_iftype type, u32 *flags,
++#endif
+struct vif_params *params)
+ {
+   struct wl_cfg80211_priv *wl = wiphy_to_wl(wiphy);
+@@ -2361,12 +2370,26 @@
+ const wl_event_msg_t *e, void *data)
+ {
+   struct wl_cfg80211_connect_info *conn_info = wl_to_conn(wl);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
++  struct cfg80211_roam_info roam_info = {};
++#endif
+   s32 err = 0;
+ 
+   wl_get_assoc_ies(wl);
+   memcpy(wl->profile->bssid, >addr, ETHER_ADDR_LEN);
+   memcpy(>bssid, >addr, ETHER_ADDR_LEN);
+   wl_update_bss_info(wl);
++
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
++  roam_info.channel = >conf->channel,
++  roam_info.bssid = (u8 *)>bssid,
++  roam_info.req_ie = conn_info->req_ie,
++  roam_info.req_ie_len = conn_info->req_ie_len,
++  roam_info.resp_ie = conn_info->resp_ie,
++  roam_info.resp_ie_len = conn_info->resp_ie_len,
++
++  cfg80211_roamed(ndev, _info, GFP_KERNEL);
++#else
+   cfg80211_roamed(ndev,
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
+   >conf->channel,  
+@@ -2374,6 +2397,7 @@
+   (u8 *)>bssid,
+   conn_info->req_ie, conn_info->req_ie_len,
+   conn_info->resp_ie, conn_info->resp_ie_len, GFP_KERNEL);
++#endif
+   WL_DBG(("Report roaming result\n"));
+ 
+   set_bit(WL_STATUS_CONNECTED, >status);



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2017-06-10 Thread Matt Turner
commit: 0272772c6bcb89b49774dedd7eda8dee26d905b1
Author: Yehoshua Pesach Wallach  gmail  com>
AuthorDate: Thu Jun  1 18:37:54 2017 +
Commit: Matt Turner  gentoo  org>
CommitDate: Sat Jun 10 22:28:30 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0272772c

net-wireless/broadcom-sta: apply archlinux patch fixing bugs for kernel 4.11

https://bugs.archlinux.org/task/53974
https://aur.archlinux.org/cgit/aur.git/tree/linux411.patch?h=broadcom-wl

Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4822

 .../broadcom-sta-6.30.223.271-r4.ebuild|  3 +-
 .../broadcom-sta-6.30.223.271-r4-linux-4.11.patch  | 52 ++
 2 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
index 91929969983..d86dba144a2 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -65,7 +65,8 @@ src_prepare() {
"${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-r4-linux-4.7.patch" \
-   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch"
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch" \
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.11.patch"
 
epatch_user
 }

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.11.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.11.patch
new file mode 100644
index 000..a779f8c84cf
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.11.patch
@@ -0,0 +1,52 @@
+diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
+index a9671e2..da36405 100644
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
 b/src/wl/sys/wl_cfg80211_hybrid.c
+@@ -30,6 +30,9 @@
+ #include 
+ #include 
+ #include 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++#include 
++#endif
+ #include 
+ #include 
+ #include 
+diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
+index 489c9f5..f8278ad 100644
+--- a/src/wl/sys/wl_linux.c
 b/src/wl/sys/wl_linux.c
+@@ -117,6 +117,9 @@ int wl_found = 0;
+ 
+ typedef struct priv_link {
+   wl_if_t *wlif;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++  unsigned long last_rx;
++#endif
+ } priv_link_t;
+ 
+ #define WL_DEV_IF(dev)  
((wl_if_t*)((priv_link_t*)DEV_PRIV(dev))->wlif)
+@@ -2450,6 +2453,9 @@ wl_monitor(wl_info_t *wl, wl_rxsts_t *rxsts, void *p)
+ {
+   struct sk_buff *oskb = (struct sk_buff *)p;
+   struct sk_buff *skb;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++  priv_link_t *priv_link;
++#endif
+   uchar *pdata;
+   uint len;
+ 
+@@ -2916,7 +2922,13 @@ wl_monitor(wl_info_t *wl, wl_rxsts_t *rxsts, void *p)
+   if (skb == NULL) return;
+ 
+   skb->dev = wl->monitor_dev;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++  priv_link = MALLOC(wl->osh, sizeof(priv_link_t));
++  priv_link = netdev_priv(skb->dev);
++  priv_link->last_rx = jiffies;
++#else
+   skb->dev->last_rx = jiffies;
++#endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
+   skb_reset_mac_header(skb);
+ #else



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2017-01-21 Thread Patrice Clement
commit: a372a9735867f4014e2c3e2ad6c940e2a20ec56d
Author: charIes17  arcor  de>
AuthorDate: Mon Jan 16 11:03:52 2017 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Sat Jan 21 21:19:34 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a372a973

net-wireless/broadcom-sta: fix HOMEPAGE.

Trailing slash is causing 404. Also use https instead of http.

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/3499

 net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
index 3d48529..f436323 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -6,7 +6,7 @@ EAPI=5
 inherit eutils linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
-HOMEPAGE="http://www.broadcom.com/support/802.11/;
+HOMEPAGE="https://www.broadcom.com/support/802.11;
 
SRC_BASE="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35;
 SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2016-12-09 Thread Matt Turner
commit: ddc55138ecddc88b3472b97235fbe3078b9b35db
Author: Matt Turner  gentoo  org>
AuthorDate: Fri Dec  9 19:37:03 2016 +
Commit: Matt Turner  gentoo  org>
CommitDate: Fri Dec  9 19:39:46 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddc55138

net-wireless/broadcom-sta: Drop old versions.

All of the upstream download links have changed, and I since I doubt
anyone uses any of these old versions, throw them out instead of fixing
them.

 net-wireless/broadcom-sta/Manifest |   7 -
 .../broadcom-sta-6.30.223.141-r2.ebuild|  67 
 .../broadcom-sta-6.30.223.248-r4.ebuild|  78 -
 .../broadcom-sta-6.30.223.248-r5.ebuild|  79 -
 .../broadcom-sta-6.30.223.271-r2.ebuild|  76 -
 .../broadcom-sta-6.30.223.271-r3.ebuild|  77 -
 .../broadcom-sta-6.30.223.30-r2.ebuild |  83 -
 .../files/broadcom-sta-6.30.223.141-license.patch  |  10 -
 .../broadcom-sta-6.30.223.141-linux-3.10.0.patch   | 102 --
 .../broadcom-sta-6.30.223.141-linux-3.15.patch |  17 -
 .../broadcom-sta-6.30.223.141-linux-recent.patch   | 126 
 .../broadcom-sta-6.30.223.248-linux-3.17.patch |  29 --
 .../broadcom-sta-6.30.223.248-linux-3.18.patch |  30 --
 ...adcom-sta-6.30.223.248-r3-linux-3.15-3.18.patch | 350 -
 .../broadcom-sta-6.30.223.248-r3-linux-4.0.patch   |  26 --
 .../broadcom-sta-6.30.223.248-r4-linux-4.2.patch   |  16 -
 .../broadcom-sta-6.30.223.271-r2-linux-4.3.patch   |  12 -
 .../broadcom-sta-6.30.223.271-r3-linux-4.7.patch   |  14 -
 .../broadcom-sta-6.30.223.30-linux-3.10.0.patch| 102 --
 .../broadcom-sta-6.30.223.30-linux-3.9.0.patch |  17 -
 .../files/broadcom-sta-6.30.223.30-makefile.patch  |  14 -
 21 files changed, 1332 deletions(-)

diff --git a/net-wireless/broadcom-sta/Manifest 
b/net-wireless/broadcom-sta/Manifest
index e39f94d..d298806 100644
--- a/net-wireless/broadcom-sta/Manifest
+++ b/net-wireless/broadcom-sta/Manifest
@@ -1,10 +1,3 @@
-DIST README-broadcom-sta-6.30.223.248.txt 16775 SHA256 
e25eaa7e666a361abff679d7518c75200ee4d90f8e5cb16f69af3f033c68811a SHA512 
e635629f0a75059fa13b2bd2a756397631bc0add43786b0064d3f0232c9bd42dae394b9631846bf602f6cea628a49928ec2344df453ec5075168736627494020
 WHIRLPOOL 
4b0923b276bca6c3a0f8b37c903e3cd1b3f9ea37b07ffe308b831e505c691f4b77489abd491cd2c7334fe692846fe797c7d4b0ac63e8786f4190f5c2791e6b46
 DIST README-broadcom-sta-6.30.223.271.txt 16755 SHA256 
4d6d63f6eb40f84359be06f1f6f26075827a0d25cdaa364d8ccb6561bf162e34 SHA512 
ce277af132b656705aee3f8072d1082bfd2a1b7c63a9e330a470546437d4034e7964c64a4f9c326bf15c5f74b9c09a56d720542a41e5ae6e0d42d335488f31f5
 WHIRLPOOL 
3a544132315cbbc633ac6b6102d71109fea3b9e7742c299f2fe403ecc43206380051c91353c4d79033ac1939fe862b84cb8e435f06687af804fdc2ad5619beb7
-DIST bcmwl-kernel-source_6.30.223.30%2Bbdcom-0ubuntu1%7Eppa1_amd64.deb 1779122 
SHA256 de6529ae67f339aee185be93e3c12ffa944ef6b4807d176d6fda661de52136ba SHA512 
93b17029538ec17be61902f1e5237a300f532dc88fd7475ac202c249a9cec099c5d170b0ebc043e1bda1987f6f925b6a28d4aa80748218f735a3790ded0565cd
 WHIRLPOOL 
47f54a2fc286e58adef1383496fe3e65430ef643d8e7b8830cb87c0558319780f71944296211c62aa4e3a216019fc5a29dd48903240362c656bb79ae55c2
-DIST bcmwl-kernel-source_6.30.223.30%2Bbdcom-0ubuntu1%7Eppa1_i386.deb 1732452 
SHA256 d689040ac2ef67b9947f892b52764cd94c2090499747b57d63c2b40c7bc8eabb SHA512 
323db5e6c8fc702990d7137bd11d2e8bba7ed073ee8da00125d147872edf90dd051a959198dbdaf92808403cdcfd582f17afb8a6f5e741382d3a0cffd6ce130a
 WHIRLPOOL 
db24f078e2639f609021028304e7caf48b9a3737b6fdf4b2522ab74606c6cb0b11a94706978b1fd1acdf66c59e351a4a433cf9e500862931a1e9dce6e5562c01
-DIST hybrid-v35-nodebug-pcoem-6_30_223_141.tar.gz 1735911 SHA256 
d57c33f6bf4ebe68cac67ffe39c2260b8990bb0f07413dfd021dd4db845199a7 SHA512 
adb3d9d9375888df3317d6af3d6d45c53412a677e5431051cbfe8c9eac3b13760022fd9b970e77caaeb0fa010ee8bd32ad80076d7279b60719bfb8562c09951f
 WHIRLPOOL 
f037e26d7f85d9a1bf3f2638fa6d6bbda43384e24fb249e90afcfff792be8013f1e0f2a1876c4675e39911d4e4877f0ab785eab15f7a6460621fe14c21bab486
-DIST hybrid-v35-nodebug-pcoem-6_30_223_248.tar.gz 2824762 SHA256 
b196543a429c22b2b8d75d0c1d9e6e7ff212c3d3e1f42cc6fd9e4858f01da1ad SHA512 
9f067cf5e1be562c78252791c0b2324b568c8533903842e18e92f2b10c3277e1d15ed42a5925acbd443de373f5113d05447b885a8d52ef57695babe48d68a0ff
 WHIRLPOOL 
f3bfef5b3dcbf6d051facbda0078a9850a1cf2f851bca07fd7538ffc3d5c0bf118622d217bb7737fdd87825af73b61ddd2d9a52c3d13a8070be02d1a584a8b14
 DIST hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz 2869247 SHA256 
4f8b70b293ac8cc5c70e571ad5d1878d0f29d133a46fe7869868d9c19b5058cd SHA512 
0361ba30d97bcb1dedf46c11ef1b9a16f09cde3faa6be87b3ccc28679f34183c2fdf511e7c3b5c26b304f6961da454ccf71844b92bbb2f25aa876249496a2f1b
 WHIRLPOOL 
c96c21e4d497136c4ac5a8f3f1d3e84a7b5f5478ca7c1276262481d66b919639f475b99783ad993c01c94e380275fdd6eb39dd53f224b43912f7a395cada575c
-DIST 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2016-12-09 Thread Matt Turner
commit: 4d945312ed8b115994c41f7c17da9c67f4fd2384
Author: Matt Turner  gentoo  org>
AuthorDate: Fri Dec  9 19:38:43 2016 +
Commit: Matt Turner  gentoo  org>
CommitDate: Fri Dec  9 19:39:46 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d945312

net-wireless/broadcom-sta: Fix download links.

Strangely the README file's contents have changed.

 net-wireless/broadcom-sta/Manifest| 2 +-
 net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-wireless/broadcom-sta/Manifest 
b/net-wireless/broadcom-sta/Manifest
index d298806..4135d9f 100644
--- a/net-wireless/broadcom-sta/Manifest
+++ b/net-wireless/broadcom-sta/Manifest
@@ -1,3 +1,3 @@
-DIST README-broadcom-sta-6.30.223.271.txt 16755 SHA256 
4d6d63f6eb40f84359be06f1f6f26075827a0d25cdaa364d8ccb6561bf162e34 SHA512 
ce277af132b656705aee3f8072d1082bfd2a1b7c63a9e330a470546437d4034e7964c64a4f9c326bf15c5f74b9c09a56d720542a41e5ae6e0d42d335488f31f5
 WHIRLPOOL 
3a544132315cbbc633ac6b6102d71109fea3b9e7742c299f2fe403ecc43206380051c91353c4d79033ac1939fe862b84cb8e435f06687af804fdc2ad5619beb7
+DIST README-broadcom-sta-6.30.223.271.txt 17216 SHA256 
6d6ae53d4829651e340a40b5c9515755efa81def099dac0730967178808a503c SHA512 
672ecc5afcd8535a9f8beb4baea5a40c584b7682844e9ff0e4f66b7406b42118a99dce1fcd580118187fdc506781334b8243082def2b78dce916d90c55ab3663
 WHIRLPOOL 
e6905a6d2a6a912a467e6b3d38f7e5e955f558f95a6e5d1b03350eed79e2c09410158b547109a63f5aa9796ad0119133b3513c4fb123d45d36f3ba775f55
 DIST hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz 2869247 SHA256 
4f8b70b293ac8cc5c70e571ad5d1878d0f29d133a46fe7869868d9c19b5058cd SHA512 
0361ba30d97bcb1dedf46c11ef1b9a16f09cde3faa6be87b3ccc28679f34183c2fdf511e7c3b5c26b304f6961da454ccf71844b92bbb2f25aa876249496a2f1b
 WHIRLPOOL 
c96c21e4d497136c4ac5a8f3f1d3e84a7b5f5478ca7c1276262481d66b919639f475b99783ad993c01c94e380275fdd6eb39dd53f224b43912f7a395cada575c
 DIST hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz 2928541 SHA256 
5f79774d5beec8f7636b59c0fb07a03108eef1e3fd3245638b20858c714144be SHA512 
6855781f7c69a9aecb9461932423688964879d5a4df571f01ae7adaa7bf21a410bef839605d555afb6c8f4eec92fe8510af6cb120930095617ff6cdcccedaf17
 WHIRLPOOL 
8a905a35581f5c4a1177a3da7356731a360ba5c72e2897d363682afc49b73c46b031776012bba983842b894505d71e6f20f9404120b676e0b79b9ef003342e56

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
index 76d80f9..3d48529 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -7,10 +7,10 @@ inherit eutils linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
 HOMEPAGE="http://www.broadcom.com/support/802.11/;
-SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
+SRC_BASE="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35;
 SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
-   http://www.broadcom.com/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
+   
https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
 
 LICENSE="Broadcom"
 KEYWORDS="-* ~amd64 ~x86"



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2016-11-20 Thread Matt Turner
commit: c6d3f917370292c267bb05d447db028125946dfe
Author: Matt Turner  gentoo  org>
AuthorDate: Mon Nov 21 04:17:58 2016 +
Commit: Matt Turner  gentoo  org>
CommitDate: Mon Nov 21 04:18:21 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6d3f917

net-wireless/broadcom-sta: Add support for Linux v4.8

Bug: https://bugs.gentoo.org/590078
Bug: https://bugs.gentoo.org/596342

 .../broadcom-sta-6.30.223.271-r4.ebuild|  78 +++
 .../broadcom-sta-6.30.223.271-r4-linux-4.7.patch   | 109 +
 .../broadcom-sta-6.30.223.271-r4-linux-4.8.patch   |  64 
 3 files changed, 251 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
new file mode 100644
index ..76d80f9
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r4.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils linux-info linux-mod
+
+DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
+HOMEPAGE="http://www.broadcom.com/support/802.11/;
+SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
+SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
+   amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
+   http://www.broadcom.com/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
+
+LICENSE="Broadcom"
+KEYWORDS="-* ~amd64 ~x86"
+
+RESTRICT="mirror"
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+MODULE_NAMES="wl(net/wireless)"
+MODULESD_WL_ALIASES=("wlan0 wl")
+
+pkg_setup() {
+   # bug #300570
+   # NOTE: module builds correctly anyway with b43 and SSB enabled
+   # make checks non-fatal. The correct fix is blackisting ssb and, perhaps
+   # b43 via udev rules. Moreover, previous fix broke binpkgs support.
+   CONFIG_CHECK="~!B43 ~!BCMA ~!SSB"
+   CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
+   ERROR_B43="B43: If you insist on building this, you must blacklist it!"
+   ERROR_BCMA="BCMA: If you insist on building this, you must blacklist 
it!"
+   ERROR_SSB="SSB: If you insist on building this, you must blacklist it!"
+   ERROR_LIB80211="LIB80211: Please enable it. If you can't find it: 
enabling the driver for \"Intel PRO/Wireless 2100\" or \"Intel PRO/Wireless 
2200BG\" (IPW2100 or IPW2200) should suffice."
+   ERROR_MAC80211="MAC80211: If you insist on building this, you must 
blacklist it!"
+   ERROR_PREEMPT_RCU="PREEMPT_RCU: Please do not set the Preemption Model 
to \"Preemptible Kernel\"; choose something else."
+   ERROR_LIB80211_CRYPT_TKIP="LIB80211_CRYPT_TKIP: You will need this for 
WPA."
+   if kernel_is ge 3 8 8; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211 
~!PREEMPT_RCU ~!PREEMPT"
+   elif kernel_is ge 2 6 32; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211"
+   elif kernel_is ge 2 6 31; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
~!MAC80211"
+   elif kernel_is ge 2 6 29; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
COMPAT_NET_DEV_OPS"
+   else
+   CONFIG_CHECK="${CONFIG_CHECK} IEEE80211 IEEE80211_CRYPT_TKIP"
+   fi
+
+   linux-mod_pkg_setup
+
+   BUILD_PARAMS="-C ${KV_DIR} M=${S}"
+   BUILD_TARGETS="wl.ko"
+}
+
+src_prepare() {
+   epatch \
+   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch" \
+   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch" \
+   "${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-r4-linux-4.7.patch" \
+   "${FILESDIR}/${PN}-6.30.223.271-r4-linux-4.8.patch"
+
+   epatch_user
+}
+
+src_install() {
+   linux-mod_src_install
+
+   dodoc "${DISTDIR}/README-${P}.txt"
+}

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.7.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.7.patch
new file mode 100644
index ..566680a
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r4-linux-4.7.patch
@@ -0,0 +1,109 @@
+Since Linux 4.7, the enum ieee80211_band is no longer used
+
+This shall cause no problem's since both enums ieee80211_band
+and nl80211_band were added in the same commit:
+https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=13ae75b103e07304a34ab40c9136e9f53e06475c
+
+This patch refactors the references of IEEE80211_BAND_* to NL80211_BAND_*
+

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2016-08-20 Thread Luca Barbato
commit: 5c291bb9ba5f428de8e85865b1733b19a4c6a0fd
Author: Luca Barbato  gentoo  org>
AuthorDate: Sat Aug 20 21:58:01 2016 +
Commit: Luca Barbato  gentoo  org>
CommitDate: Sat Aug 20 22:00:49 2016 +
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 000..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)



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2016-08-17 Thread Mike Pagano
commit: fa291ce967c00c90708d0c6b2a647727ed24f003
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Aug 17 14:47:14 2016 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Aug 17 14:53:56 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa291ce9

net-wireless/broadcom-sta: Remove myself as maintainer.

Package-Manager: portage-2.2.28

 net-wireless/broadcom-sta/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index e98c71e..0713847 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -6,10 +6,6 @@
Matt Turner


-   mpag...@gentoo.org
-   Mike Pagano
-   
-   
tombo...@sina.cn
M.B.




[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2016-02-10 Thread Ian Delaney
commit: 797a8448d166c69d8a159d2c6bc785c6714cd97e
Author: Matthew Brewer  sina  cn>
AuthorDate: Wed Feb 10 09:38:06 2016 +
Commit: Ian Delaney  gentoo  org>
CommitDate: Wed Feb 10 09:38:06 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=797a8448

net-wireless/broadcom-sta: update metadata.xml to contain a name-tag for 
tomboy64  sina.cn

Package-Manager: portage-2.2.26
RepoMan-Options: --ignore-arches

 net-wireless/broadcom-sta/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index 9c5a2a7..e98c71e 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -11,6 +11,7 @@


tombo...@sina.cn
+   M.B.


~albertomilone



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2016-02-09 Thread Matt Turner
commit: 96c5f980d1625514f710712f0bf92291536481ff
Author: Matthew Brewer  sina  cn>
AuthorDate: Sat Feb  6 05:24:13 2016 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Feb  9 17:55:32 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c5f980

net-wireless/broadcom-sta: fix for bug#573854

reincarnation of #565254 (tsc mess)
=> update the patch to use a non-deprecated function and to be
applicable to pre- and post-4.3 kernels

Package-Manager: portage-2.2.26
RepoMan-Options: --ignore-arches

 .../broadcom-sta-6.30.223.248-r5.ebuild| 79 ++
 .../broadcom-sta-6.30.223.271-r3.ebuild| 76 +
 ...broadcom-sta-6.30.223.271-r2-linux-4.3-v2.patch | 16 +
 3 files changed, 171 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r5.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r5.ebuild
new file mode 100644
index 000..28098da
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r5.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils linux-info linux-mod
+
+DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
+HOMEPAGE="http://www.broadcom.com/support/802.11/;
+SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
+SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
+   amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
+   http://www.broadcom.com/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
+
+LICENSE="Broadcom"
+KEYWORDS="-* ~amd64 ~x86"
+
+RESTRICT="mirror"
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+MODULE_NAMES="wl(net/wireless)"
+MODULESD_WL_ALIASES=("wlan0 wl")
+
+pkg_setup() {
+   # bug #300570
+   # NOTE: module builds correctly anyway with b43 and SSB enabled
+   # make checks non-fatal. The correct fix is blackisting ssb and, perhaps
+   # b43 via udev rules. Moreover, previous fix broke binpkgs support.
+   CONFIG_CHECK="~!B43 ~!BCMA ~!SSB"
+   CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
+   ERROR_B43="B43: If you insist on building this, you must blacklist it!"
+   ERROR_BCMA="BCMA: If you insist on building this, you must blacklist 
it!"
+   ERROR_SSB="SSB: If you insist on building this, you must blacklist it!"
+   ERROR_LIB80211="LIB80211: Please enable it. If you can't find it: 
enabling the driver for \"Intel PRO/Wireless 2100\" or \"Intel PRO/Wireless 
2200BG\" (IPW2100 or IPW2200) should suffice."
+   ERROR_MAC80211="MAC80211: If you insist on building this, you must 
blacklist it!"
+   ERROR_PREEMPT_RCU="PREEMPT_RCU: Please do not set the Preemption Model 
to \"Preemptible Kernel\"; choose something else."
+   ERROR_LIB80211_CRYPT_TKIP="LIB80211_CRYPT_TKIP: You will need this for 
WPA."
+   if kernel_is ge 3 8 8; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211 
~!PREEMPT_RCU ~!PREEMPT"
+   elif kernel_is ge 2 6 32; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211"
+   elif kernel_is ge 2 6 31; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
~!MAC80211"
+   elif kernel_is ge 2 6 29; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
COMPAT_NET_DEV_OPS"
+   else
+   CONFIG_CHECK="${CONFIG_CHECK} IEEE80211 IEEE80211_CRYPT_TKIP"
+   fi
+
+   linux-mod_pkg_setup
+
+   BUILD_PARAMS="-C ${KV_DIR} M=${S}"
+   BUILD_TARGETS="wl.ko"
+}
+
+src_prepare() {
+   epatch \
+   "${FILESDIR}/${PN}-6.30.223.141-license.patch" \
+   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch" \
+   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch" \
+   "${FILESDIR}/${PN}-6.30.223.141-gcc.patch" \
+   "${FILESDIR}/${PN}-6.30.223.248-r3-Wno-date-time.patch" \
+   "${FILESDIR}/${PN}-6.30.223.248-r3-linux-3.15-3.18.patch" \
+   "${FILESDIR}/${PN}-6.30.223.248-r3-linux-4.0.patch" \
+   "${FILESDIR}/${PN}-6.30.223.248-r4-linux-4.2.patch" \
+   "${FILESDIR}/${PN}-6.30.223.271-r2-linux-4.3-v2.patch"
+
+   epatch_user
+}
+
+src_install() {
+   linux-mod_src_install
+
+   dodoc "${DISTDIR}/README-${P}.txt"
+}

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
new file mode 100644
index 000..d28e50e
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils linux-info linux-mod
+
+DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2016-02-09 Thread Matt Turner
commit: 17a59a376ec0bd21d4bfd993ebcdc309557ed725
Author: Matthew Brewer  sina  cn>
AuthorDate: Sat Feb  6 03:35:07 2016 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Feb  9 16:53:36 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17a59a37

net-wireless/broadcom-sta: minor changes, no revision necessary

- closes bug 573072

Package-Manager: portage-2.2.26
RepoMan-Options: --ignore-arches

 net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r2.ebuild | 4 ++--
 net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild | 4 ++--
 net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r2.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r2.ebuild
index 2962110..1cc1f5f 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r2.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -6,7 +6,7 @@ EAPI="5"
 inherit eutils linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
-HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php;
+HOMEPAGE="http://www.broadcom.com/support/802.11/;
 SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
 SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )"

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
index 38f4dc6..34689fd 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -6,7 +6,7 @@ EAPI=5
 inherit eutils linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
-HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php;
+HOMEPAGE="http://www.broadcom.com/support/802.11/;
 SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
 SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild
index 4859053..adaeedb 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -6,7 +6,7 @@ EAPI=5
 inherit eutils linux-info linux-mod
 
 DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
-HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php;
+HOMEPAGE="http://www.broadcom.com/support/802.11/;
 SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
 SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2016-02-09 Thread Matt Turner
commit: 156954e2a0e304b68faf11e59ed00a88723b8f60
Author: Matthew Brewer  sina  cn>
AuthorDate: Sat Feb  6 03:25:44 2016 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Feb  9 16:53:27 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=156954e2

net-wireless/broadcom-sta: cleaning out old revisions

Package-Manager: portage-2.2.26
RepoMan-Options: --ignore-arches

 .../broadcom-sta-6.30.223.141-r1.ebuild| 66 ---
 .../broadcom-sta/broadcom-sta-6.30.223.141.ebuild  | 69 ---
 .../broadcom-sta-6.30.223.248-r1.ebuild| 75 -
 .../broadcom-sta-6.30.223.248-r2.ebuild| 77 --
 .../broadcom-sta-6.30.223.248-r3.ebuild| 77 --
 .../broadcom-sta-6.30.223.271-r1.ebuild| 75 -
 .../files/broadcom-sta-5.10.91.9-license.patch | 12 
 .../broadcom-sta-5.100.82.111-linux-3.0.patch  | 21 --
 .../broadcom-sta-5.100.82.112-linux-2.6.39.patch   | 11 
 ...sta-5.100.82.112-linux-3.2-with-multicast.patch | 14 
 .../broadcom-sta-5.100.82.112-linux-3.4.patch  | 12 
 .../broadcom-sta-5.100.82.112-linux-3.6.patch  | 60 -
 .../broadcom-sta-5.100.82.112-linux-3.8.patch  | 71 
 .../broadcom-sta-5.100.82.112-linux-3.9.patch  | 14 
 ...adcom-sta-5.100.82.112-remove-rssi-errors.patch | 32 -
 .../files/broadcom-sta-5.100.82.38-gcc.patch   | 11 
 16 files changed, 697 deletions(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r1.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r1.ebuild
deleted file mode 100644
index 099e4ae..000
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141-r1.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-inherit eutils linux-info linux-mod
-
-DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
-HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php;
-SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
-SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
-   amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )"
-
-LICENSE="Broadcom"
-KEYWORDS="~amd64 ~x86"
-
-RESTRICT="mirror"
-
-DEPEND="virtual/linux-sources"
-RDEPEND=""
-
-S="${WORKDIR}"
-
-MODULE_NAMES="wl(net/wireless)"
-MODULESD_WL_ALIASES=("wlan0 wl")
-
-pkg_setup() {
-   # bug #300570
-   # NOTE: module builds correctly anyway with b43 and SSB enabled
-   # make checks non-fatal. The correct fix is blackisting ssb and, perhaps
-   # b43 via udev rules. Moreover, previous fix broke binpkgs support.
-   CONFIG_CHECK="~!B43 ~!SSB"
-   CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
-   ERROR_B43="B43: If you insist on building this, you must blacklist it!"
-   ERROR_SSB="SSB: If you insist on building this, you must blacklist it!"
-   ERROR_LIB80211="LIB80211: Please enable it. If you can't find it: 
enabling the driver for \"Intel PRO/Wireless 2100\" or \"Intel PRO/Wireless 
2200BG\" (IPW2100 or IPW2200) should suffice."
-   ERROR_MAC80211="MAC80211: If you insist on building this, you must 
blacklist it!"
-   ERROR_PREEMPT_RCU="PREEMPT_RCU: Please do not set the Preemption Model 
to \"Preemptible Kernel\"; choose something else."
-   ERROR_LIB80211_CRYPT_TKIP="LIB80211_CRYPT_TKIP: You will need this for 
WPA."
-   if kernel_is ge 3 8 8; then
-   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211 
~!PREEMPT_RCU ~!PREEMPT"
-   elif kernel_is ge 2 6 32; then
-   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211"
-   elif kernel_is ge 2 6 31; then
-   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
~!MAC80211"
-   elif kernel_is ge 2 6 29; then
-   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
COMPAT_NET_DEV_OPS"
-   else
-   CONFIG_CHECK="${CONFIG_CHECK} IEEE80211 IEEE80211_CRYPT_TKIP"
-   fi
-
-   linux-mod_pkg_setup
-
-   BUILD_PARAMS="-C ${KV_DIR} M=${S}"
-   BUILD_TARGETS="wl.ko"
-}
-
-src_prepare() {
-#  Makefile.patch: keep `emake install` working
-#  linux-3.9.0.patch: add support for kernel 3.9.0
-#  linux-3.10.0.patch: add support for kernel 3.10, bug #477372
-   epatch "${FILESDIR}/${P}-makefile.patch" \
-   "${FILESDIR}/${P}-linux-3.10.0.patch"
-
-   epatch_user
-}

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141.ebuild
deleted file mode 100644
index 65dcb1c..000
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.141.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/

2015-11-26 Thread Matt Turner
commit: 6850980d23bbe114d1349eedfa571332b77599f0
Author: Matt Turner  gentoo  org>
AuthorDate: Thu Nov 26 20:24:32 2015 +
Commit: Matt Turner  gentoo  org>
CommitDate: Thu Nov 26 20:24:32 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6850980d

net-wireless/broadcom-sta: Fix patch.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=566882

 .../files/broadcom-sta-6.30.223.271-linux-4.3.patch  | 11 ---
 .../files/broadcom-sta-6.30.223.271-r2-linux-4.3.patch   | 12 
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-linux-4.3.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-linux-4.3.patch
deleted file mode 100644
index ae0dc56..000
--- a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-linux-4.3.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/src/shared/linux_osl.c2015-09-19 00:47:15.0 +0200
-+++ b/src/shared/linux_osl.c2015-11-09 17:02:22.0 +0100
-@@ -932,7 +932,7 @@
-   uint cycles;
- 
- #if defined(__i386__)
--   rdtscl(cycles);
-+   cycles = (u32)native_read_tsc();
- #else
-   cycles = 0;
- #endif 

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r2-linux-4.3.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r2-linux-4.3.patch
new file mode 100644
index 000..7869dbf
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r2-linux-4.3.patch
@@ -0,0 +1,12 @@
+diff -ruN a/src/shared/linux_osl.c b/src/shared/linux_osl.c
+--- a/src/shared/linux_osl.c   2015-11-26 12:16:23.343091098 -0800
 b/src/shared/linux_osl.c   2015-11-26 12:17:08.657092739 -0800
+@@ -932,7 +932,7 @@
+   uint cycles;
+ 
+ #if defined(__i386__)
+-  rdtscl(cycles);
++  cycles = (u32)native_read_tsc();
+ #else
+   cycles = 0;
+ #endif 



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/files/, net-wireless/broadcom-sta/

2015-11-25 Thread Patrice Clement
commit: b0df1f11504b32265e665ba0a69fcdb6194e8c3c
Author: Matthew Brewer  sina  cn>
AuthorDate: Mon Nov 16 12:31:14 2015 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Tue Nov 17 08:25:38 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0df1f11

net-wireless/broadcom-sta: patch for compatibility with kernel-4.3

 .../broadcom-sta-6.30.223.271-r2.ebuild| 76 ++
 .../broadcom-sta-6.30.223.271-linux-4.3.patch  | 11 
 2 files changed, 87 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild
new file mode 100644
index 000..4859053
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils linux-info linux-mod
+
+DESCRIPTION="Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver"
+HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php;
+SRC_BASE="http://www.broadcom.com/docs/linux_sta/hybrid-v35;
+SRC_URI="x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
+   amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
+   http://www.broadcom.com/docs/linux_sta/README_${PV}.txt -> 
README-${P}.txt"
+
+LICENSE="Broadcom"
+KEYWORDS="-* ~amd64 ~x86"
+
+RESTRICT="mirror"
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+MODULE_NAMES="wl(net/wireless)"
+MODULESD_WL_ALIASES=("wlan0 wl")
+
+pkg_setup() {
+   # bug #300570
+   # NOTE: module builds correctly anyway with b43 and SSB enabled
+   # make checks non-fatal. The correct fix is blackisting ssb and, perhaps
+   # b43 via udev rules. Moreover, previous fix broke binpkgs support.
+   CONFIG_CHECK="~!B43 ~!BCMA ~!SSB"
+   CONFIG_CHECK2="LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP"
+   ERROR_B43="B43: If you insist on building this, you must blacklist it!"
+   ERROR_BCMA="BCMA: If you insist on building this, you must blacklist 
it!"
+   ERROR_SSB="SSB: If you insist on building this, you must blacklist it!"
+   ERROR_LIB80211="LIB80211: Please enable it. If you can't find it: 
enabling the driver for \"Intel PRO/Wireless 2100\" or \"Intel PRO/Wireless 
2200BG\" (IPW2100 or IPW2200) should suffice."
+   ERROR_MAC80211="MAC80211: If you insist on building this, you must 
blacklist it!"
+   ERROR_PREEMPT_RCU="PREEMPT_RCU: Please do not set the Preemption Model 
to \"Preemptible Kernel\"; choose something else."
+   ERROR_LIB80211_CRYPT_TKIP="LIB80211_CRYPT_TKIP: You will need this for 
WPA."
+   if kernel_is ge 3 8 8; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211 
~!PREEMPT_RCU ~!PREEMPT"
+   elif kernel_is ge 2 6 32; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211"
+   elif kernel_is ge 2 6 31; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
~!MAC80211"
+   elif kernel_is ge 2 6 29; then
+   CONFIG_CHECK="${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
COMPAT_NET_DEV_OPS"
+   else
+   CONFIG_CHECK="${CONFIG_CHECK} IEEE80211 IEEE80211_CRYPT_TKIP"
+   fi
+
+   linux-mod_pkg_setup
+
+   BUILD_PARAMS="-C ${KV_DIR} M=${S}"
+   BUILD_TARGETS="wl.ko"
+}
+
+src_prepare() {
+   epatch \
+   "${FILESDIR}/${PN}-6.30.223.141-makefile.patch" \
+   "${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch" \
+   "${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.patch"
+
+   epatch_user
+}
+
+src_install() {
+   linux-mod_src_install
+
+   dodoc "${DISTDIR}/README-${P}.txt"
+}

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-linux-4.3.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-linux-4.3.patch
new file mode 100644
index 000..ae0dc56
--- /dev/null
+++ b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-linux-4.3.patch
@@ -0,0 +1,11 @@
+--- a/src/shared/linux_osl.c2015-09-19 00:47:15.0 +0200
 b/src/shared/linux_osl.c2015-11-09 17:02:22.0 +0100
+@@ -932,7 +932,7 @@
+   uint cycles;
+ 
+ #if defined(__i386__)
+-   rdtscl(cycles);
++   cycles = (u32)native_read_tsc();
+ #else
+   cycles = 0;
+ #endif 



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/, net-wireless/broadcom-sta/files/

2015-11-02 Thread Matt Turner
commit: 156b8869e520a9ba53e0e02bafd9831c4a78b2c9
Author: Matt Turner  gentoo  org>
AuthorDate: Mon Nov  2 17:30:44 2015 +
Commit: Matt Turner  gentoo  org>
CommitDate: Mon Nov  2 17:31:59 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=156b8869

net-wireless/broadcom-sta: Readd necessary patch hunk.

Necessary to prevent a hang.

Bug: https://bugs.gentoo.org/562620

 ...30.223.271.ebuild => broadcom-sta-6.30.223.271-r1.ebuild} |  1 +
 .../files/broadcom-sta-6.30.223.271-r1-linux-3.18.patch  | 12 
 2 files changed, 13 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild
similarity index 97%
rename from net-wireless/broadcom-sta/broadcom-sta-6.30.223.271.ebuild
rename to net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild
index bf18fda..0d61639 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild
@@ -63,6 +63,7 @@ src_prepare() {
"${FILESDIR}/${PN}-6.30.223.141-makefile.patch" \
"${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch" \
"${FILESDIR}/${PN}-6.30.223.141-gcc.patch" \
+   "${FILESDIR}/${PN}-6.30.223.271-r1-linux-3.18.patch" \
"${FILESDIR}/${PN}-6.30.223.248-r3-Wno-date-time.patch"
 
epatch_user

diff --git 
a/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r1-linux-3.18.patch 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r1-linux-3.18.patch
new file mode 100644
index 000..9a0e713
--- /dev/null
+++ 
b/net-wireless/broadcom-sta/files/broadcom-sta-6.30.223.271-r1-linux-3.18.patch
@@ -0,0 +1,12 @@
+--- a/src/wl/sys/wl_linux.c2014-06-26 12:42:08.0 +0200
 b/src/wl/sys/wl_linux.c2015-01-22 01:44:58.580453805 +0100
+@@ -2157,8 +2159,8 @@
+   wlif = WL_DEV_IF(dev);
+   wl = WL_INFO(dev);
+ 
++  skb->prev = NULL;
+   if (WL_ALL_PASSIVE_ENAB(wl) || (WL_RTR() && WL_CONFIG_SMP())) {
+-  skb->prev = NULL;
+ 
+   TXQ_LOCK(wl);
+ 



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2015-11-02 Thread Matt Turner
commit: b582d816649b5ef65bcfc5eedbe785f8d70a3a64
Author: Matt Turner  gentoo  org>
AuthorDate: Mon Nov  2 22:17:58 2015 +
Commit: Matt Turner  gentoo  org>
CommitDate: Mon Nov  2 22:18:21 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b582d816

net-wireless/broadcom-sta: Drop unneeded patch.

 net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild
index 0d61639..a0fe86a 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271-r1.ebuild
@@ -59,7 +59,6 @@ pkg_setup() {
 
 src_prepare() {
epatch \
-   "${FILESDIR}/${PN}-6.30.223.141-license.patch" \
"${FILESDIR}/${PN}-6.30.223.141-makefile.patch" \
"${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch" \
"${FILESDIR}/${PN}-6.30.223.141-gcc.patch" \



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2015-10-31 Thread Matt Turner
commit: 554417b03fd74007601d39369c7b7ed93a34f211
Author: Matthew Brewer  sina  cn>
AuthorDate: Mon Oct 19 17:14:06 2015 +
Commit: Matt Turner  gentoo  org>
CommitDate: Mon Oct 19 17:21:44 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=554417b0

net-wireless/broadcom-sta: re-added tomboy64  sina.cn as maintainer

 net-wireless/broadcom-sta/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-wireless/broadcom-sta/metadata.xml 
b/net-wireless/broadcom-sta/metadata.xml
index 8111086..8358ba2 100644
--- a/net-wireless/broadcom-sta/metadata.xml
+++ b/net-wireless/broadcom-sta/metadata.xml
@@ -9,6 +9,9 @@
mpag...@gentoo.org
Mike Pagano

+   
+   tombo...@sina.cn
+   

~albertomilone




[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2015-10-31 Thread Matt Turner
commit: ac5159b9811ea4b7d7289178331e413779006eca
Author: Matthew Brewer  sina  cn>
AuthorDate: Mon Oct 19 16:41:47 2015 +
Commit: Matt Turner  gentoo  org>
CommitDate: Mon Oct 19 17:21:41 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac5159b9

net-wireless/broadcom-sta: version bump

 net-wireless/broadcom-sta/Manifest |  3 +
 .../broadcom-sta/broadcom-sta-6.30.223.271.ebuild  | 75 ++
 2 files changed, 78 insertions(+)

diff --git a/net-wireless/broadcom-sta/Manifest 
b/net-wireless/broadcom-sta/Manifest
index 97adc13..e39f94d 100644
--- a/net-wireless/broadcom-sta/Manifest
+++ b/net-wireless/broadcom-sta/Manifest
@@ -1,7 +1,10 @@
 DIST README-broadcom-sta-6.30.223.248.txt 16775 SHA256 
e25eaa7e666a361abff679d7518c75200ee4d90f8e5cb16f69af3f033c68811a SHA512 
e635629f0a75059fa13b2bd2a756397631bc0add43786b0064d3f0232c9bd42dae394b9631846bf602f6cea628a49928ec2344df453ec5075168736627494020
 WHIRLPOOL 
4b0923b276bca6c3a0f8b37c903e3cd1b3f9ea37b07ffe308b831e505c691f4b77489abd491cd2c7334fe692846fe797c7d4b0ac63e8786f4190f5c2791e6b46
+DIST README-broadcom-sta-6.30.223.271.txt 16755 SHA256 
4d6d63f6eb40f84359be06f1f6f26075827a0d25cdaa364d8ccb6561bf162e34 SHA512 
ce277af132b656705aee3f8072d1082bfd2a1b7c63a9e330a470546437d4034e7964c64a4f9c326bf15c5f74b9c09a56d720542a41e5ae6e0d42d335488f31f5
 WHIRLPOOL 
3a544132315cbbc633ac6b6102d71109fea3b9e7742c299f2fe403ecc43206380051c91353c4d79033ac1939fe862b84cb8e435f06687af804fdc2ad5619beb7
 DIST bcmwl-kernel-source_6.30.223.30%2Bbdcom-0ubuntu1%7Eppa1_amd64.deb 1779122 
SHA256 de6529ae67f339aee185be93e3c12ffa944ef6b4807d176d6fda661de52136ba SHA512 
93b17029538ec17be61902f1e5237a300f532dc88fd7475ac202c249a9cec099c5d170b0ebc043e1bda1987f6f925b6a28d4aa80748218f735a3790ded0565cd
 WHIRLPOOL 
47f54a2fc286e58adef1383496fe3e65430ef643d8e7b8830cb87c0558319780f71944296211c62aa4e3a216019fc5a29dd48903240362c656bb79ae55c2
 DIST bcmwl-kernel-source_6.30.223.30%2Bbdcom-0ubuntu1%7Eppa1_i386.deb 1732452 
SHA256 d689040ac2ef67b9947f892b52764cd94c2090499747b57d63c2b40c7bc8eabb SHA512 
323db5e6c8fc702990d7137bd11d2e8bba7ed073ee8da00125d147872edf90dd051a959198dbdaf92808403cdcfd582f17afb8a6f5e741382d3a0cffd6ce130a
 WHIRLPOOL 
db24f078e2639f609021028304e7caf48b9a3737b6fdf4b2522ab74606c6cb0b11a94706978b1fd1acdf66c59e351a4a433cf9e500862931a1e9dce6e5562c01
 DIST hybrid-v35-nodebug-pcoem-6_30_223_141.tar.gz 1735911 SHA256 
d57c33f6bf4ebe68cac67ffe39c2260b8990bb0f07413dfd021dd4db845199a7 SHA512 
adb3d9d9375888df3317d6af3d6d45c53412a677e5431051cbfe8c9eac3b13760022fd9b970e77caaeb0fa010ee8bd32ad80076d7279b60719bfb8562c09951f
 WHIRLPOOL 
f037e26d7f85d9a1bf3f2638fa6d6bbda43384e24fb249e90afcfff792be8013f1e0f2a1876c4675e39911d4e4877f0ab785eab15f7a6460621fe14c21bab486
 DIST hybrid-v35-nodebug-pcoem-6_30_223_248.tar.gz 2824762 SHA256 
b196543a429c22b2b8d75d0c1d9e6e7ff212c3d3e1f42cc6fd9e4858f01da1ad SHA512 
9f067cf5e1be562c78252791c0b2324b568c8533903842e18e92f2b10c3277e1d15ed42a5925acbd443de373f5113d05447b885a8d52ef57695babe48d68a0ff
 WHIRLPOOL 
f3bfef5b3dcbf6d051facbda0078a9850a1cf2f851bca07fd7538ffc3d5c0bf118622d217bb7737fdd87825af73b61ddd2d9a52c3d13a8070be02d1a584a8b14
+DIST hybrid-v35-nodebug-pcoem-6_30_223_271.tar.gz 2869247 SHA256 
4f8b70b293ac8cc5c70e571ad5d1878d0f29d133a46fe7869868d9c19b5058cd SHA512 
0361ba30d97bcb1dedf46c11ef1b9a16f09cde3faa6be87b3ccc28679f34183c2fdf511e7c3b5c26b304f6961da454ccf71844b92bbb2f25aa876249496a2f1b
 WHIRLPOOL 
c96c21e4d497136c4ac5a8f3f1d3e84a7b5f5478ca7c1276262481d66b919639f475b99783ad993c01c94e380275fdd6eb39dd53f224b43912f7a395cada575c
 DIST hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz 1786627 SHA256 
5f37b2b879e29b220dc64ce2e93d922dc231d4241da03bcbab15ced10e649b4a SHA512 
a83defe4553f680b984bf49788377436c5f563f2920c129d87a3930fb6501d0f833d353acf229fa4f67b761e4564428c62bc1c8e3e23c0727d01b8c4f797f6af
 WHIRLPOOL 
d1ddc19e29a6927ae0f172613d429a92d5009515b4db1bc188b0ced41ff39565512d4f85721bcf4ddd0a951afadfd7bc303219ed93a20f83e1936a9c82717e47
 DIST hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz 2875739 SHA256 
3d994cc6c05198f4b6f07a213ac1e9e45a45159899e6c4a7feca5e6c395c3022 SHA512 
ce1e9f7f52cd98eaba5cf4ec0c7276bddf3ad906a0111eb236665daca72f36139ca4a8af72658cf91b0eaaa8479e54f5bb3bce77a0cc9bc1966f044b76b8295a
 WHIRLPOOL 
6393507f340f4244d8e40c81102e37f9df0d5dbc0ce4e0fd3ed187ddde6faf3be9bfae59371eb307d031974b5b6d1417c7c11fbdd51b9f3b168ccd83d48276d9
+DIST hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz 2928541 SHA256 
5f79774d5beec8f7636b59c0fb07a03108eef1e3fd3245638b20858c714144be SHA512 
6855781f7c69a9aecb9461932423688964879d5a4df571f01ae7adaa7bf21a410bef839605d555afb6c8f4eec92fe8510af6cb120930095617ff6cdcccedaf17
 WHIRLPOOL 
8a905a35581f5c4a1177a3da7356731a360ba5c72e2897d363682afc49b73c46b031776012bba983842b894505d71e6f20f9404120b676e0b79b9ef003342e56

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.271.ebuild
new file 

[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/

2015-08-31 Thread Matt Turner
commit: 04694413ebb6d1e84e27174d0100f1048b520d44
Author: Matt Turner  gentoo  org>
AuthorDate: Tue Sep  1 00:04:31 2015 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Sep  1 00:05:01 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04694413

net-wireless/broadcom-sta: Add missing \-escape

Bug: https://bugs.gentoo.org/show_bug.cgi?id=559234

 net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
index 350bef9..38f4dc6 100644
--- a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
@@ -65,7 +65,7 @@ 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.248-r3-linux-3.15-3.18.patch" \
-   "${FILESDIR}/${PN}-6.30.223.248-r3-linux-4.0.patch"
+   "${FILESDIR}/${PN}-6.30.223.248-r3-linux-4.0.patch" \
"${FILESDIR}/${PN}-6.30.223.248-r4-linux-4.2.patch"
 
epatch_user



[gentoo-commits] repo/gentoo:master commit in: net-wireless/broadcom-sta/, net-wireless/broadcom-sta/files/

2015-08-22 Thread Matt Turner
commit: f64619dcd60422663f465644a6f2171b78ec181d
Author: Matt Turner mattst88 AT gentoo DOT org
AuthorDate: Sat Aug 22 19:23:11 2015 +
Commit: Matt Turner mattst88 AT gentoo DOT org
CommitDate: Sat Aug 22 19:23:27 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f64619dc

net-wireless/broadcom-sta: Add patch for Linux 4.2.

Package-Manager: portage-2.2.20.1
Bug: https://bugs.gentoo.org/557338

 .../broadcom-sta-6.30.223.248-r4.ebuild| 78 ++
 .../broadcom-sta-6.30.223.248-r4-linux-4.2.patch   | 16 +
 2 files changed, 94 insertions(+)

diff --git a/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild 
b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
new file mode 100644
index 000..350bef9
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-6.30.223.248-r4.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils linux-info linux-mod
+
+DESCRIPTION=Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver
+HOMEPAGE=http://www.broadcom.com/support/802.11/linux_sta.php;
+SRC_BASE=http://www.broadcom.com/docs/linux_sta/hybrid-v35;
+SRC_URI=x86? ( ${SRC_BASE}-nodebug-pcoem-${PV//\./_}.tar.gz )
+   amd64? ( ${SRC_BASE}_64-nodebug-pcoem-${PV//\./_}.tar.gz )
+   http://www.broadcom.com/docs/linux_sta/README_${PV}.txt - 
README-${P}.txt
+
+LICENSE=Broadcom
+KEYWORDS=-* ~amd64 ~x86
+
+RESTRICT=mirror
+
+DEPEND=virtual/linux-sources
+RDEPEND=
+
+S=${WORKDIR}
+
+MODULE_NAMES=wl(net/wireless)
+MODULESD_WL_ALIASES=(wlan0 wl)
+
+pkg_setup() {
+   # bug #300570
+   # NOTElxnay: module builds correctly anyway with b43 and SSB enabled
+   # make checks non-fatal. The correct fix is blackisting ssb and, perhaps
+   # b43 via udev rules. Moreover, previous fix broke binpkgs support.
+   CONFIG_CHECK=~!B43 ~!BCMA ~!SSB
+   CONFIG_CHECK2=LIB80211 ~!MAC80211 ~LIB80211_CRYPT_TKIP
+   ERROR_B43=B43: If you insist on building this, you must blacklist it!
+   ERROR_BCMA=BCMA: If you insist on building this, you must blacklist 
it!
+   ERROR_SSB=SSB: If you insist on building this, you must blacklist it!
+   ERROR_LIB80211=LIB80211: Please enable it. If you can't find it: 
enabling the driver for \Intel PRO/Wireless 2100\ or \Intel PRO/Wireless 
2200BG\ (IPW2100 or IPW2200) should suffice.
+   ERROR_MAC80211=MAC80211: If you insist on building this, you must 
blacklist it!
+   ERROR_PREEMPT_RCU=PREEMPT_RCU: Please do not set the Preemption Model 
to \Preemptible Kernel\; choose something else.
+   ERROR_LIB80211_CRYPT_TKIP=LIB80211_CRYPT_TKIP: You will need this for 
WPA.
+   if kernel_is ge 3 8 8; then
+   CONFIG_CHECK=${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211 
~!PREEMPT_RCU ~!PREEMPT
+   elif kernel_is ge 2 6 32; then
+   CONFIG_CHECK=${CONFIG_CHECK} ${CONFIG_CHECK2} CFG80211
+   elif kernel_is ge 2 6 31; then
+   CONFIG_CHECK=${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
~!MAC80211
+   elif kernel_is ge 2 6 29; then
+   CONFIG_CHECK=${CONFIG_CHECK} ${CONFIG_CHECK2} WIRELESS_EXT 
COMPAT_NET_DEV_OPS
+   else
+   CONFIG_CHECK=${CONFIG_CHECK} IEEE80211 IEEE80211_CRYPT_TKIP
+   fi
+
+   linux-mod_pkg_setup
+
+   BUILD_PARAMS=-C ${KV_DIR} M=${S}
+   BUILD_TARGETS=wl.ko
+}
+
+src_prepare() {
+   epatch \
+   ${FILESDIR}/${PN}-6.30.223.141-license.patch \
+   ${FILESDIR}/${PN}-6.30.223.141-makefile.patch \
+   ${FILESDIR}/${PN}-6.30.223.141-eth-to-wlan.patch \
+   ${FILESDIR}/${PN}-6.30.223.141-gcc.patch \
+   ${FILESDIR}/${PN}-6.30.223.248-r3-Wno-date-time.patch \
+   ${FILESDIR}/${PN}-6.30.223.248-r3-linux-3.15-3.18.patch \
+   ${FILESDIR}/${PN}-6.30.223.248-r3-linux-4.0.patch
+   ${FILESDIR}/${PN}-6.30.223.248-r4-linux-4.2.patch
+
+   epatch_user
+}
+
+src_install() {
+   linux-mod_src_install
+
+   dodoc ${DISTDIR}/README-${P}.txt
+}

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 000..9e9f8a1
--- /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 =