]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/hostap/hostap-modules-0.3.7/add_event.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / hostap / hostap-modules-0.3.7 / add_event.patch
1 Index: hostap-driver-0.3.7/driver/modules/hostap_cs.c
2 ===================================================================
3 --- hostap-driver-0.3.7.orig/driver/modules/hostap_cs.c 2005-08-03 17:05:53.000000000 +0100
4 +++ hostap-driver-0.3.7/driver/modules/hostap_cs.c      2005-08-03 17:07:59.000000000 +0100
5 @@ -526,11 +526,13 @@
6         dev_list = link;
7         client_reg.dev_info = &dev_info;
8         client_reg.Attributes = INFO_IO_CLIENT;
9 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13))
10         client_reg.EventMask = CS_EVENT_CARD_INSERTION |
11                 CS_EVENT_CARD_REMOVAL |
12                 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
13                 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
14         client_reg.event_handler = &prism2_event;
15 +#endif
16         client_reg.Version = 0x0210;
17         client_reg.event_callback_args.client_data = link;
18         ret = pcmcia_register_client(&link->handle, &client_reg);
19 @@ -913,6 +915,9 @@
20                 .name   = "hostap_cs",
21         },
22         .attach         = prism2_attach,
23 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12))
24 +       .event          = prism2_event,
25 +#endif
26         .detach         = prism2_detach,
27         .owner          = THIS_MODULE,
28  };