diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-07-23 19:53:29 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-07-23 19:53:29 +0000 |
commit | a85c83463fa61876ab3061b419a5c2919c527b0f (patch) | |
tree | b2ac73dc1fac5dc609079a9549c08da025f218bc /net-wireless | |
parent | Stable on ppc wrt bug 185614 (diff) | |
download | gentoo-2-a85c83463fa61876ab3061b419a5c2919c527b0f.tar.gz gentoo-2-a85c83463fa61876ab3061b419a5c2919c527b0f.tar.bz2 gentoo-2-a85c83463fa61876ab3061b419a5c2919c527b0f.zip |
Version bump thanks to Mariusz Czubacki <mariusz.czubacki@gmail.com>
(Portage version: 2.1.3_rc9)
Diffstat (limited to 'net-wireless')
8 files changed, 332 insertions, 1 deletions
diff --git a/net-wireless/adm8211/ChangeLog b/net-wireless/adm8211/ChangeLog index 2604bb525833..e961bf0e39d7 100644 --- a/net-wireless/adm8211/ChangeLog +++ b/net-wireless/adm8211/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for net-wireless/adm8211 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/adm8211/ChangeLog,v 1.7 2007/07/07 11:08:51 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/adm8211/ChangeLog,v 1.8 2007/07/23 19:53:29 genstef Exp $ + +*adm8211-20060111 (23 Jul 2007) + + 23 Jul 2007; Stefan Schweizer <genstef@gentoo.org> + +files/01-fix-up-build-breaks-from-2.6.19.patch, + +files/04-fix-set-essid-for-WE-21.patch, + +files/02-Use-ieee80211_generic_get_stats.patch, + +files/05-update-email-address-from-jkmaline-cc.hut.fi-to.patch, + +files/03-fix-work_struct-build-breakage.patch, +adm8211-20060111.ebuild: + Version bump thanks to Mariusz Czubacki <mariusz.czubacki@gmail.com> 07 Jul 2007; Stefan Schweizer <genstef@gentoo.org> +files/linux-2.6.17.patch, +files/linux-2.6.19.patch, diff --git a/net-wireless/adm8211/adm8211-20060111.ebuild b/net-wireless/adm8211/adm8211-20060111.ebuild new file mode 100644 index 000000000000..452149c175b4 --- /dev/null +++ b/net-wireless/adm8211/adm8211-20060111.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit linux-mod + +S=${WORKDIR}/${PN} + +DESCRIPTION="IEEE 802.11 wireless LAN driver for adm8211 based cards" +HOMEPAGE="http://aluminum.sourmilk.net/adm8211/" +SRC_URI="http://aluminum.sourmilk.net/adm8211/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" +RDEPEND="net-wireless/wireless-tools" + +BUILD_TARGETS="all" + +MODULE_NAMES="adm8211(net:)" + +CONFIG_CHECK="WIRELESS_EXT CRYPTO_ARC4" +ERROR_WIRELESS_EXT="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions" +ERROR_CRYPTO_ARC4="${P} requires support for ARC4 cipher algorithm (CONFIG_CRYPTO_ARC4)." + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is lt 2 6 10; then + eerror "${P} requires linux-2.6.9 or later." + die "${P} requires linux-2.6.9 or later" + fi + + BUILD_PARAMS="KDIR=${KV_DIR}" +} + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/01-fix-up-build-breaks-from-2.6.19.patch + epatch ${FILESDIR}/02-Use-ieee80211_generic_get_stats.patch + epatch ${FILESDIR}/03-fix-work_struct-build-breakage.patch + epatch ${FILESDIR}/04-fix-set-essid-for-WE-21.patch + epatch ${FILESDIR}/05-update-email-address-from-jkmaline-cc.hut.fi-to.patch + + convert_to_m ${S}/Makefile +} + +src_install() { + linux-mod_src_install + + dodoc Changelog NOTES TODO +} diff --git a/net-wireless/adm8211/files/01-fix-up-build-breaks-from-2.6.19.patch b/net-wireless/adm8211/files/01-fix-up-build-breaks-from-2.6.19.patch new file mode 100644 index 000000000000..1cf8f0a0ac10 --- /dev/null +++ b/net-wireless/adm8211/files/01-fix-up-build-breaks-from-2.6.19.patch @@ -0,0 +1,44 @@ +From 108f260412a71614665e8867a3356231af43f374 Mon Sep 17 00:00:00 2001 +From: John W. Linville <linville@tuxdriver.com> +Date: Tue, 17 Oct 2006 13:02:27 -0400 +Subject: [PATCH] [PATCH] adm8211: fix-up build breaks from 2.6.19 + +Signed-off-by: John W. Linville <linville@tuxdriver.com> +--- + adm8211/adm8211_hw.c | 6 ++---- + 1 files changed, 2 insertions(+), 4 deletions(-) + +diff --git a/adm8211/adm8211_hw.c b/adm8211/adm8211_hw.c +index a45c74d..f95d798 100644 +--- a/adm8211/adm8211_hw.c ++++ b/adm8211/adm8211_hw.c +@@ -15,7 +15,6 @@ + * more details. + */ + +-#include <linux/config.h> + #include <linux/version.h> + #include <linux/module.h> + #include <linux/moduleparam.h> +@@ -737,8 +736,7 @@ static void adm8211_interrupt_rci(struct net_device *dev) + } + + +-static irqreturn_t adm8211_interrupt(int irq, void *dev_id, +- struct pt_regs *regs) ++static irqreturn_t adm8211_interrupt(int irq, void *dev_id) + { + #define ADM8211_INT(x) if (unlikely(stsr & ADM8211_STSR_ ## x)) printk(KERN_DEBUG "%s: " #x "\n", dev->name) + +@@ -2041,7 +2039,7 @@ static int adm8211_open(struct net_device *dev) + adm8211_set_rx_mode(dev); + + retval = request_irq(dev->irq, &adm8211_interrupt, +- SA_SHIRQ, dev->name, dev); ++ IRQF_SHARED, dev->name, dev); + if (retval) { + printk(KERN_ERR "%s: failed to register IRQ handler\n", + dev->name); +-- +1.5.2.1 + diff --git a/net-wireless/adm8211/files/02-Use-ieee80211_generic_get_stats.patch b/net-wireless/adm8211/files/02-Use-ieee80211_generic_get_stats.patch new file mode 100644 index 000000000000..4adfea7c94e9 --- /dev/null +++ b/net-wireless/adm8211/files/02-Use-ieee80211_generic_get_stats.patch @@ -0,0 +1,43 @@ +From 192837172632b72c0da82ade708bb6b1ed649b8f Mon Sep 17 00:00:00 2001 +From: Daniel Drake <dsd@gentoo.org> +Date: Wed, 22 Nov 2006 03:16:13 +0000 +Subject: [PATCH] [PATCH] adm8211: Use ieee80211_generic_get_stats + +adm8211 can also benefit from the generic get_stats implementation in my +previous mail. I am sending the adm8211 patch separately because adm8211 is +not in Linus' tree. + +Signed-off-by: Daniel Drake <dsd@gentoo.org> +Signed-off-by: John W. Linville <linville@tuxdriver.com> +--- + adm8211/adm8211_hw.c | 7 ------- + 1 files changed, 0 insertions(+), 7 deletions(-) + +diff --git a/adm8211/adm8211_hw.c b/adm8211/adm8211_hw.c +index f95d798..a33d239 100644 +--- a/adm8211/adm8211_hw.c ++++ b/adm8211/adm8211_hw.c +@@ -363,12 +363,6 @@ static void adm8211_clear_sram(struct net_device *dev) + ADM8211_CSR_WRITE(WEPCTL, reg); + } + +-static struct net_device_stats *adm8211_get_stats(struct net_device *dev) +-{ +- struct ieee80211_device *ieee = netdev_priv(dev); +- return &ieee->stats; +-} +- + static void adm8211_set_rx_mode(struct net_device *dev) + { + struct adm8211_priv *priv = ieee80211_priv(dev); +@@ -2531,7 +2525,6 @@ static int __devinit adm8211_probe(struct pci_dev *pdev, + dev->features |= NETIF_F_LLTX; + dev->open = adm8211_open; + dev->stop = adm8211_stop; +- dev->get_stats = adm8211_get_stats; + dev->set_multicast_list = adm8211_set_rx_mode; + dev->set_mac_address = adm8211_set_mac_address; + +-- +1.5.2.1 + diff --git a/net-wireless/adm8211/files/03-fix-work_struct-build-breakage.patch b/net-wireless/adm8211/files/03-fix-work_struct-build-breakage.patch new file mode 100644 index 000000000000..95eb22afd638 --- /dev/null +++ b/net-wireless/adm8211/files/03-fix-work_struct-build-breakage.patch @@ -0,0 +1,69 @@ +From e8c4bd51047c6f428474f9f0788375a3433684e7 Mon Sep 17 00:00:00 2001 +From: John W. Linville <linville@tuxdriver.com> +Date: Mon, 11 Dec 2006 18:32:06 -0500 +Subject: [PATCH] [PATCH] adm8211: fix work_struct build breakage + +Signed-off-by: John W. Linville <linville@tuxdriver.com> +--- + adm8211/ieee80211_sta.c | 12 ++++++------ + adm8211/ieee80211_sta.h | 2 +- + 2 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/adm8211/ieee80211_sta.c b/adm8211/ieee80211_sta.c +index 032d067..940f742 100644 +--- a/adm8211/ieee80211_sta.c ++++ b/adm8211/ieee80211_sta.c +@@ -30,7 +30,7 @@ + #define IEEE80211_MONITORING_INTERVAL (30 * HZ) + #define IEEE80211_LINKCHECK_INTERVAL (3 * HZ) + +-static void ieee80211_timer(void *ptr); ++static void ieee80211_timer(struct work_struct *work); + + ParseRes ieee802_11_parse_elems(struct ieee80211_info_element *start, size_t len, + struct ieee802_11_elems *elems) +@@ -818,12 +818,12 @@ void ieee80211_start_scan(struct ieee80211_data *data) + ieee80211_set_associated(data, 0); + data->scan_channel = 0; + +- schedule_work(&data->work); ++ schedule_work(&data->work.work); + } + + void ieee80211_init(struct ieee80211_data *data) + { +- INIT_WORK(&data->work, ieee80211_timer, data); ++ INIT_DELAYED_WORK(&data->work, ieee80211_timer); + + data->listen_interval = 10; + data->ieee->state = IEEE80211_UNINITIALIZED; +@@ -1187,10 +1187,10 @@ void ieee80211_rx_mgmt(struct ieee80211_data *data, struct sk_buff *skb, + dev_kfree_skb(skb); + } + +- +-static void ieee80211_timer(void *ptr) ++static void ieee80211_timer(struct work_struct *work) + { +- struct ieee80211_data *data = (struct ieee80211_data *) ptr; ++ struct ieee80211_data *data = ++ container_of(work, struct ieee80211_data, work.work); + + switch (data->ieee->state) { + case IEEE80211_INITIALIZED: +diff --git a/adm8211/ieee80211_sta.h b/adm8211/ieee80211_sta.h +index b672936..75dc61b 100644 +--- a/adm8211/ieee80211_sta.h ++++ b/adm8211/ieee80211_sta.h +@@ -47,7 +47,7 @@ struct ieee80211_data { + void (*link_monitor)(struct net_device *dev); + int (*set_channel)(struct net_device *dev, unsigned int channel); + +- struct work_struct work; ++ struct delayed_work work; + + #define AUTO_ASSOCIATE (1<<0) + #define AUTO_RATE (1<<1) +-- +1.5.2.1 + diff --git a/net-wireless/adm8211/files/04-fix-set-essid-for-WE-21.patch b/net-wireless/adm8211/files/04-fix-set-essid-for-WE-21.patch new file mode 100644 index 000000000000..dfe807b88682 --- /dev/null +++ b/net-wireless/adm8211/files/04-fix-set-essid-for-WE-21.patch @@ -0,0 +1,26 @@ +From 79259f536ba8fd8c500b4506b1a89b06c5264d06 Mon Sep 17 00:00:00 2001 +From: John W. Linville <linville@tuxdriver.com> +Date: Tue, 27 Mar 2007 13:03:46 -0400 +Subject: [PATCH] [PATCH] adm8211: fix set essid for WE-21 + +Signed-off-by: John W. Linville <linville@tuxdriver.com> +--- + adm8211/adm8211_ioctl.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/adm8211/adm8211_ioctl.c b/adm8211/adm8211_ioctl.c +index 22850cc..7c0f6b6 100644 +--- a/adm8211/adm8211_ioctl.c ++++ b/adm8211_ioctl.c +@@ -294,7 +294,7 @@ static int adm8211_ioctl_siwessid(struct net_device *dev, + if (dwrq->flags == 0 || dwrq->length < 1) + len = 0; + else +- len = min(dwrq->length - 1, IW_ESSID_MAX_SIZE); ++ len = min(dwrq->length, IW_ESSID_MAX_SIZE); + + memcpy(priv->ieee80211.ssid, essid, len); + priv->ieee80211.ssid_len = len; +-- +1.5.2.1 + diff --git a/net-wireless/adm8211/files/05-update-email-address-from-jkmaline-cc.hut.fi-to.patch b/net-wireless/adm8211/files/05-update-email-address-from-jkmaline-cc.hut.fi-to.patch new file mode 100644 index 000000000000..be7561c6b78c --- /dev/null +++ b/net-wireless/adm8211/files/05-update-email-address-from-jkmaline-cc.hut.fi-to.patch @@ -0,0 +1,81 @@ +From 3e2d468ee087e4d60c007746b68731e08346d620 Mon Sep 17 00:00:00 2001 +From: Jouni Malinen <j@w1.fi> +Date: Sat, 24 Mar 2007 17:15:30 -0700 +Subject: [PATCH] [PATCH] Update my email address from jkmaline@cc.hut.fi to j@w1.fi + +After 13 years of use, it looks like my email address is finally going +to disappear. While this is likely to drop the amount of incoming spam +greatly ;-), it may also affect more appropriate messages, so let's +update my email address in various places. In addition, Host AP mailing +list is subscribers-only and linux-wireless can also be used for +discussing issues related to this driver which is now shown in +MAINTAINERS. + +Signed-off-by: Jouni Malinen <j@w1.fi> +Signed-off-by: John W. Linville <linville@tuxdriver.com> +--- + drivers/net/wireless/adm8211/adm8211_hw.c | 6 +++--- + adm8211/adm8211_ioctl.c | 2 +- + adm8211/ieee80211_sta.c | 2 +- + 3 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/adm8211/adm8211_hw.c b/adm8211/adm8211_hw.c +index a33d239..2ec950d 100644 +--- a/adm8211/adm8211_hw.c ++++ b/adm8211/adm8211_hw.c +@@ -2,7 +2,7 @@ + /* + * Linux device driver for ADMtek ADM8211 (IEEE 802.11b MAC/BBP) + * +- * Copyright (c) 2003, Jouni Malinen <jkmaline@cc.hut.fi> ++ * Copyright (c) 2003, Jouni Malinen <j@w1.fi> + * Copyright (c) 2004-2005, Michael Wu <flamingice@sourmilk.net> + * Some parts copyright (c) 2003 by David Young <dyoung@pobox.com> + * and used with permission. +@@ -43,7 +43,7 @@ + + #define RELEASE_DATE "20060414" + +-MODULE_AUTHOR("Jouni Malinen <jkmaline@cc.hut.fi>, Michael Wu <flamingice@sourmilk.net>"); ++MODULE_AUTHOR("Jouni Malinen <j@w1.fi>, Michael Wu <flamingice@sourmilk.net>"); + MODULE_DESCRIPTION("Driver for IEEE 802.11b wireless LAN cards based on ADMtek" + " ADM8211"); + MODULE_SUPPORTED_DEVICE("ADM8211"); +@@ -58,7 +58,7 @@ module_param(rx_ring_size, uint, 0); + module_param(debug, int, 0); + + static const char *version = KERN_INFO "adm8211: " +-"Copyright 2003, Jouni Malinen <jkmaline@cc.hut.fi>; " ++"Copyright 2003, Jouni Malinen <j@w1.fi>; " + "Copyright 2004-2005, Michael Wu <flamingice@sourmilk.net>\n"; + + +diff --git a/adm8211/adm8211_ioctl.c b/adm8211/adm8211_ioctl.c +index 7c0f6b6..7009dae 100644 +--- a/adm8211/adm8211_ioctl.c ++++ b/adm8211/adm8211_ioctl.c +@@ -1,7 +1,7 @@ + /* + * Linux driver for ADMtek ADM8211 (IEEE 802.11b wireless LAN card) + * +- * Copyright (c) 2003, Jouni Malinen <jkmaline@cc.hut.fi> ++ * Copyright (c) 2003, Jouni Malinen <j@w1.fi> + * Copyright (c) 2004-2005, Michael Wu <flamingice@sourmilk.net> + * + * This program is free software; you can redistribute it and/or modify +diff --git a/adm8211/ieee80211_sta.c b/adm8211/ieee80211_sta.c +index 940f742..3b57915 100644 +--- a/adm8211/ieee80211_sta.c ++++ b/adm8211/ieee80211_sta.c +@@ -1,7 +1,7 @@ + /* + * IEEE 802.11 station / management functionality + * +- * Copyright (c) 2003, Jouni Malinen <jkmaline@cc.hut.fi> ++ * Copyright (c) 2003, Jouni Malinen <j@w1.fi> + * Copyright (c) 2004-2005, Michael Wu <flamingice@sourmilk.net> + * + * This program is free software; you can redistribute it and/or modify +-- +1.5.2.1 + diff --git a/net-wireless/adm8211/files/digest-adm8211-20060111 b/net-wireless/adm8211/files/digest-adm8211-20060111 new file mode 100644 index 000000000000..78b0e78f7968 --- /dev/null +++ b/net-wireless/adm8211/files/digest-adm8211-20060111 @@ -0,0 +1,3 @@ +MD5 564c62f95d77a9ad877087a51fc9e47c adm8211-20060111.tar.bz2 36391 +RMD160 d1c44e747c25e64edb234a83f2a872aba8dffcea adm8211-20060111.tar.bz2 36391 +SHA256 09e803d78d2b86ca2261960135d280b48ef8ccb9bf1aef877bc5a011bf32bb76 adm8211-20060111.tar.bz2 36391 |