summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2007-07-23 19:53:29 +0000
committerStefan Schweizer <genstef@gentoo.org>2007-07-23 19:53:29 +0000
commita85c83463fa61876ab3061b419a5c2919c527b0f (patch)
treeb2ac73dc1fac5dc609079a9549c08da025f218bc /net-wireless/adm8211/files
parentStable on ppc wrt bug 185614 (diff)
downloadgentoo-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/adm8211/files')
-rw-r--r--net-wireless/adm8211/files/01-fix-up-build-breaks-from-2.6.19.patch44
-rw-r--r--net-wireless/adm8211/files/02-Use-ieee80211_generic_get_stats.patch43
-rw-r--r--net-wireless/adm8211/files/03-fix-work_struct-build-breakage.patch69
-rw-r--r--net-wireless/adm8211/files/04-fix-set-essid-for-WE-21.patch26
-rw-r--r--net-wireless/adm8211/files/05-update-email-address-from-jkmaline-cc.hut.fi-to.patch81
-rw-r--r--net-wireless/adm8211/files/digest-adm8211-200601113
6 files changed, 266 insertions, 0 deletions
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