summaryrefslogtreecommitdiff
path: root/packages/wlags-modules/files/kernel-pcmcia.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/wlags-modules/files/kernel-pcmcia.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/wlags-modules/files/kernel-pcmcia.patch')
-rw-r--r--packages/wlags-modules/files/kernel-pcmcia.patch90
1 files changed, 90 insertions, 0 deletions
diff --git a/packages/wlags-modules/files/kernel-pcmcia.patch b/packages/wlags-modules/files/kernel-pcmcia.patch
index e69de29bb2..2a27344461 100644
--- a/packages/wlags-modules/files/kernel-pcmcia.patch
+++ b/packages/wlags-modules/files/kernel-pcmcia.patch
@@ -0,0 +1,90 @@
+Compiling against PCMCIA-CS is obsolete since more than one year.
+Especially in Linux Kernel trees for embedded devices, the
+kernel-based PCMCIA are working, whereas pcmcia-cs has usual problems.
+
+This patch creates the necessary infrastructure to run the wlags
+driver with kernel-pcmcia.
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- wlags/wl_version.h~kernel-pcmcia
++++ wlags/wl_version.h
+@@ -161,23 +161,29 @@
+ the status of wireless extension support. Otherwise, including wireless
+ extension support will be switched on/off by the USE_WEXT condition */
+ #if defined BUS_PCMCIA
+-#include <pcmcia/config.h>
+-#include <pcmcia/k_compat.h>
++//#include <pcmcia/config.h>
++//#include <pcmcia/k_compat.h>
+ #elif defined BUS_PCI
+ #if USE_WEXT
+ #define HAS_WIRELESS_EXTENSIONS
+ #endif // USE_WEXT
++#endif // BUS_XXX
+
+
+ /* These are #defines you get "for free" with PCMCIA that I needed to add for
+ PCI to build */
++#ifndef NEW_MULTICAST
+ #define NEW_MULTICAST
++#endif
++#ifndef ALLOC_SKB
+ #define ALLOC_SKB(len) dev_alloc_skb(len+2)
++#endif
++#ifndef GET_PACKET
+ #define GET_PACKET(dev, skb, count)\
+ skb_reserve((skb), 2); \
+ BLOCK_INPUT(skb_put((skb), (count)), (count)); \
+ (skb)->protocol = eth_type_trans((skb), (dev))
+-#endif // BUS_XXX
++#endif
+
+
+
+--- wlags/wl_internal.h~kernel-pcmcia
++++ wlags/wl_internal.h
+@@ -85,8 +85,8 @@
+ * include files
+ ******************************************************************************/
+ #ifdef BUS_PCMCIA
+-#include <pcmcia/config.h>
+-#include <pcmcia/k_compat.h>
++//#include <pcmcia/config.h>
++//#include <pcmcia/k_compat.h>
+ #include <pcmcia/version.h>
+ #include <pcmcia/cs_types.h>
+ #include <pcmcia/cs.h>
+--- wlags/wl_netdev.c~kernel-pcmcia
++++ wlags/wl_netdev.c
+@@ -1447,7 +1447,7 @@
+ dev->set_multicast_list = &wl_multicast;
+
+ #ifdef BUS_PCMCIA
+- init_dev_name( dev, ( (struct wl_private *)dev->priv)->node );
++//HS init_dev_name( dev, ( (struct wl_private *)dev->priv)->node );
+ #endif // BUS_PCMCIA
+
+ dev->init = &wl_init;
+--- wlags/wl_cs.c~kernel-pcmcia
++++ wlags/wl_cs.c
+@@ -497,7 +497,7 @@
+ /* Perform device-specific removal */
+ wl_remove( dev );
+
+- link->release.expires = RUN_AT( HZ/20 );
++ link->release.expires = jiffies + ( HZ/20 );
+ add_timer( &( link->release ));
+ }
+
+@@ -786,7 +786,7 @@
+
+ if( link->state & DEV_STALE_CONFIG )
+ {
+- link->release.expires = RUN_AT( HZ/20 );
++ link->release.expires = jiffies + ( HZ/20 );
+ link->state |= DEV_RELEASE_PENDING;
+
+ add_timer( &link->release );