summaryrefslogtreecommitdiff
path: root/packages/wlan-ng/wlan-ng-modules
diff options
context:
space:
mode:
authorDirk Opfer <dirk@opfer-online.de>2006-03-23 09:45:04 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-03-23 09:45:04 +0000
commitbc8713bc19b90499828aa2d8f148752967b7ee0c (patch)
tree1956cd7ee47a8ec73f1187c02fd1943c9f2b9e2e /packages/wlan-ng/wlan-ng-modules
parentb4d5283ac5eda8be3429f6d6e89d258ea351cf61 (diff)
wlan-ng: add 0.2.3 and svn version, split usb, cs and pci driver
Diffstat (limited to 'packages/wlan-ng/wlan-ng-modules')
-rw-r--r--packages/wlan-ng/wlan-ng-modules/.mtn2git_empty0
-rw-r--r--packages/wlan-ng/wlan-ng-modules/config.in21
-rw-r--r--packages/wlan-ng/wlan-ng-modules/only-the-modules.patch31
-rw-r--r--packages/wlan-ng/wlan-ng-modules/pcmcia-driver.patch84
-rw-r--r--packages/wlan-ng/wlan-ng-modules/usb-owner.patch13
5 files changed, 149 insertions, 0 deletions
diff --git a/packages/wlan-ng/wlan-ng-modules/.mtn2git_empty b/packages/wlan-ng/wlan-ng-modules/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/wlan-ng/wlan-ng-modules/.mtn2git_empty
diff --git a/packages/wlan-ng/wlan-ng-modules/config.in b/packages/wlan-ng/wlan-ng-modules/config.in
new file mode 100644
index 0000000000..9a34bf5f7b
--- /dev/null
+++ b/packages/wlan-ng/wlan-ng-modules/config.in
@@ -0,0 +1,21 @@
+WLAN_VERSION=0
+WLAN_PATCHLEVEL=2
+WLAN_SUBLEVEL=3
+WLAN_EXTRAVERSION=svn
+#LINUX_SRC=$(KERNEL_SOURCE)
+PCMCIA_SRC=
+PREFIX=
+INST_EXEDIR=/sbin
+#TARGET_ROOT_ON_HOST=
+#RC_DIR=/etc/init.d
+PCMCIA_DIR=/etc/pcmcia
+SYSV_INIT=y
+INSTALL_DEPMOD=
+WLAN_DEBUG=n
+CROSS_COMPILE_ENABLED=n
+CROSS_COMPILE=
+HOST_COMPILE=
+PRISM2_PLX=y
+PRISM2_PCMCIA=y
+PRISM2_PCI=y
+PRISM2_USB=y
diff --git a/packages/wlan-ng/wlan-ng-modules/only-the-modules.patch b/packages/wlan-ng/wlan-ng-modules/only-the-modules.patch
new file mode 100644
index 0000000000..16d2bf3a6c
--- /dev/null
+++ b/packages/wlan-ng/wlan-ng-modules/only-the-modules.patch
@@ -0,0 +1,31 @@
+Index: linux-wlan-ng-devel/src/Makefile
+===================================================================
+--- linux-wlan-ng-devel.orig/src/Makefile 2006-02-21 11:41:23.000000000 +0100
++++ linux-wlan-ng-devel/src/Makefile 2006-02-21 12:58:05.796955176 +0100
+@@ -44,10 +44,9 @@
+
+ -include ../config.mk
+
+-DIRS=p80211 prism2 shared wlanctl nwepgen \
+- mkmeta wlancfg
+-ALL_DIRS=mkmeta p80211 prism2 shared wlanctl \
+- nwepgen wlancfg
++
++DIRS=p80211 prism2 shared mkmeta
++ALL_DIRS=mkmeta p80211 prism2 shared
+
+ ifneq ($(wildcard *.addon),)
+ DIRS+=`cat *.addon`
+Index: linux-wlan-ng-devel/src/prism2/Makefile
+===================================================================
+--- linux-wlan-ng-devel.orig/src/prism2/Makefile 2006-02-21 11:41:23.000000000 +0100
++++ linux-wlan-ng-devel/src/prism2/Makefile 2006-02-21 12:57:28.660600760 +0100
+@@ -44,7 +44,7 @@
+
+ -include ../../config.mk
+
+-DIRS=driver ridlist download
++DIRS=driver ridlist
+
+ ifneq ($(wildcard *.addon),)
+ DIRS+=`cat *.addon`
diff --git a/packages/wlan-ng/wlan-ng-modules/pcmcia-driver.patch b/packages/wlan-ng/wlan-ng-modules/pcmcia-driver.patch
new file mode 100644
index 0000000000..429452f715
--- /dev/null
+++ b/packages/wlan-ng/wlan-ng-modules/pcmcia-driver.patch
@@ -0,0 +1,84 @@
+Index: trunk/src/prism2/driver/prism2_cs.c
+===================================================================
+--- trunk.orig/src/prism2/driver/prism2_cs.c 2006-03-23 08:45:02.000000000 +0100
++++ trunk/src/prism2/driver/prism2_cs.c 2006-03-23 09:14:21.777552944 +0100
+@@ -45,6 +45,8 @@
+ static void prism2sta_config(dev_link_t *link);
+ static void prism2sta_release(u_long arg);
+ static int prism2sta_event (event_t event, int priority, event_callback_args_t *args);
++static int prism2sta_suspend1(struct pcmcia_device *dev);
++static int prism2sta_resume1(struct pcmcia_device *dev);
+
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,68))
+ /*----------------------------------------------------------------
+@@ -140,13 +142,23 @@
+ .drv = {
+ .name = "prism2_cs",
+ },
+- .attach = prism2sta_attach,
+- .detach = prism2sta_detach,
+- .owner = THIS_MODULE,
+-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12)
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15))
++ .probe = prism2sta_attach,
++ .remove = prism2sta_detach,
++ .suspend= prism2sta_suspend1,
++ .resume = prism2sta_resume1,
++#else
++ .attach = prism2sta_attach,
++ .detach = prism2sta_detach,
++#endif
++ .owner = THIS_MODULE,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13))
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15))
++ .event = prism2sta_event,
++#endif
+ .id_table = prism2_cs_ids,
+- .event = prism2sta_event,
+ #endif
++
+ };
+ #endif /* kernel_version */
+
+@@ -361,7 +373,41 @@
+ return;
+ }
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15))
++static int prism2sta_suspend1(struct pcmcia_device *dev)
++{
++ dev_link_t *link = dev_to_instance(dev);
++ wlandevice_t *wlandev = (wlandevice_t*)link->priv;
++
++ DBFENTER;
++
++ link->state |= DEV_SUSPEND;
++ if (link->state & DEV_CONFIG) {
++ prism2sta_ifstate(wlandev, P80211ENUM_ifstate_disable);
++ pcmcia_release_configuration(link->handle);
++ }
++
++ DBFEXIT;
++ return 0;
++}
+
++static int prism2sta_resume1(struct pcmcia_device *dev)
++{
++ dev_link_t *link = dev_to_instance(dev);
++ wlandevice_t *wlandev = (wlandevice_t*)link->priv;
++
++ DBFENTER;
++
++ link->state &= ~DEV_SUSPEND;
++ if (link->state & DEV_CONFIG) {
++ pcmcia_request_configuration(link->handle, &link->conf);
++ }
++
++ DBFEXIT;
++ return 0;
++}
++#endif
++
+ /*----------------------------------------------------------------
+ * prism2sta_config
+ *
diff --git a/packages/wlan-ng/wlan-ng-modules/usb-owner.patch b/packages/wlan-ng/wlan-ng-modules/usb-owner.patch
new file mode 100644
index 0000000000..aa66ceeef9
--- /dev/null
+++ b/packages/wlan-ng/wlan-ng-modules/usb-owner.patch
@@ -0,0 +1,13 @@
+Index: trunk/src/prism2/driver/prism2_usb.c
+===================================================================
+--- trunk.orig/src/prism2/driver/prism2_usb.c 2006-03-22 09:10:51.049384984 +0100
++++ trunk/src/prism2/driver/prism2_usb.c 2006-03-22 09:14:39.152708008 +0100
+@@ -313,7 +313,7 @@
+
+
+ struct usb_driver prism2_usb_driver = {
+-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,4,19))
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,4,19) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16))
+ .owner = THIS_MODULE,
+ #endif
+ .name = "prism2_usb",