diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-05-09 20:15:51 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-05-09 20:15:51 +0000 |
commit | e78700d6c26757a5b0ca59a13cf322e6f7117c51 (patch) | |
tree | eed7b36f8e2fd547d9013960eb8c74426cd23e6b /net-wireless/rtl8180 | |
parent | genstef's package (diff) | |
download | historical-e78700d6c26757a5b0ca59a13cf322e6f7117c51.tar.gz historical-e78700d6c26757a5b0ca59a13cf322e6f7117c51.tar.bz2 historical-e78700d6c26757a5b0ca59a13cf322e6f7117c51.zip |
Fix for newer kernels thanks to many people in bug 160058
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'net-wireless/rtl8180')
-rw-r--r-- | net-wireless/rtl8180/ChangeLog | 9 | ||||
-rw-r--r-- | net-wireless/rtl8180/Manifest | 24 | ||||
-rw-r--r-- | net-wireless/rtl8180/files/rtl8180-2.6.19.patch | 145 | ||||
-rw-r--r-- | net-wireless/rtl8180/files/rtl8180-2.6.20.patch | 32 | ||||
-rw-r--r-- | net-wireless/rtl8180/rtl8180-0.22_pre20050528.ebuild | 10 |
5 files changed, 208 insertions, 12 deletions
diff --git a/net-wireless/rtl8180/ChangeLog b/net-wireless/rtl8180/ChangeLog index 2b9917e457f9..fbab53648a03 100644 --- a/net-wireless/rtl8180/ChangeLog +++ b/net-wireless/rtl8180/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-wireless/rtl8180 -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl8180/ChangeLog,v 1.10 2006/06/25 17:19:45 genstef Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl8180/ChangeLog,v 1.11 2007/05/09 20:15:51 genstef Exp $ + + 09 May 2007; Stefan Schweizer <genstef@gentoo.org> + +files/rtl8180-2.6.19.patch, +files/rtl8180-2.6.20.patch, + rtl8180-0.22_pre20050528.ebuild: + Fix for newer kernels thanks to many people in bug 160058 25 Jun 2006; Stefan Schweizer <genstef@gentoo.org> -files/rtl8180-pci_name.patch, -files/rtl8180_gcc4_fix.patch, diff --git a/net-wireless/rtl8180/Manifest b/net-wireless/rtl8180/Manifest index 4026d82ca5ba..f0d899ce9561 100644 --- a/net-wireless/rtl8180/Manifest +++ b/net-wireless/rtl8180/Manifest @@ -1,12 +1,20 @@ +AUX rtl8180-2.6.19.patch 5141 RMD160 3c0cc9b186a4c48bdf280a0213013414257ed1b8 SHA1 1f1e121e0e21f639ae7d0e03fcea148fdeb7d0df SHA256 66b037ebff75b40401d94aa010ca1242670b782147c9d6c8aa5570fc15e97ad0 +MD5 ef98e6647b2a86765ba445e26879339b files/rtl8180-2.6.19.patch 5141 +RMD160 3c0cc9b186a4c48bdf280a0213013414257ed1b8 files/rtl8180-2.6.19.patch 5141 +SHA256 66b037ebff75b40401d94aa010ca1242670b782147c9d6c8aa5570fc15e97ad0 files/rtl8180-2.6.19.patch 5141 +AUX rtl8180-2.6.20.patch 1662 RMD160 328c1538e0ba702b7d3ac472e950e1a771841ffe SHA1 f0254e9533899c9b925813aad666adc2f403b28d SHA256 c7b9ef0e721f9a6b342ac44a83c91dd03046131c287e638ed8cb00862ae2a7c8 +MD5 b99a604342ebf248c91d6a366b411405 files/rtl8180-2.6.20.patch 1662 +RMD160 328c1538e0ba702b7d3ac472e950e1a771841ffe files/rtl8180-2.6.20.patch 1662 +SHA256 c7b9ef0e721f9a6b342ac44a83c91dd03046131c287e638ed8cb00862ae2a7c8 files/rtl8180-2.6.20.patch 1662 DIST rtl8180-0.22_pre20050528.tar.bz2 90275 RMD160 5ee29d89fa568841270e7fe7955e3c82cf204110 SHA1 37bcf9ffa214a1409aae41e5ed2353bec1c065a7 SHA256 73b0e8a05800bf1ffc116c5c38cec2e84688b347d977ef7fe825d39870d28ac8 -EBUILD rtl8180-0.22_pre20050528.ebuild 1080 RMD160 f6e1b67f6a23276fe2b07db68d4ffba934903432 SHA1 04da11034ae4f342e8a2e13c706f96d84a7092d6 SHA256 67d06caabcd5123b70fb9524a4492fd5f18d82ec9fec2b66f31d9e660faa2bc3 -MD5 0b0175b47d1636975d656a827df61b35 rtl8180-0.22_pre20050528.ebuild 1080 -RMD160 f6e1b67f6a23276fe2b07db68d4ffba934903432 rtl8180-0.22_pre20050528.ebuild 1080 -SHA256 67d06caabcd5123b70fb9524a4492fd5f18d82ec9fec2b66f31d9e660faa2bc3 rtl8180-0.22_pre20050528.ebuild 1080 -MISC ChangeLog 2176 RMD160 ca042f77bd7db07eb3cfcff7b4caa3b49b3e4c9d SHA1 e42b66ec91fd0d7c1c14878c4162511fecb42b2b SHA256 7739ef7d2e224368869e3f01e1719644c173170e5c4c9bde61fc87d4e15fd850 -MD5 0fa776ebce72d12f13b313a74713307f ChangeLog 2176 -RMD160 ca042f77bd7db07eb3cfcff7b4caa3b49b3e4c9d ChangeLog 2176 -SHA256 7739ef7d2e224368869e3f01e1719644c173170e5c4c9bde61fc87d4e15fd850 ChangeLog 2176 +EBUILD rtl8180-0.22_pre20050528.ebuild 1192 RMD160 6c82bcd8421a27955444d458e8750b70874d523e SHA1 c96fdb03b5a812eb37503edfc21325cb4e5a78c0 SHA256 edb52e91ab89c239d222a314087972075ffabdd9a6ddbbd0eda32a2a4119ccf8 +MD5 251cc6187547e4038f5346cf8c4ad367 rtl8180-0.22_pre20050528.ebuild 1192 +RMD160 6c82bcd8421a27955444d458e8750b70874d523e rtl8180-0.22_pre20050528.ebuild 1192 +SHA256 edb52e91ab89c239d222a314087972075ffabdd9a6ddbbd0eda32a2a4119ccf8 rtl8180-0.22_pre20050528.ebuild 1192 +MISC ChangeLog 2385 RMD160 8c199d1ce297a305d720d01722c574ed71e86977 SHA1 e164f3e672cb5fe7914390112eb71f5620ecd28f SHA256 e43134b01c2e2f3c975a68c6a944e1629fafdac5e319ea9408c62edd7ffd5712 +MD5 999a0a27ee18c51d4ca7cebd31c371c9 ChangeLog 2385 +RMD160 8c199d1ce297a305d720d01722c574ed71e86977 ChangeLog 2385 +SHA256 e43134b01c2e2f3c975a68c6a944e1629fafdac5e319ea9408c62edd7ffd5712 ChangeLog 2385 MISC metadata.xml 159 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 SHA1 bce3da4745192397c9a08bdbcf7e4914eac9b77b SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f MD5 19fd766bac8e110b4620363a1ace26dd metadata.xml 159 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 metadata.xml 159 diff --git a/net-wireless/rtl8180/files/rtl8180-2.6.19.patch b/net-wireless/rtl8180/files/rtl8180-2.6.19.patch new file mode 100644 index 000000000000..ccb89721d521 --- /dev/null +++ b/net-wireless/rtl8180/files/rtl8180-2.6.19.patch @@ -0,0 +1,145 @@ +diff -Nurp rtl8180-0.22_pre20050528.orig/ieee80211_crypt.c rtl8180-0.22_pre20050528/ieee80211_crypt.c +--- rtl8180-0.22_pre20050528.orig/ieee80211_crypt.c 2006-02-15 21:52:10.000000000 +0100 ++++ rtl8180-0.22_pre20050528/ieee80211_crypt.c 2006-12-25 11:31:18.000000000 +0100 +@@ -11,8 +11,12 @@ + * + */ + #ifndef CONFIG_IEEE80211_NOWEP +-#include <linux/config.h> + #include <linux/version.h> ++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) ++ #include <linux/config.h> ++#else ++ #include <linux/autoconf.h> ++#endif + #include <linux/module.h> + #include <linux/init.h> + #include <linux/slab.h> +diff -Nurp rtl8180-0.22_pre20050528.orig/ieee80211_crypt_wep.c rtl8180-0.22_pre20050528/ieee80211_crypt_wep.c +--- rtl8180-0.22_pre20050528.orig/ieee80211_crypt_wep.c 2006-02-15 21:52:10.000000000 +0100 ++++ rtl8180-0.22_pre20050528/ieee80211_crypt_wep.c 2006-12-25 11:31:18.000000000 +0100 +@@ -12,8 +12,12 @@ + * someoneelse- + */ + #ifndef CONFIG_IEEE80211_NOWEP +-#include <linux/config.h> + #include <linux/version.h> ++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) ++ #include <linux/config.h> ++#else ++ #include <linux/autoconf.h> ++#endif + #include <linux/module.h> + #include <linux/init.h> + #include <linux/slab.h> +diff -Nurp rtl8180-0.22_pre20050528.orig/ieee80211_module.c rtl8180-0.22_pre20050528/ieee80211_module.c +--- rtl8180-0.22_pre20050528.orig/ieee80211_module.c 2006-02-15 21:52:10.000000000 +0100 ++++ rtl8180-0.22_pre20050528/ieee80211_module.c 2006-12-25 11:31:18.000000000 +0100 +@@ -38,7 +38,12 @@ + *******************************************************************************/ + #include <linux/init.h> + #include <linux/compiler.h> +-#include <linux/config.h> ++#include <linux/version.h> ++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) ++ #include <linux/config.h> ++#else ++ #include <linux/autoconf.h> ++#endif + #include <linux/errno.h> + #include <linux/if_arp.h> + #include <linux/in6.h> +@@ -53,7 +58,6 @@ + #include <linux/slab.h> + #include <linux/tcp.h> + #include <linux/types.h> +-#include <linux/version.h> + #include <linux/wireless.h> + #include <linux/etherdevice.h> + #include <asm/uaccess.h> +diff -Nurp rtl8180-0.22_pre20050528.orig/ieee80211_rx.c rtl8180-0.22_pre20050528/ieee80211_rx.c +--- rtl8180-0.22_pre20050528.orig/ieee80211_rx.c 2006-02-15 21:52:10.000000000 +0100 ++++ rtl8180-0.22_pre20050528/ieee80211_rx.c 2006-12-25 11:31:18.000000000 +0100 +@@ -17,7 +17,12 @@ + */ + + #include <linux/compiler.h> +-#include <linux/config.h> ++#include <linux/version.h> ++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) ++ #include <linux/config.h> ++#else ++ #include <linux/autoconf.h> ++#endif + #include <linux/errno.h> + #include <linux/if_arp.h> + #include <linux/in6.h> +@@ -32,7 +37,6 @@ + #include <linux/slab.h> + #include <linux/tcp.h> + #include <linux/types.h> +-#include <linux/version.h> + #include <linux/wireless.h> + #include <linux/etherdevice.h> + #include <asm/uaccess.h> +diff -Nurp rtl8180-0.22_pre20050528.orig/ieee80211_tx.c rtl8180-0.22_pre20050528/ieee80211_tx.c +--- rtl8180-0.22_pre20050528.orig/ieee80211_tx.c 2006-02-15 21:52:10.000000000 +0100 ++++ rtl8180-0.22_pre20050528/ieee80211_tx.c 2006-12-25 11:31:18.000000000 +0100 +@@ -31,7 +31,12 @@ + + ******************************************************************************/ + #include <linux/compiler.h> +-#include <linux/config.h> ++#include <linux/version.h> ++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) ++ #include <linux/config.h> ++#else ++ #include <linux/autoconf.h> ++#endif + #include <linux/errno.h> + #include <linux/if_arp.h> + #include <linux/in6.h> +@@ -46,7 +51,6 @@ + #include <linux/slab.h> + #include <linux/tcp.h> + #include <linux/types.h> +-#include <linux/version.h> + #include <linux/wireless.h> + #include <linux/etherdevice.h> + #include <asm/uaccess.h> +diff -Nurp rtl8180-0.22_pre20050528.orig/r8180_core.c rtl8180-0.22_pre20050528/r8180_core.c +--- rtl8180-0.22_pre20050528.orig/r8180_core.c 2006-12-25 11:20:09.000000000 +0100 ++++ rtl8180-0.22_pre20050528/r8180_core.c 2006-12-25 11:32:04.000000000 +0100 +@@ -4038,7 +4038,14 @@ static int __devinit rtl8180_pci_probe(s + dev->do_ioctl = do_ioctl; + dev->set_multicast_list = r8180_set_multicast; + dev->set_mac_address = r8180_set_mac_adr; +- dev->get_wireless_stats = r8180_get_wireless_stats; ++ ++#if WIRELESS_EXT >= 12 ++#if WIRELESS_EXT < 17 ++ dev->get_wireless_stats = r8180_get_wireless_stats; ++#endif ++ dev->wireless_handlers = (struct iw_handler_def *) &r8180_wx_handlers_def; ++#endif ++ + dev->type=ARPHRD_ETHER; + + if (dev_alloc_name(dev, ifname) < 0){ +diff -Nurp rtl8180-0.22_pre20050528.orig/r8180.h rtl8180-0.22_pre20050528/r8180.h +--- rtl8180-0.22_pre20050528.orig/r8180.h 2006-02-15 21:52:10.000000000 +0100 ++++ rtl8180-0.22_pre20050528/r8180.h 2006-12-25 11:31:18.000000000 +0100 +@@ -26,7 +26,12 @@ + + #include <linux/module.h> + #include <linux/kernel.h> +-#include <linux/config.h> ++#include <linux/version.h> ++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) ++ #include <linux/config.h> ++#else ++ #include <linux/autoconf.h> ++#endif + #include <linux/init.h> + #include <linux/ioport.h> + #include <linux/sched.h> diff --git a/net-wireless/rtl8180/files/rtl8180-2.6.20.patch b/net-wireless/rtl8180/files/rtl8180-2.6.20.patch new file mode 100644 index 000000000000..62de29090022 --- /dev/null +++ b/net-wireless/rtl8180/files/rtl8180-2.6.20.patch @@ -0,0 +1,32 @@ +Files rtl8180-0.22_pre20050528.orig/ieee80211_crypt.o and rtl8180-0.22_pre20050528/ieee80211_crypt.o differ +diff -Nurp rtl8180-0.22_pre20050528.orig/ieee80211_crypt_wep.c rtl8180-0.22_pre20050528/ieee80211_crypt_wep.c +--- rtl8180-0.22_pre20050528.orig/ieee80211_crypt_wep.c 2007-02-08 23:39:39.000000000 +0000 ++++ rtl8180-0.22_pre20050528/ieee80211_crypt_wep.c 2007-02-08 23:42:48.000000000 +0000 +@@ -23,6 +23,7 @@ + #include <linux/slab.h> + #include <linux/random.h> + #include <linux/skbuff.h> ++#include <linux/mm.h> + #include <asm/string.h> + + #include "ieee80211.h" +Files rtl8180-0.22_pre20050528.orig/ieee80211_module.o and rtl8180-0.22_pre20050528/ieee80211_module.o differ +Files rtl8180-0.22_pre20050528.orig/ieee80211_rx.o and rtl8180-0.22_pre20050528/ieee80211_rx.o differ +Files rtl8180-0.22_pre20050528.orig/ieee80211_tx.o and rtl8180-0.22_pre20050528/ieee80211_tx.o differ +Files rtl8180-0.22_pre20050528.orig/ieee80211_wx.o and rtl8180-0.22_pre20050528/ieee80211_wx.o differ +diff -Nurp rtl8180-0.22_pre20050528.orig/r8180_core.c rtl8180-0.22_pre20050528/r8180_core.c +--- rtl8180-0.22_pre20050528.orig/r8180_core.c 2007-02-08 23:39:39.000000000 +0000 ++++ rtl8180-0.22_pre20050528/r8180_core.c 2007-02-08 23:42:25.000000000 +0000 +@@ -2838,8 +2838,11 @@ short rtl8180_init(struct net_device *de + priv->workqueue = create_workqueue(DRV_NAME); + #endif + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) + INIT_WORK(&priv->IBSS_work,(void(*)(void*)) rtl8180_IBSS_create_wq,dev); +- ++#else ++ INIT_WORK(&priv->IBSS_work,dev); ++#endif + tasklet_init(&priv->irq_rx_tasklet, + (void(*)(unsigned long)) rtl8180_irq_rx_tasklet, + (unsigned long)priv); diff --git a/net-wireless/rtl8180/rtl8180-0.22_pre20050528.ebuild b/net-wireless/rtl8180/rtl8180-0.22_pre20050528.ebuild index 1292960a65d7..f6371bb33f4a 100644 --- a/net-wireless/rtl8180/rtl8180-0.22_pre20050528.ebuild +++ b/net-wireless/rtl8180/rtl8180-0.22_pre20050528.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl8180/rtl8180-0.22_pre20050528.ebuild,v 1.3 2006/06/25 17:19:44 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl8180/rtl8180-0.22_pre20050528.ebuild,v 1.4 2007/05/09 20:15:51 genstef Exp $ inherit linux-mod eutils @@ -30,6 +30,12 @@ src_unpack() { sed -i -e 's:MODULE_PARM(\([^,]*\),"i");:module_param(\1, int, 0);:' \ -e 's:MODULE_PARM(\([^,]*\),"s");:module_param(\1, charp, 0);:' r8180_core.c sed -i -e 's:MODVERDIR=$(PWD) ::' {,ieee80211/}Makefile + + # 2.6.19 patch + epatch ${FILESDIR}/${PN}-2.6.19.patch + + # 2.6.20 patch + epatch ${FILESDIR}/${PN}-2.6.20.patch } src_install() { |