1 Compiling against PCMCIA-CS is obsolete since more than one year.
2 Especially in Linux Kernel trees for embedded devices, the
3 kernel-based PCMCIA are working, whereas pcmcia-cs has usual problems.
5 This patch creates the necessary infrastructure to run the wlags
6 driver with kernel-pcmcia.
9 # Patch managed by http://www.holgerschurig.de/patcher.html
12 --- wlags/wl_version.h~kernel-pcmcia
13 +++ wlags/wl_version.h
15 the status of wireless extension support. Otherwise, including wireless
16 extension support will be switched on/off by the USE_WEXT condition */
17 #if defined BUS_PCMCIA
18 -#include <pcmcia/config.h>
19 -#include <pcmcia/k_compat.h>
20 +//#include <pcmcia/config.h>
21 +//#include <pcmcia/k_compat.h>
24 #define HAS_WIRELESS_EXTENSIONS
29 /* These are #defines you get "for free" with PCMCIA that I needed to add for
31 +#ifndef NEW_MULTICAST
35 #define ALLOC_SKB(len) dev_alloc_skb(len+2)
38 #define GET_PACKET(dev, skb, count)\
39 skb_reserve((skb), 2); \
40 BLOCK_INPUT(skb_put((skb), (count)), (count)); \
41 (skb)->protocol = eth_type_trans((skb), (dev))
47 --- wlags/wl_internal.h~kernel-pcmcia
48 +++ wlags/wl_internal.h
51 ******************************************************************************/
53 -#include <pcmcia/config.h>
54 -#include <pcmcia/k_compat.h>
55 +//#include <pcmcia/config.h>
56 +//#include <pcmcia/k_compat.h>
57 #include <pcmcia/version.h>
58 #include <pcmcia/cs_types.h>
59 #include <pcmcia/cs.h>
60 --- wlags/wl_netdev.c~kernel-pcmcia
63 dev->set_multicast_list = &wl_multicast;
66 - init_dev_name( dev, ( (struct wl_private *)dev->priv)->node );
67 +//HS init_dev_name( dev, ( (struct wl_private *)dev->priv)->node );
71 --- wlags/wl_cs.c~kernel-pcmcia
74 /* Perform device-specific removal */
77 - link->release.expires = RUN_AT( HZ/20 );
78 + link->release.expires = jiffies + ( HZ/20 );
79 add_timer( &( link->release ));
84 if( link->state & DEV_STALE_CONFIG )
86 - link->release.expires = RUN_AT( HZ/20 );
87 + link->release.expires = jiffies + ( HZ/20 );
88 link->state |= DEV_RELEASE_PENDING;
90 add_timer( &link->release );