summaryrefslogtreecommitdiff
path: root/packages/wireless-tools
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/wireless-tools
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/wireless-tools')
-rw-r--r--packages/wireless-tools/.mtn2git_empty0
-rw-r--r--packages/wireless-tools/wireless-tools/.mtn2git_empty0
-rw-r--r--packages/wireless-tools/wireless-tools/fixheaders.patch34
-rw-r--r--packages/wireless-tools/wireless-tools/man.patch13
-rwxr-xr-x[-rw-r--r--]packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up122
5 files changed, 169 insertions, 0 deletions
diff --git a/packages/wireless-tools/.mtn2git_empty b/packages/wireless-tools/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/wireless-tools/.mtn2git_empty
diff --git a/packages/wireless-tools/wireless-tools/.mtn2git_empty b/packages/wireless-tools/wireless-tools/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/wireless-tools/wireless-tools/.mtn2git_empty
diff --git a/packages/wireless-tools/wireless-tools/fixheaders.patch b/packages/wireless-tools/wireless-tools/fixheaders.patch
index e69de29bb2..670804e502 100644
--- a/packages/wireless-tools/wireless-tools/fixheaders.patch
+++ b/packages/wireless-tools/wireless-tools/fixheaders.patch
@@ -0,0 +1,34 @@
+Index: wireless_tools.27/wireless.17.h
+===================================================================
+--- wireless_tools.27.orig/wireless.17.h 2004-08-27 15:04:41.000000000 -0400
++++ wireless_tools.27/wireless.17.h 2005-01-19 21:13:25.343064024 -0500
+@@ -71,9 +71,9 @@
+
+ /* To minimise problems in user space, I might remove those headers
+ * at some point. Jean II */
+-#include <linux/types.h> /* for "caddr_t" et al */
+-#include <linux/socket.h> /* for "struct sockaddr" et al */
+-#include <linux/if.h> /* for IFNAMSIZ and co... */
++#include <asm/types.h> /* for "caddr_t" et al */
++#include <sys/socket.h> /* for "struct sockaddr" et al */
++#include <net/if.h> /* for IFNAMSIZ and co... */
+
+ /***************************** VERSION *****************************/
+ /*
+Index: wireless_tools.27/iwlib.h
+===================================================================
+--- wireless_tools.27.orig/iwlib.h 2004-10-28 20:09:47.000000000 -0400
++++ wireless_tools.27/iwlib.h 2005-01-19 21:13:47.438704976 -0500
+@@ -123,9 +123,9 @@
+ #endif /* LIBC5_HEADERS */
+
+ /* Those 3 headers were previously included in wireless.h */
+-#include <linux/types.h> /* for "caddr_t" et al */
+-#include <linux/socket.h> /* for "struct sockaddr" et al */
+-#include <linux/if.h> /* for IFNAMSIZ and co... */
++#include <asm/types.h> /* for "caddr_t" et al */
++#include <sys/socket.h> /* for "struct sockaddr" et al */
++#include <net/if.h> /* for IFNAMSIZ and co... */
+
+ /* Private copy of Wireless extensions */
+ #include <wireless.h>
diff --git a/packages/wireless-tools/wireless-tools/man.patch b/packages/wireless-tools/wireless-tools/man.patch
index e69de29bb2..fd8cf42773 100644
--- a/packages/wireless-tools/wireless-tools/man.patch
+++ b/packages/wireless-tools/wireless-tools/man.patch
@@ -0,0 +1,13 @@
+--- wireless_tools.26/Makefile.orig 2003-06-18 03:38:58.000000000 +0200
++++ wireless_tools.26/Makefile 2004-07-03 23:35:29.000000000 +0200
+@@ -57,8 +57,8 @@
+ # Install directories
+ INSTALL_DIR= $(PREFIX)/sbin/
+ INSTALL_LIB= $(PREFIX)/lib/
+-INSTALL_INC= $(PREFIX)/include/
+-INSTALL_MAN= $(PREFIX)/man/
++INSTALL_INC= $(PREFIX)/usr/include/
++INSTALL_MAN= $(PREFIX)/usr/share/man/
+
+ # Use local header if the version of wireless extensions is specified
+ ifdef FORCE_WEXT_VERSION
diff --git a/packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up b/packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up
index e69de29bb2..11fbced462 100644..100755
--- a/packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up
+++ b/packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up
@@ -0,0 +1,122 @@
+#!/bin/sh
+
+case "$METHOD" in loopback) exit 0 ;; esac
+
+IWCONFIG=/sbin/iwconfig
+IWPRIV=/sbin/iwpriv
+
+if [ ! -x $IWCONFIG ]; then
+ exit 0
+fi
+
+# Detect and do nothing for linux-wlan-ng interfaces;
+# which are configured by thier own if-pre-up script.
+if [ -n "$IF_WIRELESS_TYPE" -a "$IF_WIRELESS_TYPE" = "wlan-ng" ]; then
+ exit 0
+fi
+
+if [ -n "$IF_NEEDS_RESET" ]; then
+ $IWPRIV "$IFACE" reset 1
+ sleep 1
+fi
+
+if [ -n "$IF_NEEDS_FIRMWARE" ]; then
+ $IF_NEEDS_FIRMWARE "$IFACE"
+fi
+
+if [ -n "$IF_WIRELESS_SENS" ]; then
+ $IWCONFIG "$IFACE" sens $IF_WIRELESS_SENS
+fi
+
+if [ -n "$IF_WIRELESS_RATE" ]; then
+ $IWCONFIG "$IFACE" rate $IF_WIRELESS_RATE
+fi
+
+if [ -n "$IF_WIRELESS_RTS" ]; then
+ $IWCONFIG "$IFACE" rts $IF_WIRELESS_RTS
+fi
+
+if [ -n "$IF_WIRELESS_FRAG" ]; then
+ $IWCONFIG "$IFACE" frag $IF_WIRELESS_FRAG
+fi
+
+if [ -n "$IF_WIRELESS_POWER" ]; then
+ $IWCONFIG "$IFACE" power $IF_WIRELESS_POWER
+fi
+
+if [ -n "$IF_WIRELESS_POWERPERIOD" ]; then
+ $IWCONFIG "$IFACE" power period $IF_WIRELESS_POWERPERIOD
+fi
+
+if [ -n "$IF_WIRELESS_POWERTIMEOUT" ]; then
+ $IWCONFIG "$IFACE" power timeout $IF_WIRELESS_POWERTIMEOUT
+fi
+
+if [ -n "$IF_WIRELESS_TXPOWER" ]; then
+ $IWCONFIG "$IFACE" txpower $IF_WIRELESS_TXPOWER
+fi
+
+if [ -n "$IF_WIRELESS_RETRY" ]; then
+ $IWCONFIG "$IFACE" retry $IF_WIRELESS_RETRY
+fi
+
+if [ -n "$IF_WIRELESS_ESSID" ]; then
+ $IWCONFIG "$IFACE" essid "$IF_WIRELESS_ESSID"
+fi
+
+if [ -n "$IF_WIRELESS_NICK" ]; then
+ $IWCONFIG "$IFACE" nick "$IF_WIRELESS_NICK"
+fi
+
+if [ -n "$IF_WIRELESS_NWID" ]; then
+ $IWCONFIG "$IFACE" nwid "$IF_WIRELESS_NWID"
+fi
+
+if [ -n "$IF_WIRELESS_ENC" ]; then
+ eval $IWCONFIG "$IFACE" enc $IF_WIRELESS_ENC
+fi
+
+if [ -n "$IF_WIRELESS_KEY" ]; then
+ eval $IWCONFIG "$IFACE" key $IF_WIRELESS_KEY
+fi
+
+if [ -n "$IF_WIRELESS_KEY1" ]; then
+ $IWCONFIG "$IFACE" key [1] "$IF_WIRELESS_KEY1"
+fi
+
+if [ -n "$IF_WIRELESS_KEY2" ]; then
+ $IWCONFIG "$IFACE" key [2] "$IF_WIRELESS_KEY2"
+fi
+
+if [ -n "$IF_WIRELESS_KEY3" ]; then
+ $IWCONFIG "$IFACE" key [3] "$IF_WIRELESS_KEY3"
+fi
+
+if [ -n "$IF_WIRELESS_KEY4" ]; then
+ $IWCONFIG "$IFACE" key [4] "$IF_WIRELESS_KEY4"
+fi
+
+if [ -n "$IF_WIRELESS_DEFAULTKEY" ]; then
+ $IWCONFIG "$IFACE" key ["$IF_WIRELESS_DEFAULTKEY"]
+fi
+
+if [ -n "$IF_WIRELESS_KEYMODE" ]; then
+ $IWCONFIG "$IFACE" key "$IF_WIRELESS_KEYMODE"
+fi
+
+if [ -n "$IF_WIRELESS_MODE" ]; then
+ $IWCONFIG "$IFACE" mode $IF_WIRELESS_MODE
+fi
+
+if [ -n "$IF_WIRELESS_FREQ" ]; then
+ $IWCONFIG "$IFACE" freq $IF_WIRELESS_FREQ
+fi
+
+if [ -n "$IF_WIRELESS_CHANNEL" ]; then
+ $IWCONFIG "$IFACE" channel $IF_WIRELESS_CHANNEL
+fi
+
+if [ -n "$IF_WIRELESS_COMMIT" ]; then
+ $IWCONFIG "$IFACE" commit
+fi
+