summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2009-03-25 14:47:43 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2009-03-25 14:47:43 +0000
commit6ee675b6bc127f74469bc35585f6d1ab3e9511c3 (patch)
tree13b88a5386fb32c3307203d981715008ec53be9d /net-wireless/broadcom-sta
parentget rid of spurious patches, too (diff)
downloadgentoo-2-6ee675b6bc127f74469bc35585f6d1ab3e9511c3.tar.gz
gentoo-2-6ee675b6bc127f74469bc35585f6d1ab3e9511c3.tar.bz2
gentoo-2-6ee675b6bc127f74469bc35585f6d1ab3e9511c3.zip
Added wl_iw.patch.
(Portage version: 2.1.6.8/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/broadcom-sta')
-rw-r--r--net-wireless/broadcom-sta/ChangeLog9
-rw-r--r--net-wireless/broadcom-sta/broadcom-sta-5.10.79.10-r1.ebuild46
-rw-r--r--net-wireless/broadcom-sta/files/broadcom-sta-5.10.79.10-wl_iw.patch12
3 files changed, 66 insertions, 1 deletions
diff --git a/net-wireless/broadcom-sta/ChangeLog b/net-wireless/broadcom-sta/ChangeLog
index c45c305eee58..de710eaf918b 100644
--- a/net-wireless/broadcom-sta/ChangeLog
+++ b/net-wireless/broadcom-sta/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-wireless/broadcom-sta
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/broadcom-sta/ChangeLog,v 1.1 2009/03/10 17:27:12 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/broadcom-sta/ChangeLog,v 1.2 2009/03/25 14:47:42 matsuu Exp $
+
+*broadcom-sta-5.10.79.10-r1 (25 Mar 2009)
+
+ 25 Mar 2009; MATSUU Takuto <matsuu@gentoo.org>
+ +files/broadcom-sta-5.10.79.10-wl_iw.patch,
+ +broadcom-sta-5.10.79.10-r1.ebuild:
+ Added wl_iw.patch
*broadcom-sta-5.10.79.10 (10 Mar 2009)
diff --git a/net-wireless/broadcom-sta/broadcom-sta-5.10.79.10-r1.ebuild b/net-wireless/broadcom-sta/broadcom-sta-5.10.79.10-r1.ebuild
new file mode 100644
index 000000000000..169c8562d955
--- /dev/null
+++ b/net-wireless/broadcom-sta/broadcom-sta-5.10.79.10-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/broadcom-sta/broadcom-sta-5.10.79.10-r1.ebuild,v 1.1 2009/03/25 14:47:42 matsuu Exp $
+
+inherit eutils linux-mod versionator
+
+MY_PV="$(replace_all_version_separators _)"
+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-portsrc-x86_"
+SRC_URI="x86? ( ${SRC_BASE}32-v${MY_PV}.tar.gz )
+ amd64? ( ${SRC_BASE}64-v${MY_PV}.tar.gz )"
+
+LICENSE="Broadcom"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="mirror"
+
+DEPEND=">=virtual/linux-sources-2.6.22"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+MODULE_NAMES="wl(net/wireless)"
+MODULESD_WL_ALIASES=("wlan0 wl")
+
+pkg_setup() {
+ if kernel_is ge 2 6 29; then
+ CONFIG_CHECK="LIB80211"
+ else
+ CONFIG_CHECK="IEEE80211 IEEE80211_CRYPT_TKIP"
+ fi
+ linux-mod_pkg_setup
+ BUILD_PARAMS="-C ${KV_DIR} M=${S}"
+ BUILD_TARGETS="wl.ko"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch \
+ "${FILESDIR}/${P}-hidden-essid.patch" \
+ "${FILESDIR}/${P}-linux-2.6.29.patch" \
+ "${FILESDIR}/${P}-wl_iw.patch"
+}
diff --git a/net-wireless/broadcom-sta/files/broadcom-sta-5.10.79.10-wl_iw.patch b/net-wireless/broadcom-sta/files/broadcom-sta-5.10.79.10-wl_iw.patch
new file mode 100644
index 000000000000..125bbf4945fa
--- /dev/null
+++ b/net-wireless/broadcom-sta/files/broadcom-sta-5.10.79.10-wl_iw.patch
@@ -0,0 +1,12 @@
+diff -Naur broadcom-sta-5.10.79.10.orig/src/wl/sys/wl_iw.c broadcom-sta-5.10.79.10/src/wl/sys/wl_iw.c
+--- broadcom-sta-5.10.79.10.orig/src/wl/sys/wl_iw.c 2009-02-10 06:43:18.000000000 +0900
++++ broadcom-sta-5.10.79.10/src/wl/sys/wl_iw.c 2009-03-25 08:37:56.000000000 +0900
+@@ -2390,7 +2390,7 @@
+
+ cmd = IWEVPMKIDCAND;
+ pmkcandlist = data;
+- count = pmkcandlist->npmkid_cand;
++ count = ntoh32(pmkcandlist->npmkid_cand);
+ wrqu.data.length = sizeof(struct iw_pmkid_cand);
+ pmkidcand = pmkcandlist->pmkid_cand;
+ while (count) {