summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2005-11-02 20:44:02 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2005-11-02 20:44:02 +0000
commit456b30f8d0397438bbf7523f3430b9b4d4660cad (patch)
tree618da06a8dc340bf2021b3924e53e96341d21ae4 /net-wireless/linux-wlan-ng-modules
parentRemove unused ebuilds (diff)
downloadhistorical-456b30f8d0397438bbf7523f3430b9b4d4660cad.tar.gz
historical-456b30f8d0397438bbf7523f3430b9b4d4660cad.tar.bz2
historical-456b30f8d0397438bbf7523f3430b9b4d4660cad.zip
Added a patch from upstream svn to fix compiling with 2.6.14 kernels. Fixes bug 110914.
Package-Manager: portage-2.0.53_rc6
Diffstat (limited to 'net-wireless/linux-wlan-ng-modules')
-rw-r--r--net-wireless/linux-wlan-ng-modules/ChangeLog9
-rw-r--r--net-wireless/linux-wlan-ng-modules/Manifest11
-rw-r--r--net-wireless/linux-wlan-ng-modules/files/0.2.2-kernel-2.6.14.patch196
-rw-r--r--net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.2-r11
-rw-r--r--net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2-r1.ebuild100
5 files changed, 312 insertions, 5 deletions
diff --git a/net-wireless/linux-wlan-ng-modules/ChangeLog b/net-wireless/linux-wlan-ng-modules/ChangeLog
index cc0404f606b4..bf2725280ebc 100644
--- a/net-wireless/linux-wlan-ng-modules/ChangeLog
+++ b/net-wireless/linux-wlan-ng-modules/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-wireless/linux-wlan-ng-modules
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/ChangeLog,v 1.2 2005/10/15 23:06:49 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/ChangeLog,v 1.3 2005/11/02 20:44:02 betelgeuse Exp $
+
+*linux-wlan-ng-modules-0.2.2-r1 (02 Nov 2005)
+
+ 02 Nov 2005; Petteri Räty <betelgeuse@gentoo.org>
+ +files/0.2.2-kernel-2.6.14.patch, +linux-wlan-ng-modules-0.2.2-r1.ebuild:
+ Added a patch from upstream svn to fix compiling with 2.6.14 kernels. Fixes
+ bug 110914.
15 Oct 2005; Joseph Jezak <josejx@gentoo.org>
linux-wlan-ng-modules-0.2.2.ebuild:
diff --git a/net-wireless/linux-wlan-ng-modules/Manifest b/net-wireless/linux-wlan-ng-modules/Manifest
index ef3c8437643e..9ae18d64dfd8 100644
--- a/net-wireless/linux-wlan-ng-modules/Manifest
+++ b/net-wireless/linux-wlan-ng-modules/Manifest
@@ -1,15 +1,18 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 c8e7c3bc4f04dd46142d3da5d732e1d3 ChangeLog 620
+MD5 e56832ac93fef55fa31c6ba165129013 ChangeLog 893
+MD5 9e66078bd27004847709f071774bd51d files/0.2.2-kernel-2.6.14.patch 6067
MD5 f24842a9d1aeeaa901a2423011ef3b38 files/digest-linux-wlan-ng-modules-0.2.2 72
+MD5 f24842a9d1aeeaa901a2423011ef3b38 files/digest-linux-wlan-ng-modules-0.2.2-r1 72
MD5 581c6aa56e352d9edfa2a935a23bcd0f files/linux-wlan-ng-0.2.2-module_param.patch 717
+MD5 2246aab22aac599dea7b6fe74e243f55 linux-wlan-ng-modules-0.2.2-r1.ebuild 2455
MD5 0ae3ed8165e7a96b178c4e6051a1c1c3 linux-wlan-ng-modules-0.2.2.ebuild 2389
MD5 bd46277fb8c768aa34612bb9cb43fe75 metadata.xml 571
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDUYuacsIHjyDViGQRAky+AJwM6b7ucrvDTn7ueKFeIpau76W7FwCeIHFY
-U2+9mAhiPmekN8KXPEwIwaI=
-=uzJM
+iD8DBQFDaSUgQiJ/wx066S4RAjioAJ9Bk3u/qvrZIdfxymprCAzEdM5dpQCgh6n3
+2XNbvIfTXSfxil3hNog8jj4=
+=IK4X
-----END PGP SIGNATURE-----
diff --git a/net-wireless/linux-wlan-ng-modules/files/0.2.2-kernel-2.6.14.patch b/net-wireless/linux-wlan-ng-modules/files/0.2.2-kernel-2.6.14.patch
new file mode 100644
index 000000000000..44a89a50c585
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/files/0.2.2-kernel-2.6.14.patch
@@ -0,0 +1,196 @@
+Index: src/version.h.in
+===================================================================
+--- src/version.h.in (revision 1748)
++++ src/version.h.in (revision 1750)
+@@ -50,6 +50,7 @@
+ #endif
+
+ /* WLAN_HOSTIF (generally set on the command line, not detected) */
++#define WLAN_NONE 0
+ #define WLAN_PCMCIA 1
+ #define WLAN_ISA 2
+ #define WLAN_PCI 3
+Index: src/include/wlan/wlan_compat.h
+===================================================================
+--- src/include/wlan/wlan_compat.h (revision 1748)
++++ src/include/wlan/wlan_compat.h (revision 1750)
+@@ -568,6 +568,10 @@
+ #define in_atomic() 0
+ #endif
+
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13))
++#define URB_ASYNC_UNLINK 0
++#endif
++
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7))
+ #define URB_ASYNC_UNLINK USB_ASYNC_UNLINK
+ #define usb_fill_bulk_urb FILL_BULK_URB
+Index: src/p80211/p80211frm.c
+===================================================================
+--- src/p80211/p80211frm.c (revision 1748)
++++ src/p80211/p80211frm.c (revision 1750)
+@@ -65,6 +65,7 @@
+ #include <linux/string.h>
+ #include <asm/byteorder.h>
+
++#include <wlan/version.h>
+ #include <wlan/wlan_compat.h>
+
+ /*================================================================*/
+Index: src/p80211/p80211conv.c
+===================================================================
+--- src/p80211/p80211conv.c (revision 1748)
++++ src/p80211/p80211conv.c (revision 1750)
+@@ -70,13 +70,12 @@
+
+ #include <asm/byteorder.h>
+
++#include <wlan/version.h>
+ #include <wlan/wlan_compat.h>
+
+-
+ /*================================================================*/
+ /* Project Includes */
+
+-#include <wlan/version.h>
+ #include <wlan/p80211types.h>
+ #include <wlan/p80211hdr.h>
+ #include <wlan/p80211conv.h>
+Index: src/p80211/p80211req.c
+===================================================================
+--- src/p80211/p80211req.c (revision 1748)
++++ src/p80211/p80211req.c (revision 1750)
+@@ -53,8 +53,6 @@
+ /*================================================================*/
+ /* System Includes */
+
+-#define __NO_VERSION__ /* prevent the static definition */
+-
+ #include <linux/config.h>
+ #include <linux/version.h>
+
+@@ -70,12 +68,12 @@
+ #include <net/sock.h>
+ #include <linux/netlink.h>
+
++#include <wlan/version.h>
+ #include <wlan/wlan_compat.h>
+
+ /*================================================================*/
+ /* Project Includes */
+
+-#include <wlan/version.h>
+ #include <wlan/p80211types.h>
+ #include <wlan/p80211hdr.h>
+ #include <wlan/p80211mgmt.h>
+@@ -351,8 +349,13 @@
+ void p80211indicate_init(void)
+ {
+ DBFENTER;
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14))
++ netlink_kernel_create( P80211_NL_SOCK_IND, &p80211ind_rx);
++#else
+ nl_indicate =
+- netlink_kernel_create( P80211_NL_SOCK_IND, &p80211ind_rx);
++ netlink_kernel_create( P80211_NL_SOCK_IND, P80211_NL_MCAST_GRP_MLME, &p80211ind_rx, THIS_MODULE);
++
++#endif
+ if ( nl_indicate == NULL ) {
+ WLAN_LOG_DEBUG(2,"Failed to create indicate netlink i/f.\n");
+ }
+Index: src/p80211/p80211wep.c
+===================================================================
+--- src/p80211/p80211wep.c (revision 1748)
++++ src/p80211/p80211wep.c (revision 1750)
+@@ -56,6 +56,7 @@
+ #include <linux/slab.h>
+ #include <linux/random.h>
+
++#include <wlan/version.h>
+ #include <wlan/wlan_compat.h>
+
+ // #define WEP_DEBUG
+Index: src/p80211/p80211mod.c
+===================================================================
+--- src/p80211/p80211mod.c (revision 1748)
++++ src/p80211/p80211mod.c (revision 1750)
+@@ -70,12 +70,12 @@
+ #include <linux/wireless.h>
+ #include <linux/netdevice.h>
+
++#include <wlan/version.h>
+ #include <wlan/wlan_compat.h>
+
+ /*================================================================*/
+ /* Project Includes */
+
+-#include <wlan/version.h>
+ #include <wlan/p80211types.h>
+ #include <wlan/p80211hdr.h>
+ #include <wlan/p80211mgmt.h>
+Index: src/p80211/Makefile
+===================================================================
+--- src/p80211/Makefile (revision 1748)
++++ src/p80211/Makefile (revision 1750)
+@@ -50,7 +50,7 @@
+
+ ifneq ($(KERNELRELEASE),)
+
+-EXTRA_CFLAGS += -I$(WLAN_SRC)/include $(WLAN_INCLUDE_DEBUG)
++EXTRA_CFLAGS += -I$(WLAN_SRC)/include $(WLAN_INCLUDE_DEBUG) -DWLAN_HOSTIF=WLAN_NONE
+
+ ifeq ($(KERN_25), y)
+
+Index: src/prism2/driver/hfa384x_usb.c
+===================================================================
+--- src/prism2/driver/hfa384x_usb.c (revision 1748)
++++ src/prism2/driver/hfa384x_usb.c (revision 1750)
+@@ -2108,7 +2108,7 @@
+ ctlx->outbuf.rmemreq.offset,
+ ctlx->outbuf.rmemreq.page);
+
+- WLAN_LOG_DEBUG(4,"pktsize=%d\n",
++ WLAN_LOG_DEBUG(4,"pktsize=%ld\n",
+ ROUNDUP64(sizeof(ctlx->outbuf.rmemreq)));
+
+ ctlx->reapable = mode;
+@@ -3131,7 +3131,7 @@
+
+ if (result) {
+ WLAN_LOG_WARNING(
+- "Read from index %d failed, continuing\n",
++ "Read from index %ld failed, continuing\n",
+ i );
+ continue;
+ }
+@@ -4320,7 +4320,7 @@
+ if ( skblen >
+ (sizeof(p80211msg_lnxind_wlansniffrm_t) +
+ WLAN_HDR_A4_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN) ) {
+- WLAN_LOG_DEBUG(1, "overlen frm: len=%d\n",
++ WLAN_LOG_DEBUG(1, "overlen frm: len=%ld\n",
+ skblen - sizeof(p80211msg_lnxind_wlansniffrm_t));
+ }
+
+Index: src/prism2/driver/prism2_cs.c
+===================================================================
+--- src/prism2/driver/prism2_cs.c (revision 1748)
++++ src/prism2/driver/prism2_cs.c (revision 1750)
+@@ -61,7 +61,7 @@
+ ----------------------------------------------------------------*/
+ static void cs_error(client_handle_t handle, int func, int ret)
+ {
+-#if CS_RELEASE_CODE < 0x2911
++#if (defined(CS_RELEASE_CODE) && (CS_RELEASE_CODE < 0x2911))
+ CardServices(ReportError, dev_info, (void *)func, (void *)ret);
+ #else
+ error_info_t err = { func, ret };
+@@ -208,7 +208,7 @@
+ #endif
+ link->conf.IntType = INT_MEMORY_AND_IO;
+ link->priv = wlandev;
+-#if CS_RELEASE_CODE > 0x2911
++#if (defined(CS_RELEASE_CODE) && (CS_RELEASE_CODE < 0x2911))
+ link->irq.Instance = wlandev;
+ #endif
+
diff --git a/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.2-r1 b/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.2-r1
new file mode 100644
index 000000000000..5d45e8b8245e
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.2-r1
@@ -0,0 +1 @@
+MD5 54b11244fa50a85b31f21c64a8f259b7 linux-wlan-ng-0.2.2.tar.bz2 458937
diff --git a/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2-r1.ebuild b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..33b3eb69db42
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2-r1.ebuild,v 1.1 2005/11/02 20:44:02 betelgeuse Exp $
+
+inherit eutils linux-mod
+
+MY_P=${P/-modules/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Kernel modules for Prism2/2.5/3 based 802.11b wireless LAN products"
+HOMEPAGE="http://linux-wlan.org"
+SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.bz2"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+
+IUSE="debug pci pcmcia plx usb"
+
+BUILD_TARGETS="default"
+BUILD_PARAMS="WLAN_SRC=${S}/src"
+
+pkg_setup() {
+ # We have to put this to the global scope inside the function or it will be
+ # reset between functions because the ebuild is sourced many times.
+
+ MODULE_NAMES="p80211(net/wireless:${S}/src/p80211)"
+
+ if use pci; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_pci(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ if use plx; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_plx(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ if use pcmcia; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_cs(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ if use usb; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_usb(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ linux-mod_pkg_setup
+}
+
+config_by_usevar() {
+ local config=${3}
+ [[ -z ${config} ]] && config=${S}/default.config
+
+ if use ${2}; then
+ echo "${1}=y" >> ${config}
+ else
+ echo "${1}=n" >> ${config}
+ fi
+}
+
+src_unpack() {
+ local config=${S}/default.config
+
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${MY_P}-module_param.patch
+ epatch ${FILESDIR}/${PV}-kernel-2.6.14.patch
+
+ cp ${S}/config.in ${config}
+
+ echo "TARGET_ROOT_ON_HOST=${D}" >> ${config}
+ echo "LINUX_SRC=${KERNEL_DIR}" >> ${config}
+ echo "FIRMWARE_DIR=/lib/firmware/" >> ${config}
+
+ if use pcmcia && [[ -n "${PCMCIA_VERSION}" ]]; then
+ echo "PCMCIA_SRC=${PCMCIA_SOURCE_DIR}" >> ${config}
+ fi
+
+ config_by_usevar PRISM2_USB usb
+ config_by_usevar PRISM2_PCI pci
+ config_by_usevar PRISM2_PLX plx
+ config_by_usevar PRISM2_PCMCIA pcmcia
+ config_by_usevar WLAN_DEBUG debug
+
+ if kernel_is gt 2 4; then
+ echo "KERN_25=y" >> ${config}
+ fi
+
+ sed -i -e "s:dep modules:modules:" ${S}/src/p80211/Makefile
+}
+
+src_compile() {
+ set_arch_to_kernel
+ emake default_config || die "emake default_config failed"
+ set_arch_to_portage
+
+ cd ${S}/src/mkmeta
+ emake || die "emake mkmeta failed"
+
+ linux-mod_src_compile
+}