diff options
Diffstat (limited to 'abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc')
44 files changed, 4057 insertions, 0 deletions
diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/entries b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/entries new file mode 100644 index 0000000..f9c4a3a --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/entries @@ -0,0 +1,139 @@ +9 + +dir +1870 +svn://svn.shaftnet.org/linux-wlan-ng/trunk/etc +svn://svn.shaftnet.org/linux-wlan-ng + + + +2008-06-24T19:10:11.002401Z +1863 +pizza + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +7c16ee9a-e2ed-0310-ae25-9f6e1be264fe + +wlan +dir + +udev +dir + +rc.wlan +file + + + + +2009-01-07T08:13:02.000000Z +bed6984515bc8c1e44bd0914116e752d +2003-05-06T02:35:45.000000Z +1390 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +1776 + +pcmcia +dir + +Makefile +file + + + + +2009-01-07T08:13:02.000000Z +efbcbef4f410942b5e22495d20536b49 +2005-01-26T22:01:07.661267Z +1678 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +2640 + +wlan.agent +file + + + + +2009-01-07T08:13:02.000000Z +2048f9a34ef178972ac90cc8a2fbb6ce +2006-01-18T18:58:45.747036Z +1765 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +1643 + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/format b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/format new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/format @@ -0,0 +1 @@ +9 diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/Makefile.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/Makefile.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/rc.wlan.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/rc.wlan.svn-base new file mode 100644 index 0000000..5336d10 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/rc.wlan.svn-base @@ -0,0 +1,13 @@ +K 13 +svn:eol-style +V 6 +native +K 14 +svn:executable +V 1 +* +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/wlan.agent.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/wlan.agent.svn-base new file mode 100644 index 0000000..5336d10 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/prop-base/wlan.agent.svn-base @@ -0,0 +1,13 @@ +K 13 +svn:eol-style +V 6 +native +K 14 +svn:executable +V 1 +* +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..7d46fd2 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/Makefile.svn-base @@ -0,0 +1,67 @@ +# etc/Makefile +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +-include ../config.mk + +DIRS= pcmcia wlan + +all: + set -e; for d in $(DIRS); do $(MAKE) -C $$d all; done + +clean: + set -e; for d in $(DIRS); do $(MAKE) -C $$d clean; done + +install: + set -e; for d in $(DIRS); do $(MAKE) -C $$d install; done + if [ ! -d $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d ]; then \ + mkdir -p $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d; \ + fi; \ + cp rc.wlan $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d/wlan; \ + chmod 755 $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d/wlan ;\ + if [ -d $(TARGET_ROOT_ON_HOST)/etc/hotplug ]; then \ + cp wlan.agent $(TARGET_ROOT_ON_HOST)/etc/hotplug; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/usb/prism2_usb; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_pci; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_plx; \ + fi diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/rc.wlan.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/rc.wlan.svn-base new file mode 100644 index 0000000..70e0c54 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/rc.wlan.svn-base @@ -0,0 +1,96 @@ +#!/bin/sh + +# rc.wlan +# +# chkconfig: 2345 9 91 +# description: Activates/Configures/Disables the devices + +if [ ! -f /etc/wlan/shared ] ; then + echo "/etc/wlan/shared not present" + exit 0 +fi + +. /etc/wlan/shared + +if [ -f /etc/init.d/functions ] ; then + . /etc/init.d/functions +fi + +usage() +{ + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" +} + + +if [ $# -lt 1 ] ; then usage ; exit 1 ; fi +action=$1 + +case "$action" in + +start) + # This will implicitly fire off wland via hotplug. + echo -n "Starting WLAN Devices: " + if ! $MODPROBE p80211; then + echo "Failed to load p80211.o." + exit 1 + fi + + # NOTE: We don't explicitly insmod the card driver here. The + # best thing to do is to specify an alias in /etc/modules.conf. + + for DEVICE in $WLAN_DEVICES; do + $MODPROBE $DEVICE + # if we don't have hotplug.. do things the old-fashioned way. + if [ $HAS_HOTPLUG = 'n' ] ; then + wlan_bring_it_up $DEVICE + fi + done + + # And hotplug will take care of the rest, namely device + # initialization and whatnot. + + if [ -f /etc/init.d/functions ] ; then + echo_success + else + echo + fi + + ;; + +stop) + echo -n "Shutting Down WLAN Devices: " + echo -n "Shutting Down WLAN Devices: " + # Do a reset on each device to make sure none of them are still + # trying to generate interrupts. + for DEVICE in $WLAN_DEVICES; do + wlan_disable $DEVICE + ifconfig $DEVICE down + $MODPROBE -r $DEVICE + done + + # remove p80211, which will implictly kill wland. + $MODPROBE -r p80211 + + if [ -f /etc/init.d/functions ] ; then + echo_success + else + echo + fi + ;; + +status) + status wland + ;; + +restart|reload|force-reload) + $0 stop + $0 start + EXITCODE=$? + ;; + + *) + usage + ;; + +esac + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/wlan.agent.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/wlan.agent.svn-base new file mode 100644 index 0000000..7cf800a --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/.svn/text-base/wlan.agent.svn-base @@ -0,0 +1,78 @@ +#!/bin/bash +# +# p80211/wlan hotplug policy agent. +# +# wlan hotplug params include: +# +# ACTION=%s [register|remove|shutdown|startup|suspend|resume] +# INTERFACE=%s +# NSDNAME=%s +# + +cd /etc/hotplug +. hotplug.functions + +#DEBUG=yes export DEBUG + +if [ "$INTERFACE" = "" ]; then + mesg Bad WLAN invocation: \$INTERFACE is not set + exit 1 +fi + +if [ "$NSDNAME" = "" ]; then + mesg Bad WLAN invocation: \$NSDNAME is not set + exit 1 +fi + +debug_mesg WLAN $ACTION on $INTERFACE \($NSDNAME\) + +if [ "$NSDNAME" = "prism2_cs" ] ; then + mesg "WLAN Hotplug bypassed for pcmcia" + exit 0 +fi + +# load up the shared scripts +if [ ! -f /etc/wlan/shared ] ; then + mesg "/etc/wlan/shared not present, aborting" + exit 1 +fi + +ECHO=mesg +. /etc/wlan/shared + +case $ACTION in +'register'|'resume') + debug_mesg WLAN $INTERFACE registered. + wlan_bring_it_up $INTERFACE $WLAN_WEXT + if [ $? = 0 ] ; then + mesg WLAN $INTERFACE brought up successfully. + if [ -x /etc/wlan/pre-ifup ] ; then + # pre-ifup is presumed to call ifup if it + # wants to...it may choose to skip it. + mesg "WLAN bringing up layer 3+ with /etc/wlan/pre-ifup" + /etc/wlan/pre-ifup $INTERFACE + else + mesg "WLAN bringing up layer 3+ with /sbin/ifup" + /sbin/ifdown $INTERFACE + /sbin/ifup $INTERFACE + fi + else + mesg WLAN Could not bring up $INTERFACE + fi + # eventually invoke net.agent on $INTERFACE w/ REGISTER +;; +'remove'|'suspend') + debug_mesg WLAN $INTERFACE removed. +;; +'startup') + # kick off wland. + debug_mesg WLAN p80211 starting! +;; +'shutdown') + debug_mesg WLAN p80211 shutting down! +;; +*) + debug_mesg WLAN $ACTION event not supported + exit 1 ;; + +esac diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/Makefile b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/Makefile new file mode 100644 index 0000000..7d46fd2 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/Makefile @@ -0,0 +1,67 @@ +# etc/Makefile +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +-include ../config.mk + +DIRS= pcmcia wlan + +all: + set -e; for d in $(DIRS); do $(MAKE) -C $$d all; done + +clean: + set -e; for d in $(DIRS); do $(MAKE) -C $$d clean; done + +install: + set -e; for d in $(DIRS); do $(MAKE) -C $$d install; done + if [ ! -d $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d ]; then \ + mkdir -p $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d; \ + fi; \ + cp rc.wlan $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d/wlan; \ + chmod 755 $(TARGET_ROOT_ON_HOST)$(RC_DIR)/init.d/wlan ;\ + if [ -d $(TARGET_ROOT_ON_HOST)/etc/hotplug ]; then \ + cp wlan.agent $(TARGET_ROOT_ON_HOST)/etc/hotplug; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/usb/prism2_usb; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_pci; \ + rm -f $(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_plx; \ + fi diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/entries b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/entries new file mode 100644 index 0000000..4ab4851 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/entries @@ -0,0 +1,130 @@ +9 + +dir +1870 +svn://svn.shaftnet.org/linux-wlan-ng/trunk/etc/pcmcia +svn://svn.shaftnet.org/linux-wlan-ng + + + +2005-06-29T21:15:21.828713Z +1731 +solomon + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +7c16ee9a-e2ed-0310-ae25-9f6e1be264fe + +wlan-ng +file + + + + +2009-01-07T08:13:02.000000Z +d5a7d6c0b613d87430f1f7dc14c5129f +2004-01-29T18:38:28.000000Z +1559 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +5526 + +wlan-ng.conf +file + + + + +2009-01-07T08:13:02.000000Z +4dad76e208aa4909b6698c76d74177ae +2005-06-29T21:15:21.828713Z +1731 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +5443 + +Makefile +file + + + + +2009-01-07T08:13:02.000000Z +63eb5c59ebcb43fa82b42bf331ec30cc +2005-01-26T22:01:07.661267Z +1678 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +2849 + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/format b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/format new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/format @@ -0,0 +1 @@ +9 diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/Makefile.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/Makefile.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/wlan-ng.conf.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/wlan-ng.conf.svn-base new file mode 100644 index 0000000..5336d10 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/wlan-ng.conf.svn-base @@ -0,0 +1,13 @@ +K 13 +svn:eol-style +V 6 +native +K 14 +svn:executable +V 1 +* +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/wlan-ng.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/wlan-ng.svn-base new file mode 100644 index 0000000..5336d10 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/prop-base/wlan-ng.svn-base @@ -0,0 +1,13 @@ +K 13 +svn:eol-style +V 6 +native +K 14 +svn:executable +V 1 +* +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..e9f612f --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/Makefile.svn-base @@ -0,0 +1,81 @@ +# etc/pcmcia/Makefile +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +-include ../../config.mk + +all: + @echo "Nothing to do" + +clean: + @echo "Nothing to do" + +ifeq ($(PRISM2_PCMCIA), y) + +install: + mkdir -p $(TARGET_PCMCIA_DIR) ; \ + if [ -f $(TARGET_PCMCIA_DIR)/wlan-ng ]; then \ + mv -f $(TARGET_PCMCIA_DIR)/wlan-ng $(TARGET_PCMCIA_DIR)/wlan-ng.O ; \ + fi ; \ + cp wlan-ng $(TARGET_PCMCIA_DIR) ; \ + chmod +x $(TARGET_PCMCIA_DIR)/wlan-ng ; \ + if [ -f $(TARGET_PCMCIA_DIR)/wlan-ng.conf ]; then \ + mv -f $(TARGET_PCMCIA_DIR)/wlan-ng.conf $(TARGET_PCMCIA_DIR)/wlan-ng.conf.O ; \ + fi ; \ + cp wlan-ng.conf $(TARGET_PCMCIA_DIR) ; \ + if [ -f $(TARGET_PCMCIA_DIR)/config ]; then \ + if ! grep -sq 'source.*\.\/\*\.conf$$' $(TARGET_PCMCIA_DIR)/config ; then \ + if ! grep -sq 'source \.\/wlan-ng.conf' $(TARGET_PCMCIA_DIR)/config ; then \ + mv -f $(TARGET_PCMCIA_DIR)/config $(TARGET_PCMCIA_DIR)/config.O ; \ + ( echo "source ./wlan-ng.conf"; cat $(TARGET_PCMCIA_DIR)/config.O) > $(TARGET_PCMCIA_DIR)/config ; \ + fi ; \ + fi ; \ + fi + +else + +install: + @echo "Nothing to do" + +endif + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/wlan-ng.conf.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/wlan-ng.conf.svn-base new file mode 100644 index 0000000..25e5db9 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/wlan-ng.conf.svn-base @@ -0,0 +1,190 @@ + +device "prism2_cs" + class "wlan-ng" module "prism2_cs" + +card "Intersil PRISM2 Reference Design 11Mb/s 802.11b WLAN Card" + version "INTERSIL", "HFA384x/IEEE" + bind "prism2_cs" + +card "Compaq WL100/200 11Mb/s 802.11b WLAN Card" + manfid 0x0138, 0x0002 + bind "prism2_cs" + +card "Compaq iPaq HNW-100 11Mb/s 802.11b WLAN Card" + manfid 0x028a, 0x0002 + bind "prism2_cs" + +card "Samsung SWL2000-N 11Mb/s 802.11b WLAN Card" + manfid 0x0250, 0x0002 + bind "prism2_cs" + +card "Z-Com XI300 11Mb/s 802.11b WLAN Card" + manfid 0xd601, 0x0002 + bind "prism2_cs" + +card "ZoomAir 4100 11Mb/s 802.11b WLAN Card" + version "ZoomAir 11Mbps High", "Rate wireless Networking" + bind "prism2_cs" + +card "Linksys WPC11 11Mbps 802.11b WLAN Card" + version "Instant Wireless ", " Network PC CARD", "Version 01.02" + bind "prism2_cs" + +card "Addtron AWP-100 11Mbps 802.11b WLAN Card" + version "Addtron", "AWP-100 Wireless PCMCIA", "Version 01.02" + bind "prism2_cs" + +card "D-Link DWL-650 11Mbps 802.11b WLAN Card" + version "D", "Link DWL-650 11Mbps WLAN Card", "Version 01.02" + bind "prism2_cs" + +card "SMC 2632W 11Mbps 802.11b WLAN Card" + version "SMC", "SMC2632W", "Version 01.02" + bind "prism2_cs" + +card "BroMax Freeport 11Mbps 802.11b WLAN Card (Prism 2.5)" + version "Intersil", "PRISM 2_5 PCMCIA ADAPTER", "ISL37300P", "Eval-RevA" + bind "prism2_cs" + +card "U.S. Robotics IEEE 802.11b PC-CARD" + version "U.S. Robotics", "IEEE 802.11b PC-CARD", "Version 01.02" + bind "prism2_cs" + +card "Level-One WPC-0100" + version "Digital Data Communications", "WPC-0100" + bind "prism2_cs" + +card "Bromax OEM 11Mbps 802.11b WLAN Card (Prism 2.5)" + manfid 0x0274, 0x1612 + bind "prism2_cs" + +card "Bromax OEM 11Mbps 802.11b WLAN Card (Prism 3)" + manfid 0x0274, 0x1613 + bind "prism2_cs" + +card "corega K.K. Wireless LAN PCC-11" + version "corega K.K.", "Wireless LAN PCC-11" + bind "prism2_cs" + +card "corega K.K. Wireless LAN PCCA-11" + version "corega K.K.", "Wireless LAN PCCA-11" + bind "prism2_cs" + +card "CONTEC FLEXSCAN/FX-DDS110-PCC" + manfid 0xc001, 0x0008 + bind "prism2_cs" + +card "PLANEX GeoWave/GW-NS110" + version "PLANEX", "GeoWave/GW-NS110" + bind "prism2_cs" + +card "Ambicom WL1100 11Mbps 802.11b WLAN Card" + version "OEM", "PRISM2 IEEE 802.11 PC-Card", "Version 01.02" + bind "prism2_cs" + +card "LeArtery SYNCBYAIR 11Mbps 802.11b WLAN Card" + version "LeArtery", "SYNCBYAIR 11Mbps Wireless LAN PC Card", "Version 01.02" + bind "prism2_cs" + +card "Intermec MobileLAN 11Mbps 802.11b WLAN Card" + manfid 0x01ff, 0x0008 + bind "prism2_cs" + +card "NETGEAR MA401 11Mbps 802.11 WLAN Card" + version "NETGEAR MA401 Wireless PC", "Card", "Version 01.00" + bind "prism2_cs" + +card "Intersil PRISM Freedom 11mbps 802.11 WLAN Card" + version "Intersil", "PRISM Freedom PCMCIA Adapter", "ISL37100P", "Eval-RevA" + bind "prism2_cs" + +card "OTC Wireless AirEZY 2411-PCC 11Mbps 802.11 WLAN Card" + version "OTC", "Wireless AirEZY 2411-PCC WLAN Card", "Version 01.02" + bind "prism2_cs" + +card "Dynalink L11HDT 11Mbps 802.11 WLAN Card" + version "802.11", "11Mbps Wireless LAN Card", "v08C1", "" + manfid 0xc250, 0x0002 + bind "prism2_cs" + +card "PROXIM RangeLAN-DS/LAN PC CARD" + version "PROXIM", "RangeLAN-DS/LAN PC CARD" + bind "prism2_cs" + +card "ACTIONTEC PRISM Wireless LAN PC Card" + version "ACTIONTEC", "PRISM Wireless LAN PC Card", "0381", "RevA" + manfid 0x1668, 0x0101 + bind "prism2_cs" + +card "3Com AirConnect 3CRWE737A" + version "3Com", "3CRWE737A AirConnect Wireless LAN PC Card" + bind "prism2_cs" + +card "3Com AirConnect 3CRWE777A" + version "3Com", "3CRWE777A AirConnect Wireless LAN PCI Card" + bind "prism2_cs" + +card "ASUS WL-100 802.11b WLAN PC Card" + version "ASUS", "802_11b_PC_CARD_25" + bind "prism2_cs" + +card "ASUS WL-110 802.11b WLAN CF Card" + version "ASUS", "802_11B_CF_CARD_25" + bind "prism2_cs" + +card "BUFFALO WLI-CF-S11G 802.11b WLAN Card" + version "BUFFALO", "WLI-CF-S11G" + bind "prism2_cs" + +card "Linksys WCF11 11Mbps 802.11b WLAN Card (Prism 2.5)" + version "The Linksys Group, Inc.", "Wireless Network CF Card", "ISL37300P", "RevA" + bind "prism2_cs" + +card "Linksys WCF12 11Mbps 802.11b WLAN Card (Prism 3)" + version "Linksys", "Wireless CompactFlash Card", "", "" + manfid 0x028a, 0x0673 + bind "prism2_cs" + +card "NETGEAR MA401RA 11Mbps 802.11 WLAN Card" + version "NETGEAR MA401RA Wireless PC", "Card", "ISL37300P", "Eval-RevA" + bind "prism2_cs" + +card "D-Link DCF-660W 11Mbps 802.11b WLAN Card" + manfid 0xd601, 0x0005 + bind "prism2_cs" + +card "Microsoft Wireless Notebook Adapter MN-520" + manfid 0x02d2, 0x0001 + bind "prism2_cs" + +card "AnyPoint(TM) Wireless II PC Card" + manfid 0x0089, 0x0002 + bind "prism2_cs" + +card "D-Link DRC-650 802.11b WLAN Card" + version "D", "Link DRC-650 11Mbps WLAN Card", "Version 01.02", "" + bind "prism2_cs" + +card "Adaptec AWN-8030" + manfid 0x9005, 0x0021 + bind "prism2_cs" + +card "D-Link DWL-650 rev P 802.11b WLAN card" + manfid 0x000b, 0x7110 +# version "D-Link", "DWL-650 Wireless PC Card RevP", "ISL37101P-10", "A3" + bind "prism2_cs" + +card "I-Gate 11M PC Card" + version "INTERSIL", "I-GATE 11M PC Card / PC Card plus", "Version 01.02" + bind "prism2_cs" + +card "benQ AWL100 802.11b WLAN Card" + version "BENQ", "AWL100 PCMCIA ADAPTER", "ISL37300P", "Eval-RevA" + manfid 0x000b, 0x7300 + bind "prism2_cs" + +card "Intersil Prism 2 card" + version "INTERSIL" + manfid 0x0156, 0x0002 + bind "prism2_cs" + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/wlan-ng.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/wlan-ng.svn-base new file mode 100644 index 0000000..76b63cd --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/.svn/text-base/wlan-ng.svn-base @@ -0,0 +1,204 @@ +#! /bin/sh +# +# etc/pcmcia/wlan-ng +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + + +# [MSM]: Moved here because wlan/shared may is intended to be used by +# other scripts +wlan_usage () +{ + echo "usage: wlan-ng [action] [device name] [debug]" + echo " actions: start|resume, stop|suspend, check|cksum|restart" + echo " debug : enables shell debug" + exit 1 +} + +if [ "$3" = "debug" ]; then set -x ; fi + +# Note: this 'shared' comes with the WLAN package +if [ ! -f /etc/wlan/shared ] ; then + echo "/etc/wlan/shared not present" + exit 0 +fi + +. /etc/wlan/shared + +# [MSM]: This test supplied by rlazarev, it's commented out due to pcmcia +# stab file movement. This test needs to be 'functionized' and made a +# little more robust. +#if [ ! -f /var/run/stab ] ; then +# echo "Error: Possibly PCMCIA CS is not started"; +# wlan_usage; +# exit 1; +#fi + +# If number of args is less than 2 display usage +if [ $# -lt 2 ]; then wlan_usage ; fi + +# Note: this 'shared' comes with the PCMCIA package +# ACTION=$1 and DEVICE=$2 are assigned in pcmcia/shared +if [ -f /etc/pcmcia/shared ] ; then . /etc/pcmcia/shared ; fi + +# XXXX we can do stuff with $SCHEME still..? +case "$ACTION" in + +'start'|'resume') + #=======ENABLE======================================== + # Do we want to init the card at all? + eval 'WLAN_ENABLE=$ENABLE_'$DEVICE + + if ! is_true $WLAN_ENABLE ; then + exit 0 + fi + + if is_true $WLAN_DOWNLOAD; then + wlan_download $DEVICE + fi + + wlan_enable $DEVICE + + #=======MAC STARTUP========================================= + wlan_supports_scan $DEVICE + if [ $? = 0 ] ; then + wlan_scan $DEVICE + if [ $? = 0 ] ; then + wlan_source_config_for_ssid "$ssid" "$bssid" + + wlan_user_mibs $DEVICE + wlan_wep $DEVICE + + grep 'autojoin' /proc/net/p80211/$DEVICE/wlandev > /dev/null + if [ $? = 0 ]; then + wlan_infra $DEVICE + else + wlan_dot11_join $DEVICE + fi + else + echo "network not found. maybe start IBSS?" + fi + else + wlan_source_config $DEVICE + + wlan_user_mibs $DEVICE + wlan_wep $DEVICE + + if is_true $IS_ADHOC ; then + wlan_adhoc $DEVICE + else + wlan_infra $DEVICE + fi + fi + + # ==========PCMCIA NETDEVICE============================= + # Append the SSID to the pcmcia scheme name + wlan_set_ssid_schemefile "$WLAN_SCHEMESSID" + + # Call the normal network initialization + ./network $1 $2 + if [ $? = 1 ] ; then +# echo "/etc/pcmcia/network $1 $2 failed." + wlan_restore_schemefile + exit 1 + fi + + # Restore scheme file to it's prior contents + wlan_restore_schemefile + ;; + +'stop'|'suspend') + + # ==========PCMCIA NETDEVICE============================= + # Append the SSID to the pcmcia scheme name + wlan_set_ssid_schemefile "$DesiredSSID" + + # Call the normal network initialization + ./network $1 $2 + if [ $? = 1 ] ; then +# echo "/etc/pcmcia/network $1 $2 failed." + wlan_restore_schemefile + exit 1 + fi + + #=======DISABLE IFSTATE============================= + # Take the device down to a quiescent state. + wlan_disable $DEVICE + + # Restore scheme file to it's prior contents + wlan_restore_schemefile + ;; + +'check'|'cksum'|'restart') + # ==========STA ==================================== + # Just passes through for normal network device + # behavior. + if is_true $IS_ADHOC; then + WLAN_SCHEMESSID="$SSID" + else + WLAN_SCHEMESSID="$DesiredSSID" + fi + + # ==========PCMCIA NETDEVICE============================= + # Append the SSID to the pcmcia scheme name + wlan_set_ssid_schemefile "$WLAN_SCHEMESSID" + + # Call the normal network initialization + ./network $1 $2 $3:$WLAN_SCHEMESSID + if [ $? = 1 ] ; then +# echo "/etc/pcmcia/network $1 $2 $3 failed." + wlan_restore_schemefile + exit 1 + fi + + # Restore scheme file to it's prior contents + wlan_restore_schemefile + ;; + +*) + usage + ;; + +esac + +exit 0 diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/Makefile b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/Makefile new file mode 100644 index 0000000..e9f612f --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/Makefile @@ -0,0 +1,81 @@ +# etc/pcmcia/Makefile +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +-include ../../config.mk + +all: + @echo "Nothing to do" + +clean: + @echo "Nothing to do" + +ifeq ($(PRISM2_PCMCIA), y) + +install: + mkdir -p $(TARGET_PCMCIA_DIR) ; \ + if [ -f $(TARGET_PCMCIA_DIR)/wlan-ng ]; then \ + mv -f $(TARGET_PCMCIA_DIR)/wlan-ng $(TARGET_PCMCIA_DIR)/wlan-ng.O ; \ + fi ; \ + cp wlan-ng $(TARGET_PCMCIA_DIR) ; \ + chmod +x $(TARGET_PCMCIA_DIR)/wlan-ng ; \ + if [ -f $(TARGET_PCMCIA_DIR)/wlan-ng.conf ]; then \ + mv -f $(TARGET_PCMCIA_DIR)/wlan-ng.conf $(TARGET_PCMCIA_DIR)/wlan-ng.conf.O ; \ + fi ; \ + cp wlan-ng.conf $(TARGET_PCMCIA_DIR) ; \ + if [ -f $(TARGET_PCMCIA_DIR)/config ]; then \ + if ! grep -sq 'source.*\.\/\*\.conf$$' $(TARGET_PCMCIA_DIR)/config ; then \ + if ! grep -sq 'source \.\/wlan-ng.conf' $(TARGET_PCMCIA_DIR)/config ; then \ + mv -f $(TARGET_PCMCIA_DIR)/config $(TARGET_PCMCIA_DIR)/config.O ; \ + ( echo "source ./wlan-ng.conf"; cat $(TARGET_PCMCIA_DIR)/config.O) > $(TARGET_PCMCIA_DIR)/config ; \ + fi ; \ + fi ; \ + fi + +else + +install: + @echo "Nothing to do" + +endif + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/wlan-ng b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/wlan-ng new file mode 100755 index 0000000..76b63cd --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/wlan-ng @@ -0,0 +1,204 @@ +#! /bin/sh +# +# etc/pcmcia/wlan-ng +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + + +# [MSM]: Moved here because wlan/shared may is intended to be used by +# other scripts +wlan_usage () +{ + echo "usage: wlan-ng [action] [device name] [debug]" + echo " actions: start|resume, stop|suspend, check|cksum|restart" + echo " debug : enables shell debug" + exit 1 +} + +if [ "$3" = "debug" ]; then set -x ; fi + +# Note: this 'shared' comes with the WLAN package +if [ ! -f /etc/wlan/shared ] ; then + echo "/etc/wlan/shared not present" + exit 0 +fi + +. /etc/wlan/shared + +# [MSM]: This test supplied by rlazarev, it's commented out due to pcmcia +# stab file movement. This test needs to be 'functionized' and made a +# little more robust. +#if [ ! -f /var/run/stab ] ; then +# echo "Error: Possibly PCMCIA CS is not started"; +# wlan_usage; +# exit 1; +#fi + +# If number of args is less than 2 display usage +if [ $# -lt 2 ]; then wlan_usage ; fi + +# Note: this 'shared' comes with the PCMCIA package +# ACTION=$1 and DEVICE=$2 are assigned in pcmcia/shared +if [ -f /etc/pcmcia/shared ] ; then . /etc/pcmcia/shared ; fi + +# XXXX we can do stuff with $SCHEME still..? +case "$ACTION" in + +'start'|'resume') + #=======ENABLE======================================== + # Do we want to init the card at all? + eval 'WLAN_ENABLE=$ENABLE_'$DEVICE + + if ! is_true $WLAN_ENABLE ; then + exit 0 + fi + + if is_true $WLAN_DOWNLOAD; then + wlan_download $DEVICE + fi + + wlan_enable $DEVICE + + #=======MAC STARTUP========================================= + wlan_supports_scan $DEVICE + if [ $? = 0 ] ; then + wlan_scan $DEVICE + if [ $? = 0 ] ; then + wlan_source_config_for_ssid "$ssid" "$bssid" + + wlan_user_mibs $DEVICE + wlan_wep $DEVICE + + grep 'autojoin' /proc/net/p80211/$DEVICE/wlandev > /dev/null + if [ $? = 0 ]; then + wlan_infra $DEVICE + else + wlan_dot11_join $DEVICE + fi + else + echo "network not found. maybe start IBSS?" + fi + else + wlan_source_config $DEVICE + + wlan_user_mibs $DEVICE + wlan_wep $DEVICE + + if is_true $IS_ADHOC ; then + wlan_adhoc $DEVICE + else + wlan_infra $DEVICE + fi + fi + + # ==========PCMCIA NETDEVICE============================= + # Append the SSID to the pcmcia scheme name + wlan_set_ssid_schemefile "$WLAN_SCHEMESSID" + + # Call the normal network initialization + ./network $1 $2 + if [ $? = 1 ] ; then +# echo "/etc/pcmcia/network $1 $2 failed." + wlan_restore_schemefile + exit 1 + fi + + # Restore scheme file to it's prior contents + wlan_restore_schemefile + ;; + +'stop'|'suspend') + + # ==========PCMCIA NETDEVICE============================= + # Append the SSID to the pcmcia scheme name + wlan_set_ssid_schemefile "$DesiredSSID" + + # Call the normal network initialization + ./network $1 $2 + if [ $? = 1 ] ; then +# echo "/etc/pcmcia/network $1 $2 failed." + wlan_restore_schemefile + exit 1 + fi + + #=======DISABLE IFSTATE============================= + # Take the device down to a quiescent state. + wlan_disable $DEVICE + + # Restore scheme file to it's prior contents + wlan_restore_schemefile + ;; + +'check'|'cksum'|'restart') + # ==========STA ==================================== + # Just passes through for normal network device + # behavior. + if is_true $IS_ADHOC; then + WLAN_SCHEMESSID="$SSID" + else + WLAN_SCHEMESSID="$DesiredSSID" + fi + + # ==========PCMCIA NETDEVICE============================= + # Append the SSID to the pcmcia scheme name + wlan_set_ssid_schemefile "$WLAN_SCHEMESSID" + + # Call the normal network initialization + ./network $1 $2 $3:$WLAN_SCHEMESSID + if [ $? = 1 ] ; then +# echo "/etc/pcmcia/network $1 $2 $3 failed." + wlan_restore_schemefile + exit 1 + fi + + # Restore scheme file to it's prior contents + wlan_restore_schemefile + ;; + +*) + usage + ;; + +esac + +exit 0 diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/wlan-ng.conf b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/wlan-ng.conf new file mode 100755 index 0000000..25e5db9 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/pcmcia/wlan-ng.conf @@ -0,0 +1,190 @@ + +device "prism2_cs" + class "wlan-ng" module "prism2_cs" + +card "Intersil PRISM2 Reference Design 11Mb/s 802.11b WLAN Card" + version "INTERSIL", "HFA384x/IEEE" + bind "prism2_cs" + +card "Compaq WL100/200 11Mb/s 802.11b WLAN Card" + manfid 0x0138, 0x0002 + bind "prism2_cs" + +card "Compaq iPaq HNW-100 11Mb/s 802.11b WLAN Card" + manfid 0x028a, 0x0002 + bind "prism2_cs" + +card "Samsung SWL2000-N 11Mb/s 802.11b WLAN Card" + manfid 0x0250, 0x0002 + bind "prism2_cs" + +card "Z-Com XI300 11Mb/s 802.11b WLAN Card" + manfid 0xd601, 0x0002 + bind "prism2_cs" + +card "ZoomAir 4100 11Mb/s 802.11b WLAN Card" + version "ZoomAir 11Mbps High", "Rate wireless Networking" + bind "prism2_cs" + +card "Linksys WPC11 11Mbps 802.11b WLAN Card" + version "Instant Wireless ", " Network PC CARD", "Version 01.02" + bind "prism2_cs" + +card "Addtron AWP-100 11Mbps 802.11b WLAN Card" + version "Addtron", "AWP-100 Wireless PCMCIA", "Version 01.02" + bind "prism2_cs" + +card "D-Link DWL-650 11Mbps 802.11b WLAN Card" + version "D", "Link DWL-650 11Mbps WLAN Card", "Version 01.02" + bind "prism2_cs" + +card "SMC 2632W 11Mbps 802.11b WLAN Card" + version "SMC", "SMC2632W", "Version 01.02" + bind "prism2_cs" + +card "BroMax Freeport 11Mbps 802.11b WLAN Card (Prism 2.5)" + version "Intersil", "PRISM 2_5 PCMCIA ADAPTER", "ISL37300P", "Eval-RevA" + bind "prism2_cs" + +card "U.S. Robotics IEEE 802.11b PC-CARD" + version "U.S. Robotics", "IEEE 802.11b PC-CARD", "Version 01.02" + bind "prism2_cs" + +card "Level-One WPC-0100" + version "Digital Data Communications", "WPC-0100" + bind "prism2_cs" + +card "Bromax OEM 11Mbps 802.11b WLAN Card (Prism 2.5)" + manfid 0x0274, 0x1612 + bind "prism2_cs" + +card "Bromax OEM 11Mbps 802.11b WLAN Card (Prism 3)" + manfid 0x0274, 0x1613 + bind "prism2_cs" + +card "corega K.K. Wireless LAN PCC-11" + version "corega K.K.", "Wireless LAN PCC-11" + bind "prism2_cs" + +card "corega K.K. Wireless LAN PCCA-11" + version "corega K.K.", "Wireless LAN PCCA-11" + bind "prism2_cs" + +card "CONTEC FLEXSCAN/FX-DDS110-PCC" + manfid 0xc001, 0x0008 + bind "prism2_cs" + +card "PLANEX GeoWave/GW-NS110" + version "PLANEX", "GeoWave/GW-NS110" + bind "prism2_cs" + +card "Ambicom WL1100 11Mbps 802.11b WLAN Card" + version "OEM", "PRISM2 IEEE 802.11 PC-Card", "Version 01.02" + bind "prism2_cs" + +card "LeArtery SYNCBYAIR 11Mbps 802.11b WLAN Card" + version "LeArtery", "SYNCBYAIR 11Mbps Wireless LAN PC Card", "Version 01.02" + bind "prism2_cs" + +card "Intermec MobileLAN 11Mbps 802.11b WLAN Card" + manfid 0x01ff, 0x0008 + bind "prism2_cs" + +card "NETGEAR MA401 11Mbps 802.11 WLAN Card" + version "NETGEAR MA401 Wireless PC", "Card", "Version 01.00" + bind "prism2_cs" + +card "Intersil PRISM Freedom 11mbps 802.11 WLAN Card" + version "Intersil", "PRISM Freedom PCMCIA Adapter", "ISL37100P", "Eval-RevA" + bind "prism2_cs" + +card "OTC Wireless AirEZY 2411-PCC 11Mbps 802.11 WLAN Card" + version "OTC", "Wireless AirEZY 2411-PCC WLAN Card", "Version 01.02" + bind "prism2_cs" + +card "Dynalink L11HDT 11Mbps 802.11 WLAN Card" + version "802.11", "11Mbps Wireless LAN Card", "v08C1", "" + manfid 0xc250, 0x0002 + bind "prism2_cs" + +card "PROXIM RangeLAN-DS/LAN PC CARD" + version "PROXIM", "RangeLAN-DS/LAN PC CARD" + bind "prism2_cs" + +card "ACTIONTEC PRISM Wireless LAN PC Card" + version "ACTIONTEC", "PRISM Wireless LAN PC Card", "0381", "RevA" + manfid 0x1668, 0x0101 + bind "prism2_cs" + +card "3Com AirConnect 3CRWE737A" + version "3Com", "3CRWE737A AirConnect Wireless LAN PC Card" + bind "prism2_cs" + +card "3Com AirConnect 3CRWE777A" + version "3Com", "3CRWE777A AirConnect Wireless LAN PCI Card" + bind "prism2_cs" + +card "ASUS WL-100 802.11b WLAN PC Card" + version "ASUS", "802_11b_PC_CARD_25" + bind "prism2_cs" + +card "ASUS WL-110 802.11b WLAN CF Card" + version "ASUS", "802_11B_CF_CARD_25" + bind "prism2_cs" + +card "BUFFALO WLI-CF-S11G 802.11b WLAN Card" + version "BUFFALO", "WLI-CF-S11G" + bind "prism2_cs" + +card "Linksys WCF11 11Mbps 802.11b WLAN Card (Prism 2.5)" + version "The Linksys Group, Inc.", "Wireless Network CF Card", "ISL37300P", "RevA" + bind "prism2_cs" + +card "Linksys WCF12 11Mbps 802.11b WLAN Card (Prism 3)" + version "Linksys", "Wireless CompactFlash Card", "", "" + manfid 0x028a, 0x0673 + bind "prism2_cs" + +card "NETGEAR MA401RA 11Mbps 802.11 WLAN Card" + version "NETGEAR MA401RA Wireless PC", "Card", "ISL37300P", "Eval-RevA" + bind "prism2_cs" + +card "D-Link DCF-660W 11Mbps 802.11b WLAN Card" + manfid 0xd601, 0x0005 + bind "prism2_cs" + +card "Microsoft Wireless Notebook Adapter MN-520" + manfid 0x02d2, 0x0001 + bind "prism2_cs" + +card "AnyPoint(TM) Wireless II PC Card" + manfid 0x0089, 0x0002 + bind "prism2_cs" + +card "D-Link DRC-650 802.11b WLAN Card" + version "D", "Link DRC-650 11Mbps WLAN Card", "Version 01.02", "" + bind "prism2_cs" + +card "Adaptec AWN-8030" + manfid 0x9005, 0x0021 + bind "prism2_cs" + +card "D-Link DWL-650 rev P 802.11b WLAN card" + manfid 0x000b, 0x7110 +# version "D-Link", "DWL-650 Wireless PC Card RevP", "ISL37101P-10", "A3" + bind "prism2_cs" + +card "I-Gate 11M PC Card" + version "INTERSIL", "I-GATE 11M PC Card / PC Card plus", "Version 01.02" + bind "prism2_cs" + +card "benQ AWL100 802.11b WLAN Card" + version "BENQ", "AWL100 PCMCIA ADAPTER", "ISL37300P", "Eval-RevA" + manfid 0x000b, 0x7300 + bind "prism2_cs" + +card "Intersil Prism 2 card" + version "INTERSIL" + manfid 0x0156, 0x0002 + bind "prism2_cs" + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/rc.wlan b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/rc.wlan new file mode 100755 index 0000000..70e0c54 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/rc.wlan @@ -0,0 +1,96 @@ +#!/bin/sh + +# rc.wlan +# +# chkconfig: 2345 9 91 +# description: Activates/Configures/Disables the devices + +if [ ! -f /etc/wlan/shared ] ; then + echo "/etc/wlan/shared not present" + exit 0 +fi + +. /etc/wlan/shared + +if [ -f /etc/init.d/functions ] ; then + . /etc/init.d/functions +fi + +usage() +{ + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" +} + + +if [ $# -lt 1 ] ; then usage ; exit 1 ; fi +action=$1 + +case "$action" in + +start) + # This will implicitly fire off wland via hotplug. + echo -n "Starting WLAN Devices: " + if ! $MODPROBE p80211; then + echo "Failed to load p80211.o." + exit 1 + fi + + # NOTE: We don't explicitly insmod the card driver here. The + # best thing to do is to specify an alias in /etc/modules.conf. + + for DEVICE in $WLAN_DEVICES; do + $MODPROBE $DEVICE + # if we don't have hotplug.. do things the old-fashioned way. + if [ $HAS_HOTPLUG = 'n' ] ; then + wlan_bring_it_up $DEVICE + fi + done + + # And hotplug will take care of the rest, namely device + # initialization and whatnot. + + if [ -f /etc/init.d/functions ] ; then + echo_success + else + echo + fi + + ;; + +stop) + echo -n "Shutting Down WLAN Devices: " + echo -n "Shutting Down WLAN Devices: " + # Do a reset on each device to make sure none of them are still + # trying to generate interrupts. + for DEVICE in $WLAN_DEVICES; do + wlan_disable $DEVICE + ifconfig $DEVICE down + $MODPROBE -r $DEVICE + done + + # remove p80211, which will implictly kill wland. + $MODPROBE -r p80211 + + if [ -f /etc/init.d/functions ] ; then + echo_success + else + echo + fi + ;; + +status) + status wland + ;; + +restart|reload|force-reload) + $0 stop + $0 start + EXITCODE=$? + ;; + + *) + usage + ;; + +esac + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/.svn/entries b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/.svn/entries new file mode 100644 index 0000000..2c396df --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/.svn/entries @@ -0,0 +1,31 @@ +9 + +dir +1870 +svn://svn.shaftnet.org/linux-wlan-ng/trunk/etc/udev +svn://svn.shaftnet.org/linux-wlan-ng + + + +2007-06-20T14:53:45.955033Z +1831 +pizza + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +7c16ee9a-e2ed-0310-ae25-9f6e1be264fe + +rules.d +dir + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/.svn/format b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/.svn/format new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/.svn/format @@ -0,0 +1 @@ +9 diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/entries b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/entries new file mode 100644 index 0000000..f486ad7 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/entries @@ -0,0 +1,62 @@ +9 + +dir +1870 +svn://svn.shaftnet.org/linux-wlan-ng/trunk/etc/udev/rules.d +svn://svn.shaftnet.org/linux-wlan-ng + + + +2007-06-20T14:53:45.955033Z +1831 +pizza + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +7c16ee9a-e2ed-0310-ae25-9f6e1be264fe + +40-prism2.rules +file + + + + +2009-01-07T08:13:02.000000Z +fc4858acdc2d5f3878141956d7db575c +2007-06-20T14:53:45.955033Z +1831 +pizza + + + + + + + + + + + + + + + + + + + + + +166 + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/format b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/format new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/format @@ -0,0 +1 @@ +9 diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/text-base/40-prism2.rules.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/text-base/40-prism2.rules.svn-base new file mode 100644 index 0000000..1134445 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/.svn/text-base/40-prism2.rules.svn-base @@ -0,0 +1,2 @@ +#ACTION=="add",BUS=="usb",DRIVER=="prism2_usb" ,RUN+="/etc/wlan/wlan-udev.sh %k" +KERNEL="wlan*",ACTION=="add",DRIVERS=="prism2_usb" ,RUN+="/etc/wlan/wlan-udev.sh %k" diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/40-prism2.rules b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/40-prism2.rules new file mode 100644 index 0000000..1134445 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/udev/rules.d/40-prism2.rules @@ -0,0 +1,2 @@ +#ACTION=="add",BUS=="usb",DRIVER=="prism2_usb" ,RUN+="/etc/wlan/wlan-udev.sh %k" +KERNEL="wlan*",ACTION=="add",DRIVERS=="prism2_usb" ,RUN+="/etc/wlan/wlan-udev.sh %k" diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan.agent b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan.agent new file mode 100755 index 0000000..7cf800a --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan.agent @@ -0,0 +1,78 @@ +#!/bin/bash +# +# p80211/wlan hotplug policy agent. +# +# wlan hotplug params include: +# +# ACTION=%s [register|remove|shutdown|startup|suspend|resume] +# INTERFACE=%s +# NSDNAME=%s +# + +cd /etc/hotplug +. hotplug.functions + +#DEBUG=yes export DEBUG + +if [ "$INTERFACE" = "" ]; then + mesg Bad WLAN invocation: \$INTERFACE is not set + exit 1 +fi + +if [ "$NSDNAME" = "" ]; then + mesg Bad WLAN invocation: \$NSDNAME is not set + exit 1 +fi + +debug_mesg WLAN $ACTION on $INTERFACE \($NSDNAME\) + +if [ "$NSDNAME" = "prism2_cs" ] ; then + mesg "WLAN Hotplug bypassed for pcmcia" + exit 0 +fi + +# load up the shared scripts +if [ ! -f /etc/wlan/shared ] ; then + mesg "/etc/wlan/shared not present, aborting" + exit 1 +fi + +ECHO=mesg +. /etc/wlan/shared + +case $ACTION in +'register'|'resume') + debug_mesg WLAN $INTERFACE registered. + wlan_bring_it_up $INTERFACE $WLAN_WEXT + if [ $? = 0 ] ; then + mesg WLAN $INTERFACE brought up successfully. + if [ -x /etc/wlan/pre-ifup ] ; then + # pre-ifup is presumed to call ifup if it + # wants to...it may choose to skip it. + mesg "WLAN bringing up layer 3+ with /etc/wlan/pre-ifup" + /etc/wlan/pre-ifup $INTERFACE + else + mesg "WLAN bringing up layer 3+ with /sbin/ifup" + /sbin/ifdown $INTERFACE + /sbin/ifup $INTERFACE + fi + else + mesg WLAN Could not bring up $INTERFACE + fi + # eventually invoke net.agent on $INTERFACE w/ REGISTER +;; +'remove'|'suspend') + debug_mesg WLAN $INTERFACE removed. +;; +'startup') + # kick off wland. + debug_mesg WLAN p80211 starting! +;; +'shutdown') + debug_mesg WLAN p80211 shutting down! +;; +*) + debug_mesg WLAN $ACTION event not supported + exit 1 ;; + +esac diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/entries b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/entries new file mode 100644 index 0000000..698bde6 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/entries @@ -0,0 +1,198 @@ +9 + +dir +1870 +svn://svn.shaftnet.org/linux-wlan-ng/trunk/etc/wlan +svn://svn.shaftnet.org/linux-wlan-ng + + + +2008-06-24T19:10:11.002401Z +1863 +pizza + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +7c16ee9a-e2ed-0310-ae25-9f6e1be264fe + +wlancfg-DEFAULT +file + + + + +2009-01-07T08:13:02.000000Z +5b4df9b122c000907fa3e18b7b9ad9ed +2003-03-24T16:18:08.000000Z +1324 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +1826 + +wlan.conf +file + + + + +2009-01-07T08:13:02.000000Z +55c3cd28747fba0d5519d4b1af2f393f +2005-02-01T19:11:19.523569Z +1688 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +3101 + +shared +file + + + + +2009-01-07T08:13:02.000000Z +909d2eada524282172a9e4df7dd42b84 +2008-06-24T19:10:11.002401Z +1863 +pizza +has-props + + + + + + + + + + + + + + + + + + + + +17350 + +wlan-udev.sh +file + + + + +2009-01-07T08:13:02.000000Z +b0eb492fe38ee1ec69e43e885ca1e8b3 +2007-02-27T16:43:02.918194Z +1823 +pizza + + + + + + + + + + + + + + + + + + + + + +947 + +Makefile +file + + + + +2009-01-07T08:13:02.000000Z +9010fd4e8dd3e0e8cb1cbf1c79e38b4f +2006-06-26T15:08:43.057073Z +1777 +solomon +has-props + + + + + + + + + + + + + + + + + + + + +2430 + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/format b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/format new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/format @@ -0,0 +1 @@ +9 diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/Makefile.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/Makefile.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/shared.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/shared.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/shared.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/wlan.conf.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/wlan.conf.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/wlan.conf.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/wlancfg-DEFAULT.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/wlancfg-DEFAULT.svn-base new file mode 100644 index 0000000..7b57b30 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/prop-base/wlancfg-DEFAULT.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:eol-style +V 6 +native +K 12 +svn:keywords +V 23 +Author Date Id Revision +END diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/Makefile.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..8133cf3 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/Makefile.svn-base @@ -0,0 +1,64 @@ +# etc/wlan/Makefile +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +-include ../../config.mk + +all: + echo "Nothing to do" + +clean: + echo "Nothing to do" + +install: + mkdir -p $(TARGET_ROOT_ON_HOST)/etc/wlan + if [ ! -f $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan.conf ] ; then \ + cp wlan.conf $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan.conf ; \ + fi + cp shared wlancfg-DEFAULT wlan-udev.sh \ + $(TARGET_ROOT_ON_HOST)/etc/wlan + chmod 600 $(TARGET_ROOT_ON_HOST)/etc/wlan/wlancfg-* + chmod 600 $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan.conf + chmod 755 $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan-udev.sh + echo FIRMWARE_DIR=$(FIRMWARE_DIR) >> $(TARGET_ROOT_ON_HOST)/etc/wlan/shared + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/shared.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/shared.svn-base new file mode 100644 index 0000000..5d84bb8 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/shared.svn-base @@ -0,0 +1,738 @@ +#!/bin/bash +# etc/wlan/shared +# +# Copyright (C) 2002 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +TMPDIR=/tmp + +if [ ! -n "$ECHO" ]; then + ECHO=echo +fi + +if [ ! -n "$WLAN_UDEV" ] ; then +if [ -x /sbin/modprobe ] ; then + MODPROBE=/sbin/modprobe +else + ${ECHO} "/sbin/modprobe not found." + exit 1 +fi +fi + +if [ -x /sbin/wlanctl-ng ] ; then + WLANCTL=/sbin/wlanctl-ng +else + ${ECHO} "/sbin/wlanctl-ng not found." + exit 1 +fi + +# linux-wlan-ng > 0.2.4 there is no wland +#if [ -x /sbin/wland ] ; then +# WLAND=/sbin/wland +#else +# ${ECHO} "/sbin/wland not found." +# exit 1 +#fi + +if [ -z "$WLAN_UDEV" ] ; then + HAS_HOTPLUG=n + if [ -f /proc/sys/kernel/hotplug -a \ + -f /etc/hotplug/wlan.agent ] ; then + HOTPLUGGER=$(</proc/sys/kernel/hotplug) + if [ -n "$HOTPLUGGER" ] ; then + if [ -x $HOTPLUGGER ] ; then + HAS_HOTPLUG=y + fi + fi + fi +fi + +# Source the wlan configuration +if [ -f /etc/wlan/wlan.conf ] ; then + . /etc/wlan/wlan.conf +else + ${ECHO} "/etc/wlan/wlan.conf not found." + exit 0 +fi + +# Source NSD specific functions +# nsd_fwload +# nsd_mibset +# Debian mod. If there is shared.dpkg-old we get a endless loop +if [ "`ls /etc/wlan/shared.* 2>/dev/null`" ]; then + for i in `find /etc/wlan -name 'shared.*' -a ! -name '*.dpkg*'` ; do + . $i + done +else + ${ECHO} "/etc/wlan/shared.* not found." + exit 0 +fi + +is_true () +{ + # $1 == string containing a t/f indicator. + + [ "$1" = "y" -o "$1" = "Y" -o "$1" = "yes" -o "$1" = "YES" \ + -o "$1" = "t" -o "$1" = "T" -o "$1" = "true" -o "$1" = "TRUE" ] +} + +wlan_nsdname () +{ + # $1 == wlandev + # Writes the given device's name to stdout + grep 'nsd name' /proc/net/p80211/$1/wlandev | sed -e 's/.*: \(.*\)_.*/\1/' +} + +wlan_enable () +{ + # $1 == wlandev + + #=======ENABLE IFSTATE============================= + # Bring the device into its operable state + + # if running under udev module must be loaded to get here so skip checks + if [ ! -n "$WLAN_UDEV" ] ; then + + $MODPROBE $1 + + # First, make sure the driver is loaded.... + if ! ifconfig $1 > /dev/null 2>&1 ; then + ${ECHO} "Error: Device $1 does not seem to be present." + ${ECHO} "Make sure you've inserted the appropriate" + ${ECHO} "modules or that your modules.conf file contains" + ${ECHO} "the appropriate aliase(s)." + return 1 + fi + fi + # Call the nsd script's fwload function, in case the card needs + # a firmware load, or could use an optional one. + + nsdname=`wlan_nsdname $1` + if ! ${nsdname}_fwload $1 ; then + ${ECHO} "Firmware failed to load for device $1" + return 1 + fi + + # Enable the interface + result=`$WLANCTL $1 lnxreq_ifstate ifstate=enable` + if [ $? = 0 ] ; then + eval $result + if [ $resultcode != "success" ]; then + ${ECHO} "Failed to enable the device, resultcode=" \ + $resultcode "." + return 1 + fi + else + ${ECHO} "Failed to enable the device, exitcode=" $? "." + return 1 + fi + + # Set any NSD specific MIBs + ${nsdname}_mibset $1 +} + +wlan_user_mibs () +{ + # $1 == wlandev + + #=======USER MIB SETTINGS============================= + # Set the user specified MIB items. + for i in $USER_MIBS ; do + result=`$WLANCTL $1 dot11req_mibset "mibattribute=$i"` + if [ $? = 0 ] ; then + eval $result + if [ $resultcode != "success" ] ; then + ${ECHO} "Failed to set user MIB $i." + return 1 + fi + else + ${ECHO} "Failed to set user MIB $i." + return 1 + fi + done +} + +wlan_source_config () +{ + # $1 == wlandev + + # XXX what about stray singlequotes. + eval 'GOSSID="$SSID_'$1'"' + wlan_source_config_for_ssid "$GOSSID" +} + +wlan_source_config_for_ssid () +{ + # $1 == ssid[:bssid] + # $2 == bssid (optional) + + DesiredSSID="$1" + DesiredBSSID="$2" + + if [ -n "$2" ] ; then + token_ssid=`echo $1 | sed -ne 's/\(.*\)\(:..:..:..:..:..:..\).*/\1/p'` + token_bssid=`echo $1 | sed -ne 's/\(.*\):\(..:..:..:..:..:..\).*/\2/p'` + if [ -n "$token_ssid" ] ; then + DesiredSSID="$token_ssid" + DesiredBSSID="$token_bssid" + fi + + fi + + if [ -f "/etc/wlan/wlancfg-$DesiredSSID:$DesiredBSSID" ] ; then + . "/etc/wlan/wlancfg-$DesiredSSID:$DesiredBSSID" + elif [ -f "/etc/wlan/wlancfg-$DesiredSSID" ] ; then + . "/etc/wlan/wlancfg-$DesiredSSID" + else + + if [ -n "$1" ] ; then + ${ECHO} "Failed to open network config file /etc/wlan/wlancfg-$1, using default." + fi + + . "/etc/wlan/wlancfg-DEFAULT" + fi +} + +wlan_disable () +{ + # $1 == wlandev + + $WLANCTL $1 lnxreq_ifstate ifstate=disable +} + +wlan_ssid_in_list () +{ + # $1 == wlandev, $2 == ssid, $3 == bssid + + eval 'GOSSID="$SSID_'$1'"' + + # This "eval" hackery is to allow escapes in GOSSID... + cmd="for token in $GOSSID ; do + ssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\)\(:..:..:..:..:..:..\).*/\1/p'\` + bssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\):\(..:..:..:..:..:..\).*/\2/p'\` + + if [ -z \"\$ssid_token\" ] ; then + ssid_token="\$token" + fi + + if [ -n \"\$bssid_token\" ] ; then + if [ \"\$bssid_token\" = \"\$3\" ] ; then + return 0 + fi + elif [ \"\$2\" = \"\$ssid_token\" ] ; then + return 0 + fi + done" + eval "$cmd" + + return 1 +} + +wlan_supports_scan () +{ + # $1 == wlandev + + if is_true "$WLAN_SCAN" ; then + cat /proc/net/p80211/$1/wlandev | grep 'scan' > /dev/null + if [ $? = 0 ] ; then + return 0 + fi + fi + return 1 +} + +wlan_scan () +{ + # $1 == wlandev + + # find our allowed SSID list. + + # XXX what about stray singlequotes. + eval 'GOSSID="$SSID_'$1'"' + + # kick off a quick scan with the broadcast SSID. + wlan_scan_one $1 '' '' n + if [ $? = 0 -a \ + "$GOSSID" = "" ] ; then + # if successful and our ssid list is null, return. + sleep 1 + return 0 + fi + + # otherwise we walk through the list, and scan for eacn in turn. + # this "eval" hackery is to allow escapes in GOSSID + cmd="for token in $GOSSID ; do + ssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\)\(:..:..:..:..:..:..\).*/\1/p'\` + bssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\):\(..:..:..:..:..:..\).*/\2/p'\` + + if [ -z \"\$ssid_token\" ] ; then + ssid_token=\"\$token\" + fi + + wlan_scan_one \$1 \"\$ssid_token\" \"\$bssid_token\" + if [ \$? = 0 ] ; then + sleep 1 + return 0 + fi + done" + eval "$cmd" + + # We got to the end of the list. Maybe try "any" + if is_true "$WLAN_ANY" ; then + wlan_scan_one $1 + sleep 1 + return $? + fi + + sleep 1 + return 1 +} + + +wlan_scan_one () +{ + # $1 == wlandev, [ $2 == ssid, $3 == bssid, $4 == append ] + + if [ -z "$4" ] ; then + append=true + else + append=false + fi + + numbss=0 + + result=`$WLANCTL $1 dot11req_scan bsstype=any bssid=ff:ff:ff:ff:ff:ff \ + scantype=active probedelay=0 channellist=$ChannelList ssid="$2" \ + minchanneltime=$ChannelMinTime maxchanneltime=$ChannelMaxTime append=$append` + eval $result + if [ $resultcode != 'success' ] ; then + ${ECHO} "Scan failed ($resultcode) " + return 1 + fi + + ## XXX if numbss == 0, repeat with $2 $3 $4? + + i=0 + bssfound="" + + # walk through the results and do first-cut matching. + while [ $i -lt $numbss ] ; do + result=`$WLANCTL $1 dot11req_scan_results bssindex=$i` + eval $result + + if [ -n "$3" ] ; then + if [ "$3" = "$bssid" ] ; then + bssfound="$bssfound $i" + fi + elif [ -z "$2" ] ; then + # if our ssid is "", then we pick the first entry. + bssfound="$bssfound $i" + elif [ "$2" = "$ssid" ] ; then + bssfound="$bssfound $i" + fi + i=`expr $i + 1` + done + + if [ -z "$bssfound" ]; then # No BSSs found, bail. + return 1 + else + # Now find the closest + bigsignal=0 + for i in $bssfound ; do + result=`$WLANCTL $1 dot11req_scan_results bssindex=$i` + eval $result + if [ $bigsignal -lt $signal ]; then + bigsignal=$signal + bigbssindex=$i + fi + done + result=`$WLANCTL $1 dot11req_scan_results bssindex=$bigbssindex` + eval $result + return 0 + fi +} + +wlan_wep () +{ + # $1 == wlandev + + #=======WEP=========================================== + # Setup privacy + if [ ${dot11PrivacyInvoked:-"false"} = "false" ] ; then + return 0; + fi + + result=`$WLANCTL $1 dot11req_mibget mibattribute=dot11PrivacyOptionImplemented` + if [ $? = 0 ] ; then + eval $result + eval $mibattribute + else + ${ECHO} "dot11PrivacyOptionImplemented mibget failed." + return 1 + fi + + if [ $dot11PrivacyOptionImplemented = "false" ] ; then + ${ECHO} "Cannot enable privacy, dot11PrivacyOptionImplemented=false." + return 1 + fi + + # Do we want host-based WEP? + result=`$WLANCTL $1 lnxreq_hostwep \ + decrypt="${lnxreq_hostWEPDecrypt:-false}" \ + encrypt="${lnxreq_hostWEPEncrypt:-false}"` + + # set up the rest of the parametsrs. + if [ $dot11PrivacyOptionImplemented = "true" -a \ + $dot11PrivacyInvoked = "true" ] ; then + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKeyID=$dot11WEPDefaultKeyID ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11ExcludeUnencrypted=$dot11ExcludeUnencrypted ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11PrivacyInvoked=$dot11PrivacyInvoked` + if [ "${PRIV_GENSTR:-empty}" != "empty" ] ; then + if [ ${PRIV_KEY128:-"false"} = "false" ]; then + keys=`$PRIV_GENERATOR "$PRIV_GENSTR" 5` + else + keys=`$PRIV_GENERATOR "$PRIV_GENSTR" 13` + fi + knum=0 + for i in $keys ; do + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey$knum=$i` + knum=`expr $knum + 1` + done + else + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey0=$dot11WEPDefaultKey0 ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey1=$dot11WEPDefaultKey1 ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey2=$dot11WEPDefaultKey2 ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey3=$dot11WEPDefaultKey3 ` + fi + else + # disable wep explicitly. + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11PrivacyInvoked=$dot11PrivacyInvoked ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11ExcludeUnencrypted=false ` + fi +} + +wlan_adhoc () +{ + # $1 == wlandev + + #=======IBSS STARTUP================================== + startcmd="$WLANCTL $1 dot11req_start " + startcmd="$startcmd ssid=$DesiredSSID" + startcmd="$startcmd bsstype=independent" + startcmd="$startcmd beaconperiod=$BCNINT" + startcmd="$startcmd dtimperiod=3" + startcmd="$startcmd cfpollable=false" + startcmd="$startcmd cfpollreq=false" + startcmd="$startcmd cfpperiod=3" + startcmd="$startcmd cfpmaxduration=100" + startcmd="$startcmd probedelay=100" + startcmd="$startcmd dschannel=$CHANNEL" + j=1 + for i in $BASICRATES ; do + startcmd="$startcmd basicrate$j=$i" + j=`expr $j + 1` + done + + j=1 + for i in $OPRATES ; do + startcmd="$startcmd operationalrate$j=$i" + j=`expr $j + 1` + done + + results=`$startcmd` # Here's where it runs + if [ $? = 0 ]; then + eval $results + if [ $resultcode != "success" ] ; then + ${ECHO} "IBSS not started, resultcode=$resultcode" + exit 1 + else + ${ECHO} "IBSS mode started." + fi + else + ${ECHO} FAILED: $startcmd + return 1 + fi + WLAN_SCHEMESSID="$DesiredSSID" +} + +wlan_infra () +{ + # $1 == wlandev + + #==== INFRASTRUCURE STARTUP=========================== + # XXX TODO: Grok DesiredBSSID + + sleep 5 + results=`$WLANCTL $1 lnxreq_autojoin \ + "ssid=$DesiredSSID" \ + authtype=${AuthType:="opensystem"} | sed 's/\([^=]*\)=\(.*\)/\1="\2"/'` + eval $results + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} 'error: Autojoin indicated failure!' + return 1; + fi + + WLAN_SCHEMESSID="$DesiredSSID" +} + +wlan_dot11_join () +{ + # $1 == wlandev + + joincmd="$WLANCTL $1 dot11req_join bssid=$DesiredBSSID" + joincmd="$joincmd joinfailuretimeout=1" + + j=1 + for i in $OPRATES ; do + joincmd="$joincmd operationalrate$j=$i" + j=`expr $j + 1` + done + + results=`$joincmd` + + eval $results + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} "$1: JOIN Failure" + ${ECHO} "joincmd=$joincmd" + ${ECHO} "results=$results" + return 1; + fi +} + +wlan_dot11_auth_assoc () +{ + # $1 == wlandev + if [ $bsstype = "infrastructure" ] ; then + results=`$WLANCTL $1 dot11req_authenticate \ + peerstaaddress=$DesiredBSSID \ + authenticationtype=$AuthType \ + authenticationfailuretimeout=2000` + eval $results + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} "error: dot11req_authenticate failed, "\ + "resultcode=$resultcode" + return 1; + fi + results=`$WLANCTL $1 dot11req_associate \ + listeninterval=1000 \ + associatefailuretimeout=2000 ` + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} 'error: dot11req_associate failed!' + return 1; + fi + fi +} + +wlan_set_ssid_schemefile () +{ + # $1 == SSID + + # Find the scheme file + if [ -r /var/lib/misc/pcmcia-scheme ] ; then + # Debian + WLAN_SCHEMEFILE="/var/lib/misc/pcmcia-scheme" + elif [ -d /var/state/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/state/pcmcia/scheme" + elif [ -d /var/lib/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/lib/pcmcia/scheme" + else + WLAN_SCHEMEFILE="/var/run/pcmcia-scheme" + fi + + # Collect the current scheme name and save the file + if [ -r $WLAN_SCHEMEFILE ] ; then + WLAN_SCHEME=`cat $WLAN_SCHEMEFILE` + cp $WLAN_SCHEMEFILE /var/run/wlan_scheme_`date +"%T"`.tmp + else + touch /var/run/wlan_scheme_`date +"%T"`.tmp + + fi + + # Set up the <scheme:SSID> string + if [ ! "$WLAN_SCHEME" ] ; then + WLAN_SCHEME="default" + fi + WLAN_SCHEME="$WLAN_SCHEME:$1" + + # Write to schemefile + echo $WLAN_SCHEME > $WLAN_SCHEMEFILE +} + +wlan_restore_schemefile () +{ + # Find the scheme file + if [ -r /var/lib/misc/pcmcia-scheme ] ; then + # Debian + WLAN_SCHEMEFILE="/var/lib/misc/pcmcia-scheme" + elif [ -d /var/state/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/state/pcmcia/scheme" + elif [ -d /var/lib/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/lib/pcmcia/scheme" + else + WLAN_SCHEMEFILE="/var/run/pcmcia-scheme" + fi + + TMPFILE=`ls /var/run/wlan_scheme*.tmp | tail -n 1` + + if [ -r $TMPFILE ] ; then + cat $TMPFILE > $WLAN_SCHEMEFILE + rm -f $TMPFILE + else + ${ECHO} "wlan_restore_schemefile: No wlan_scheme\*.tmp file found." + fi +} + +wlan_bring_it_up () +{ + # $1 == wlandev + # $2 == non-null if wext enabled. + + #=======ENABLE======================================== + # Do we want to init the card at all? + eval 'WLAN_ENABLE=$ENABLE_'$1 + + if ! is_true $WLAN_ENABLE ; then + return 1 + fi + + if wlan_enable $1 ; then + if [ -z "$2" ] ; then + wlan_scan_and_join $1 + return $? + else + ${ECHO} "Bypassing configuration due to wireless extensions" + fi + else + return 1; + fi + + return 1 +} + +wlan_scan_and_join () +{ + #=======MAC STARTUP========================================= + wlan_supports_scan $1 + if [ $? = 0 ] ; then + wlan_scan $1 + if [ $? = 0 ] ; then + wlan_source_config_for_ssid "$ssid" "$bssid" + + wlan_user_mibs $1 + wlan_wep $1 + + wlan_join $1 + else + if is_true $IS_ADHOC ; then + # start an IBSS; we didn't find one. + wlan_adhoc $1 + else + return 1 + fi + fi + else + wlan_source_config $1 + + wlan_user_mibs $1 + wlan_wep $1 + + if is_true $IS_ADHOC ; then + wlan_adhoc $1 + else + wlan_infra $1 + fi + fi + + return $? +} + +wlan_join () +{ + # $1 == wlandev + grep 'autojoin' /proc/net/p80211/$1/wlandev > /dev/null + if [ $? = 0 ]; then + wlan_infra $1 + else + wlan_dot11_join $1 + wlan_dot11_auth_assoc $1 + fi +} + +tmpname () +{ + # $1 == prefix + local i=0 + local tname=$TMPDIR/${1}_$$ + if [ -f ${tname}.tmp ] ; then + for i in 0 1 2 3 4 5 6 7 8 9 ; do + if [ ! -f ${tname}_${i}.tmp ] ; then + echo ${tname}_${i}.tmp + return 0 + fi + done + else + echo ${tname}.tmp + fi + return 0 +} + +source_procfile () +{ + # $1 == procfile to source + local fname=`tmpname wlan_procfile` + cat "$1" > $fname + . $fname + rm -f $fname +} + +# This is set by the Configure script as part of 'make install' +#FIRMWARE_DIR="/usr/share/linux-wlan" diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlan-udev.sh.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlan-udev.sh.svn-base new file mode 100644 index 0000000..879dd14 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlan-udev.sh.svn-base @@ -0,0 +1,46 @@ +#! /bin/bash + + +# script to start prism2 wlan for fedora FC5 udev +#udev rule +#ACTION=="add",BUS=="usb",DRIVER=="prism2_usb",RUN+="/etc/wlan/wlan-udev.sh %k" + +# 01-01-2007 (rsk) add check for wlan_wext_write +# 31-01-2007 (rsk) get the check right this time :) + +WEXT_PARAM=/sys/module/p80211/parameters/wlan_wext_write + +DEVICE=$1 +WLAN_UDEV=1 + +. /etc/wlan/shared + +if [ -f $WEXT_PARAM ]; then + WLAN_WEXT=`cat $WEXT_PARAM` +fi + +if [ $WLAN_WEXT = 1 ]; then + wlan_bring_it_up $DEVICE TRUE + # set encrypt on card not host + result=`$WLANCTL $DEVICE lnxreq_hostwep decrypt="false" encrypt="false"` + if [ $? != 0 ]; then + echo "Cannot enable wep $result" + exit 1 + fi +else + echo calling wlan_bring_it_up + wlan_bring_it_up $DEVICE + + if [ $? = 0 ] ; then + echo $DEVICE start OK + #allow time during boot to let other things start + #sleep 5 + /sbin/ifup $DEVICE + else + echo $DEVICE failed to come up! >&2 + exit 1 + fi +fi +exit 0 + + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlan.conf.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlan.conf.svn-base new file mode 100644 index 0000000..fc8dcfa --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlan.conf.svn-base @@ -0,0 +1,84 @@ +#! /bin/sh +# Wireless LAN adapter configuration +# +# etc/wlan/wlan.conf +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- +# This file is sourced by all configuration scripts. +# +# The WLAN_DEVICES variable identifies the device names of each WLAN device. +# If you have more than one, make sure each one is identified in a whitespace +# separated list that's assigned to WLAN_DEVICES. + +WLAN_DEVICES="wlan0" + +# Below is the list of channels to scan, when we scan. +ChannelList="01:02:03:04:05:06:07:08:09:0a:0b:00:00:00" +# Below is the min and max time we linger on a channel during a scan. +ChannelMinTime=200 +ChannelMaxTime=250 +# And here we have the master scan toggle. +WLAN_SCAN=n + +# if you want temporary files to go elsewhere, change this. +TMPDIR=/tmp + +########## +# Note: To bind to a specific network, change the SSID to something different +# and create the file /etc/wlan/wlancfg-<SSID> with your network- +# specific settings. If this file is not present, the settings in +# /etc/wlancfg/wlancfg-DEFAULT are used. +# +# for example: +# SSID_wlan0="linux-wlan" +# This expects a file called "/etc/wlan/wlancfg-linux-wlan" to be present. +# +# Use a SSID of "" to associate with any network in range. +######### + +SSID_wlan0="" +ENABLE_wlan0=y +#SSID_wlan1="" +#ENABLE_wlan1=n +#SSID_wlan2="" +#ENABLE_wlan2=n diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlancfg-DEFAULT.svn-base b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlancfg-DEFAULT.svn-base new file mode 100644 index 0000000..d916034 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/.svn/text-base/wlancfg-DEFAULT.svn-base @@ -0,0 +1,43 @@ +#=======USER MIB SETTINGS============================= +# You can add the assignments for various MIB items +# of your choosing to this variable, separated by +# whitespace. The wlan-ng script will then set each one. +# Just uncomment the variable and set the assignments +# the way you want them. + +#USER_MIBS="p2CnfRoamingMode=1 p2CnfShortPreamble=mixed" + +#=======WEP=========================================== +# [Dis/En]able WEP. Settings only matter if PrivacyInvoked is true +lnxreq_hostWEPEncrypt=false # true|false +lnxreq_hostWEPDecrypt=false # true|false +dot11PrivacyInvoked=false # true|false +dot11WEPDefaultKeyID=0 # 0|1|2|3 +dot11ExcludeUnencrypted=true # true|false, in AP this means WEP is required. + +# If PRIV_GENSTR is not empty, use PRIV_GENTSTR to generate +# keys (just a convenience) +# add-ons/ in the tarball contains other key generators. +PRIV_GENERATOR=/sbin/nwepgen # nwepgen, Neesus compatible +PRIV_KEY128=false # keylength to generate +PRIV_GENSTR="" + +# or set them explicitly. Set genstr or keys, not both. +dot11WEPDefaultKey0= # format: xx:xx:xx:xx:xx or +dot11WEPDefaultKey1= # xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx +dot11WEPDefaultKey2= # e.g. 01:20:03:40:05 or +dot11WEPDefaultKey3= # 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d +#=======SELECT STATION MODE=================== +IS_ADHOC=n # y|n, y - adhoc, n - infrastructure + +#======= INFRASTRUCTURE STATION =================== +# What kind of authentication? +AuthType="opensystem" # opensystem | sharedkey (requires WEP) + +#======= ADHOC STATION ============================ +BCNINT=100 # Beacon interval (in Kus) +CHANNEL=6 # DS channel for BSS (1-14, depends + # on regulatory domain) +BASICRATES="2 4" # Rates for mgmt&ctl frames (in 500Kb/s) +OPRATES="2 4 11 22" # Supported rates in BSS (in 500Kb/s) + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/Makefile b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/Makefile new file mode 100644 index 0000000..8133cf3 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/Makefile @@ -0,0 +1,64 @@ +# etc/wlan/Makefile +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +-include ../../config.mk + +all: + echo "Nothing to do" + +clean: + echo "Nothing to do" + +install: + mkdir -p $(TARGET_ROOT_ON_HOST)/etc/wlan + if [ ! -f $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan.conf ] ; then \ + cp wlan.conf $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan.conf ; \ + fi + cp shared wlancfg-DEFAULT wlan-udev.sh \ + $(TARGET_ROOT_ON_HOST)/etc/wlan + chmod 600 $(TARGET_ROOT_ON_HOST)/etc/wlan/wlancfg-* + chmod 600 $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan.conf + chmod 755 $(TARGET_ROOT_ON_HOST)/etc/wlan/wlan-udev.sh + echo FIRMWARE_DIR=$(FIRMWARE_DIR) >> $(TARGET_ROOT_ON_HOST)/etc/wlan/shared + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/shared b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/shared new file mode 100644 index 0000000..5d84bb8 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/shared @@ -0,0 +1,738 @@ +#!/bin/bash +# etc/wlan/shared +# +# Copyright (C) 2002 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- + +TMPDIR=/tmp + +if [ ! -n "$ECHO" ]; then + ECHO=echo +fi + +if [ ! -n "$WLAN_UDEV" ] ; then +if [ -x /sbin/modprobe ] ; then + MODPROBE=/sbin/modprobe +else + ${ECHO} "/sbin/modprobe not found." + exit 1 +fi +fi + +if [ -x /sbin/wlanctl-ng ] ; then + WLANCTL=/sbin/wlanctl-ng +else + ${ECHO} "/sbin/wlanctl-ng not found." + exit 1 +fi + +# linux-wlan-ng > 0.2.4 there is no wland +#if [ -x /sbin/wland ] ; then +# WLAND=/sbin/wland +#else +# ${ECHO} "/sbin/wland not found." +# exit 1 +#fi + +if [ -z "$WLAN_UDEV" ] ; then + HAS_HOTPLUG=n + if [ -f /proc/sys/kernel/hotplug -a \ + -f /etc/hotplug/wlan.agent ] ; then + HOTPLUGGER=$(</proc/sys/kernel/hotplug) + if [ -n "$HOTPLUGGER" ] ; then + if [ -x $HOTPLUGGER ] ; then + HAS_HOTPLUG=y + fi + fi + fi +fi + +# Source the wlan configuration +if [ -f /etc/wlan/wlan.conf ] ; then + . /etc/wlan/wlan.conf +else + ${ECHO} "/etc/wlan/wlan.conf not found." + exit 0 +fi + +# Source NSD specific functions +# nsd_fwload +# nsd_mibset +# Debian mod. If there is shared.dpkg-old we get a endless loop +if [ "`ls /etc/wlan/shared.* 2>/dev/null`" ]; then + for i in `find /etc/wlan -name 'shared.*' -a ! -name '*.dpkg*'` ; do + . $i + done +else + ${ECHO} "/etc/wlan/shared.* not found." + exit 0 +fi + +is_true () +{ + # $1 == string containing a t/f indicator. + + [ "$1" = "y" -o "$1" = "Y" -o "$1" = "yes" -o "$1" = "YES" \ + -o "$1" = "t" -o "$1" = "T" -o "$1" = "true" -o "$1" = "TRUE" ] +} + +wlan_nsdname () +{ + # $1 == wlandev + # Writes the given device's name to stdout + grep 'nsd name' /proc/net/p80211/$1/wlandev | sed -e 's/.*: \(.*\)_.*/\1/' +} + +wlan_enable () +{ + # $1 == wlandev + + #=======ENABLE IFSTATE============================= + # Bring the device into its operable state + + # if running under udev module must be loaded to get here so skip checks + if [ ! -n "$WLAN_UDEV" ] ; then + + $MODPROBE $1 + + # First, make sure the driver is loaded.... + if ! ifconfig $1 > /dev/null 2>&1 ; then + ${ECHO} "Error: Device $1 does not seem to be present." + ${ECHO} "Make sure you've inserted the appropriate" + ${ECHO} "modules or that your modules.conf file contains" + ${ECHO} "the appropriate aliase(s)." + return 1 + fi + fi + # Call the nsd script's fwload function, in case the card needs + # a firmware load, or could use an optional one. + + nsdname=`wlan_nsdname $1` + if ! ${nsdname}_fwload $1 ; then + ${ECHO} "Firmware failed to load for device $1" + return 1 + fi + + # Enable the interface + result=`$WLANCTL $1 lnxreq_ifstate ifstate=enable` + if [ $? = 0 ] ; then + eval $result + if [ $resultcode != "success" ]; then + ${ECHO} "Failed to enable the device, resultcode=" \ + $resultcode "." + return 1 + fi + else + ${ECHO} "Failed to enable the device, exitcode=" $? "." + return 1 + fi + + # Set any NSD specific MIBs + ${nsdname}_mibset $1 +} + +wlan_user_mibs () +{ + # $1 == wlandev + + #=======USER MIB SETTINGS============================= + # Set the user specified MIB items. + for i in $USER_MIBS ; do + result=`$WLANCTL $1 dot11req_mibset "mibattribute=$i"` + if [ $? = 0 ] ; then + eval $result + if [ $resultcode != "success" ] ; then + ${ECHO} "Failed to set user MIB $i." + return 1 + fi + else + ${ECHO} "Failed to set user MIB $i." + return 1 + fi + done +} + +wlan_source_config () +{ + # $1 == wlandev + + # XXX what about stray singlequotes. + eval 'GOSSID="$SSID_'$1'"' + wlan_source_config_for_ssid "$GOSSID" +} + +wlan_source_config_for_ssid () +{ + # $1 == ssid[:bssid] + # $2 == bssid (optional) + + DesiredSSID="$1" + DesiredBSSID="$2" + + if [ -n "$2" ] ; then + token_ssid=`echo $1 | sed -ne 's/\(.*\)\(:..:..:..:..:..:..\).*/\1/p'` + token_bssid=`echo $1 | sed -ne 's/\(.*\):\(..:..:..:..:..:..\).*/\2/p'` + if [ -n "$token_ssid" ] ; then + DesiredSSID="$token_ssid" + DesiredBSSID="$token_bssid" + fi + + fi + + if [ -f "/etc/wlan/wlancfg-$DesiredSSID:$DesiredBSSID" ] ; then + . "/etc/wlan/wlancfg-$DesiredSSID:$DesiredBSSID" + elif [ -f "/etc/wlan/wlancfg-$DesiredSSID" ] ; then + . "/etc/wlan/wlancfg-$DesiredSSID" + else + + if [ -n "$1" ] ; then + ${ECHO} "Failed to open network config file /etc/wlan/wlancfg-$1, using default." + fi + + . "/etc/wlan/wlancfg-DEFAULT" + fi +} + +wlan_disable () +{ + # $1 == wlandev + + $WLANCTL $1 lnxreq_ifstate ifstate=disable +} + +wlan_ssid_in_list () +{ + # $1 == wlandev, $2 == ssid, $3 == bssid + + eval 'GOSSID="$SSID_'$1'"' + + # This "eval" hackery is to allow escapes in GOSSID... + cmd="for token in $GOSSID ; do + ssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\)\(:..:..:..:..:..:..\).*/\1/p'\` + bssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\):\(..:..:..:..:..:..\).*/\2/p'\` + + if [ -z \"\$ssid_token\" ] ; then + ssid_token="\$token" + fi + + if [ -n \"\$bssid_token\" ] ; then + if [ \"\$bssid_token\" = \"\$3\" ] ; then + return 0 + fi + elif [ \"\$2\" = \"\$ssid_token\" ] ; then + return 0 + fi + done" + eval "$cmd" + + return 1 +} + +wlan_supports_scan () +{ + # $1 == wlandev + + if is_true "$WLAN_SCAN" ; then + cat /proc/net/p80211/$1/wlandev | grep 'scan' > /dev/null + if [ $? = 0 ] ; then + return 0 + fi + fi + return 1 +} + +wlan_scan () +{ + # $1 == wlandev + + # find our allowed SSID list. + + # XXX what about stray singlequotes. + eval 'GOSSID="$SSID_'$1'"' + + # kick off a quick scan with the broadcast SSID. + wlan_scan_one $1 '' '' n + if [ $? = 0 -a \ + "$GOSSID" = "" ] ; then + # if successful and our ssid list is null, return. + sleep 1 + return 0 + fi + + # otherwise we walk through the list, and scan for eacn in turn. + # this "eval" hackery is to allow escapes in GOSSID + cmd="for token in $GOSSID ; do + ssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\)\(:..:..:..:..:..:..\).*/\1/p'\` + bssid_token=\`echo \"\$token\" | sed -ne 's/\(.*\):\(..:..:..:..:..:..\).*/\2/p'\` + + if [ -z \"\$ssid_token\" ] ; then + ssid_token=\"\$token\" + fi + + wlan_scan_one \$1 \"\$ssid_token\" \"\$bssid_token\" + if [ \$? = 0 ] ; then + sleep 1 + return 0 + fi + done" + eval "$cmd" + + # We got to the end of the list. Maybe try "any" + if is_true "$WLAN_ANY" ; then + wlan_scan_one $1 + sleep 1 + return $? + fi + + sleep 1 + return 1 +} + + +wlan_scan_one () +{ + # $1 == wlandev, [ $2 == ssid, $3 == bssid, $4 == append ] + + if [ -z "$4" ] ; then + append=true + else + append=false + fi + + numbss=0 + + result=`$WLANCTL $1 dot11req_scan bsstype=any bssid=ff:ff:ff:ff:ff:ff \ + scantype=active probedelay=0 channellist=$ChannelList ssid="$2" \ + minchanneltime=$ChannelMinTime maxchanneltime=$ChannelMaxTime append=$append` + eval $result + if [ $resultcode != 'success' ] ; then + ${ECHO} "Scan failed ($resultcode) " + return 1 + fi + + ## XXX if numbss == 0, repeat with $2 $3 $4? + + i=0 + bssfound="" + + # walk through the results and do first-cut matching. + while [ $i -lt $numbss ] ; do + result=`$WLANCTL $1 dot11req_scan_results bssindex=$i` + eval $result + + if [ -n "$3" ] ; then + if [ "$3" = "$bssid" ] ; then + bssfound="$bssfound $i" + fi + elif [ -z "$2" ] ; then + # if our ssid is "", then we pick the first entry. + bssfound="$bssfound $i" + elif [ "$2" = "$ssid" ] ; then + bssfound="$bssfound $i" + fi + i=`expr $i + 1` + done + + if [ -z "$bssfound" ]; then # No BSSs found, bail. + return 1 + else + # Now find the closest + bigsignal=0 + for i in $bssfound ; do + result=`$WLANCTL $1 dot11req_scan_results bssindex=$i` + eval $result + if [ $bigsignal -lt $signal ]; then + bigsignal=$signal + bigbssindex=$i + fi + done + result=`$WLANCTL $1 dot11req_scan_results bssindex=$bigbssindex` + eval $result + return 0 + fi +} + +wlan_wep () +{ + # $1 == wlandev + + #=======WEP=========================================== + # Setup privacy + if [ ${dot11PrivacyInvoked:-"false"} = "false" ] ; then + return 0; + fi + + result=`$WLANCTL $1 dot11req_mibget mibattribute=dot11PrivacyOptionImplemented` + if [ $? = 0 ] ; then + eval $result + eval $mibattribute + else + ${ECHO} "dot11PrivacyOptionImplemented mibget failed." + return 1 + fi + + if [ $dot11PrivacyOptionImplemented = "false" ] ; then + ${ECHO} "Cannot enable privacy, dot11PrivacyOptionImplemented=false." + return 1 + fi + + # Do we want host-based WEP? + result=`$WLANCTL $1 lnxreq_hostwep \ + decrypt="${lnxreq_hostWEPDecrypt:-false}" \ + encrypt="${lnxreq_hostWEPEncrypt:-false}"` + + # set up the rest of the parametsrs. + if [ $dot11PrivacyOptionImplemented = "true" -a \ + $dot11PrivacyInvoked = "true" ] ; then + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKeyID=$dot11WEPDefaultKeyID ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11ExcludeUnencrypted=$dot11ExcludeUnencrypted ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11PrivacyInvoked=$dot11PrivacyInvoked` + if [ "${PRIV_GENSTR:-empty}" != "empty" ] ; then + if [ ${PRIV_KEY128:-"false"} = "false" ]; then + keys=`$PRIV_GENERATOR "$PRIV_GENSTR" 5` + else + keys=`$PRIV_GENERATOR "$PRIV_GENSTR" 13` + fi + knum=0 + for i in $keys ; do + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey$knum=$i` + knum=`expr $knum + 1` + done + else + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey0=$dot11WEPDefaultKey0 ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey1=$dot11WEPDefaultKey1 ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey2=$dot11WEPDefaultKey2 ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11WEPDefaultKey3=$dot11WEPDefaultKey3 ` + fi + else + # disable wep explicitly. + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11PrivacyInvoked=$dot11PrivacyInvoked ` + result=`$WLANCTL $1 dot11req_mibset \ + mibattribute=dot11ExcludeUnencrypted=false ` + fi +} + +wlan_adhoc () +{ + # $1 == wlandev + + #=======IBSS STARTUP================================== + startcmd="$WLANCTL $1 dot11req_start " + startcmd="$startcmd ssid=$DesiredSSID" + startcmd="$startcmd bsstype=independent" + startcmd="$startcmd beaconperiod=$BCNINT" + startcmd="$startcmd dtimperiod=3" + startcmd="$startcmd cfpollable=false" + startcmd="$startcmd cfpollreq=false" + startcmd="$startcmd cfpperiod=3" + startcmd="$startcmd cfpmaxduration=100" + startcmd="$startcmd probedelay=100" + startcmd="$startcmd dschannel=$CHANNEL" + j=1 + for i in $BASICRATES ; do + startcmd="$startcmd basicrate$j=$i" + j=`expr $j + 1` + done + + j=1 + for i in $OPRATES ; do + startcmd="$startcmd operationalrate$j=$i" + j=`expr $j + 1` + done + + results=`$startcmd` # Here's where it runs + if [ $? = 0 ]; then + eval $results + if [ $resultcode != "success" ] ; then + ${ECHO} "IBSS not started, resultcode=$resultcode" + exit 1 + else + ${ECHO} "IBSS mode started." + fi + else + ${ECHO} FAILED: $startcmd + return 1 + fi + WLAN_SCHEMESSID="$DesiredSSID" +} + +wlan_infra () +{ + # $1 == wlandev + + #==== INFRASTRUCURE STARTUP=========================== + # XXX TODO: Grok DesiredBSSID + + sleep 5 + results=`$WLANCTL $1 lnxreq_autojoin \ + "ssid=$DesiredSSID" \ + authtype=${AuthType:="opensystem"} | sed 's/\([^=]*\)=\(.*\)/\1="\2"/'` + eval $results + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} 'error: Autojoin indicated failure!' + return 1; + fi + + WLAN_SCHEMESSID="$DesiredSSID" +} + +wlan_dot11_join () +{ + # $1 == wlandev + + joincmd="$WLANCTL $1 dot11req_join bssid=$DesiredBSSID" + joincmd="$joincmd joinfailuretimeout=1" + + j=1 + for i in $OPRATES ; do + joincmd="$joincmd operationalrate$j=$i" + j=`expr $j + 1` + done + + results=`$joincmd` + + eval $results + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} "$1: JOIN Failure" + ${ECHO} "joincmd=$joincmd" + ${ECHO} "results=$results" + return 1; + fi +} + +wlan_dot11_auth_assoc () +{ + # $1 == wlandev + if [ $bsstype = "infrastructure" ] ; then + results=`$WLANCTL $1 dot11req_authenticate \ + peerstaaddress=$DesiredBSSID \ + authenticationtype=$AuthType \ + authenticationfailuretimeout=2000` + eval $results + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} "error: dot11req_authenticate failed, "\ + "resultcode=$resultcode" + return 1; + fi + results=`$WLANCTL $1 dot11req_associate \ + listeninterval=1000 \ + associatefailuretimeout=2000 ` + if [ ${resultcode:-"failure"} != "success" ] ; then + ${ECHO} 'error: dot11req_associate failed!' + return 1; + fi + fi +} + +wlan_set_ssid_schemefile () +{ + # $1 == SSID + + # Find the scheme file + if [ -r /var/lib/misc/pcmcia-scheme ] ; then + # Debian + WLAN_SCHEMEFILE="/var/lib/misc/pcmcia-scheme" + elif [ -d /var/state/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/state/pcmcia/scheme" + elif [ -d /var/lib/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/lib/pcmcia/scheme" + else + WLAN_SCHEMEFILE="/var/run/pcmcia-scheme" + fi + + # Collect the current scheme name and save the file + if [ -r $WLAN_SCHEMEFILE ] ; then + WLAN_SCHEME=`cat $WLAN_SCHEMEFILE` + cp $WLAN_SCHEMEFILE /var/run/wlan_scheme_`date +"%T"`.tmp + else + touch /var/run/wlan_scheme_`date +"%T"`.tmp + + fi + + # Set up the <scheme:SSID> string + if [ ! "$WLAN_SCHEME" ] ; then + WLAN_SCHEME="default" + fi + WLAN_SCHEME="$WLAN_SCHEME:$1" + + # Write to schemefile + echo $WLAN_SCHEME > $WLAN_SCHEMEFILE +} + +wlan_restore_schemefile () +{ + # Find the scheme file + if [ -r /var/lib/misc/pcmcia-scheme ] ; then + # Debian + WLAN_SCHEMEFILE="/var/lib/misc/pcmcia-scheme" + elif [ -d /var/state/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/state/pcmcia/scheme" + elif [ -d /var/lib/pcmcia ] ; then + WLAN_SCHEMEFILE="/var/lib/pcmcia/scheme" + else + WLAN_SCHEMEFILE="/var/run/pcmcia-scheme" + fi + + TMPFILE=`ls /var/run/wlan_scheme*.tmp | tail -n 1` + + if [ -r $TMPFILE ] ; then + cat $TMPFILE > $WLAN_SCHEMEFILE + rm -f $TMPFILE + else + ${ECHO} "wlan_restore_schemefile: No wlan_scheme\*.tmp file found." + fi +} + +wlan_bring_it_up () +{ + # $1 == wlandev + # $2 == non-null if wext enabled. + + #=======ENABLE======================================== + # Do we want to init the card at all? + eval 'WLAN_ENABLE=$ENABLE_'$1 + + if ! is_true $WLAN_ENABLE ; then + return 1 + fi + + if wlan_enable $1 ; then + if [ -z "$2" ] ; then + wlan_scan_and_join $1 + return $? + else + ${ECHO} "Bypassing configuration due to wireless extensions" + fi + else + return 1; + fi + + return 1 +} + +wlan_scan_and_join () +{ + #=======MAC STARTUP========================================= + wlan_supports_scan $1 + if [ $? = 0 ] ; then + wlan_scan $1 + if [ $? = 0 ] ; then + wlan_source_config_for_ssid "$ssid" "$bssid" + + wlan_user_mibs $1 + wlan_wep $1 + + wlan_join $1 + else + if is_true $IS_ADHOC ; then + # start an IBSS; we didn't find one. + wlan_adhoc $1 + else + return 1 + fi + fi + else + wlan_source_config $1 + + wlan_user_mibs $1 + wlan_wep $1 + + if is_true $IS_ADHOC ; then + wlan_adhoc $1 + else + wlan_infra $1 + fi + fi + + return $? +} + +wlan_join () +{ + # $1 == wlandev + grep 'autojoin' /proc/net/p80211/$1/wlandev > /dev/null + if [ $? = 0 ]; then + wlan_infra $1 + else + wlan_dot11_join $1 + wlan_dot11_auth_assoc $1 + fi +} + +tmpname () +{ + # $1 == prefix + local i=0 + local tname=$TMPDIR/${1}_$$ + if [ -f ${tname}.tmp ] ; then + for i in 0 1 2 3 4 5 6 7 8 9 ; do + if [ ! -f ${tname}_${i}.tmp ] ; then + echo ${tname}_${i}.tmp + return 0 + fi + done + else + echo ${tname}.tmp + fi + return 0 +} + +source_procfile () +{ + # $1 == procfile to source + local fname=`tmpname wlan_procfile` + cat "$1" > $fname + . $fname + rm -f $fname +} + +# This is set by the Configure script as part of 'make install' +#FIRMWARE_DIR="/usr/share/linux-wlan" diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlan-udev.sh b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlan-udev.sh new file mode 100644 index 0000000..879dd14 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlan-udev.sh @@ -0,0 +1,46 @@ +#! /bin/bash + + +# script to start prism2 wlan for fedora FC5 udev +#udev rule +#ACTION=="add",BUS=="usb",DRIVER=="prism2_usb",RUN+="/etc/wlan/wlan-udev.sh %k" + +# 01-01-2007 (rsk) add check for wlan_wext_write +# 31-01-2007 (rsk) get the check right this time :) + +WEXT_PARAM=/sys/module/p80211/parameters/wlan_wext_write + +DEVICE=$1 +WLAN_UDEV=1 + +. /etc/wlan/shared + +if [ -f $WEXT_PARAM ]; then + WLAN_WEXT=`cat $WEXT_PARAM` +fi + +if [ $WLAN_WEXT = 1 ]; then + wlan_bring_it_up $DEVICE TRUE + # set encrypt on card not host + result=`$WLANCTL $DEVICE lnxreq_hostwep decrypt="false" encrypt="false"` + if [ $? != 0 ]; then + echo "Cannot enable wep $result" + exit 1 + fi +else + echo calling wlan_bring_it_up + wlan_bring_it_up $DEVICE + + if [ $? = 0 ] ; then + echo $DEVICE start OK + #allow time during boot to let other things start + #sleep 5 + /sbin/ifup $DEVICE + else + echo $DEVICE failed to come up! >&2 + exit 1 + fi +fi +exit 0 + + diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlan.conf b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlan.conf new file mode 100644 index 0000000..fc8dcfa --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlan.conf @@ -0,0 +1,84 @@ +#! /bin/sh +# Wireless LAN adapter configuration +# +# etc/wlan/wlan.conf +# +# Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. +# -------------------------------------------------------------------- +# +# linux-wlan +# +# The contents of this file are subject to the Mozilla Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License version 2 (the "GPL"), in which +# case the provisions of the GPL are applicable instead of the +# above. If you wish to allow the use of your version of this file +# only under the terms of the GPL and not to allow others to use +# your version of this file under the MPL, indicate your decision +# by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# -------------------------------------------------------------------- +# +# Inquiries regarding the linux-wlan Open Source project can be +# made directly to: +# +# AbsoluteValue Systems Inc. +# info@linux-wlan.com +# http://www.linux-wlan.com +# +# -------------------------------------------------------------------- +# +# Portions of the development of this software were funded by +# Intersil Corporation as part of PRISM(R) chipset product development. +# +# -------------------------------------------------------------------- +# This file is sourced by all configuration scripts. +# +# The WLAN_DEVICES variable identifies the device names of each WLAN device. +# If you have more than one, make sure each one is identified in a whitespace +# separated list that's assigned to WLAN_DEVICES. + +WLAN_DEVICES="wlan0" + +# Below is the list of channels to scan, when we scan. +ChannelList="01:02:03:04:05:06:07:08:09:0a:0b:00:00:00" +# Below is the min and max time we linger on a channel during a scan. +ChannelMinTime=200 +ChannelMaxTime=250 +# And here we have the master scan toggle. +WLAN_SCAN=n + +# if you want temporary files to go elsewhere, change this. +TMPDIR=/tmp + +########## +# Note: To bind to a specific network, change the SSID to something different +# and create the file /etc/wlan/wlancfg-<SSID> with your network- +# specific settings. If this file is not present, the settings in +# /etc/wlancfg/wlancfg-DEFAULT are used. +# +# for example: +# SSID_wlan0="linux-wlan" +# This expects a file called "/etc/wlan/wlancfg-linux-wlan" to be present. +# +# Use a SSID of "" to associate with any network in range. +######### + +SSID_wlan0="" +ENABLE_wlan0=y +#SSID_wlan1="" +#ENABLE_wlan1=n +#SSID_wlan2="" +#ENABLE_wlan2=n diff --git a/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlancfg-DEFAULT b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlancfg-DEFAULT new file mode 100644 index 0000000..d916034 --- /dev/null +++ b/abs/core-testing/wlan-ng26-utils-svn/tmp/trunk/etc/wlan/wlancfg-DEFAULT @@ -0,0 +1,43 @@ +#=======USER MIB SETTINGS============================= +# You can add the assignments for various MIB items +# of your choosing to this variable, separated by +# whitespace. The wlan-ng script will then set each one. +# Just uncomment the variable and set the assignments +# the way you want them. + +#USER_MIBS="p2CnfRoamingMode=1 p2CnfShortPreamble=mixed" + +#=======WEP=========================================== +# [Dis/En]able WEP. Settings only matter if PrivacyInvoked is true +lnxreq_hostWEPEncrypt=false # true|false +lnxreq_hostWEPDecrypt=false # true|false +dot11PrivacyInvoked=false # true|false +dot11WEPDefaultKeyID=0 # 0|1|2|3 +dot11ExcludeUnencrypted=true # true|false, in AP this means WEP is required. + +# If PRIV_GENSTR is not empty, use PRIV_GENTSTR to generate +# keys (just a convenience) +# add-ons/ in the tarball contains other key generators. +PRIV_GENERATOR=/sbin/nwepgen # nwepgen, Neesus compatible +PRIV_KEY128=false # keylength to generate +PRIV_GENSTR="" + +# or set them explicitly. Set genstr or keys, not both. +dot11WEPDefaultKey0= # format: xx:xx:xx:xx:xx or +dot11WEPDefaultKey1= # xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx +dot11WEPDefaultKey2= # e.g. 01:20:03:40:05 or +dot11WEPDefaultKey3= # 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d +#=======SELECT STATION MODE=================== +IS_ADHOC=n # y|n, y - adhoc, n - infrastructure + +#======= INFRASTRUCTURE STATION =================== +# What kind of authentication? +AuthType="opensystem" # opensystem | sharedkey (requires WEP) + +#======= ADHOC STATION ============================ +BCNINT=100 # Beacon interval (in Kus) +CHANNEL=6 # DS channel for BSS (1-14, depends + # on regulatory domain) +BASICRATES="2 4" # Rates for mgmt&ctl frames (in 500Kb/s) +OPRATES="2 4 11 22" # Supported rates in BSS (in 500Kb/s) + |