./0000775000175000017500000000000012511411356011434 5ustar nielsenrnielsenr./wireless-tools.if-pre-up0000775000175000017500000000505412511411356016164 0ustar nielsenrnielsenr#!/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_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_ESSID" ]; then $IWCONFIG "$IFACE" essid "$IF_WIRELESS_ESSID" fi if [ -n "$IF_WIRELESS_COMMIT" ]; then $IWCONFIG "$IFACE" commit fi ./zzz-wireless.if-pre-up0000664000175000017500000000151612511411356015655 0ustar nielsenrnielsenr#!/bin/sh # # /etc/network/if-pre-up.d/zzz-wireless # by Stefan Tomanek (stefan@pico.ruhr.de) IWCONFIG=/sbin/iwconfig IFCONFIG=/sbin/ifconfig GREP=/bin/grep LOGGER=/usr/bin/logger SLEEP=/bin/sleep # How long do we wait for association? RETRIES=15 SLEEPTIME=1 # Only sleep if we use DHCP (add others methods seperated by spaces) ONLY_FOR="static dhcp" if [ -z "$IF_WIRELESS_TYPE" ] && echo "$ONLY_FOR" | grep -q "$METHOD" ; then $IFCONFIG $IFACE up $LOGGER Checking for WLAN association... while ( [ $RETRIES -gt 0 ] && ($IWCONFIG "$IFACE" | $GREP -q "Access Point: Not-Associated") ); do $LOGGER No association yet, $RETRIES retries until timeout RETRIES=$(($RETRIES-1)) $SLEEP $SLEEPTIME done if [ $RETRIES -eq 0 ]; then $LOGGER Timeout waiting for association, continuing anyway... else $LOGGER Found association! fi fi ./man.patch0000664000175000017500000000075412511411356013236 0ustar nielsenrnielsenrUpstream-Status: Inappropriate [configuration] Index: wireless_tools.30/Makefile =================================================================== --- wireless_tools.30.orig/Makefile 2014-02-01 00:21:04.148463382 -0800 +++ wireless_tools.30/Makefile 2014-02-01 00:23:35.448072279 -0800 @@ -76,7 +76,7 @@ INSTALL_DIR= $(PREFIX)/sbin INSTALL_LIB= $(PREFIX)/lib INSTALL_INC= $(PREFIX)/include -INSTALL_MAN= $(PREFIX)/man +INSTALL_MAN= $(PREFIX)/share/man # Various commands RM = rm -f ./avoid_strip.patch0000664000175000017500000000122112511411356014774 0ustar nielsenrnielsenrwireless_tools: Avoid stripping iwmulticall Upstream-Status: Inappropriate [other] The removed code was from upstream. Signed-off-by: Mark Hatle diff -ur wireless_tools.29.orig/Makefile wireless_tools.29/Makefile --- wireless_tools.29.orig/Makefile 2011-06-18 11:35:12.183907453 -0500 +++ wireless_tools.29/Makefile 2011-06-18 11:38:09.995907985 -0500 @@ -135,9 +135,8 @@ macaddr: macaddr.o $(IWLIB) -# Always do symbol stripping here iwmulticall: iwmulticall.o - $(CC) $(LDFLAGS) -Wl,-s $(XCFLAGS) -o $@ $^ $(LIBS) + $(CC) $(LDFLAGS) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LIBS) # It's a kind of magic... wireless.h: ./ldflags.patch0000664000175000017500000000122312511411356014067 0ustar nielsenrnielsenrwireless-tools: Remove QA warning: No GNU_HASH in the elf binary Upstream-Status: Inappropriate [other] Useful within bitbake environment only. Signed-off-by: Muhammad Shakeel --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- wireless_tools.29.orig/Makefile +++ wireless_tools.29/Makefile @@ -144,7 +144,7 @@ wireless.h: # Compilation of the dynamic library $(DYNAMIC): $(OBJS:.o=.so) - $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) -lc $^ + $(CC) -shared -o $@ -Wl,-soname,$@ $(LDFLAGS) $(STRIPFLAGS) $(LIBS) -lc $^ # Compilation of the static library $(STATIC): $(OBJS:.o=.so) ./remove.ldconfig.call.patch0000664000175000017500000000154512511411356016455 0ustar nielsenrnielsenrWhen /etc/ld.so.cache is writeable by user running bitbake then it creates invalid cache (in my case libstdc++.so cannot be found after building zlib(-native) and I have to call touch */libstdc++.so && /sbin/ldconfig to fix it. So remove ldconfig call from make install-libs Upstream-Status: Inappropriate [disable feature] diff -uNr wireless_tools.29.orig/Makefile wireless_tools.29/Makefile --- wireless_tools.29.orig/Makefile 2007-09-18 01:56:46.000000000 +0200 +++ wireless_tools.29/Makefile 2012-02-15 20:46:41.780763514 +0100 @@ -163,7 +163,6 @@ install -m 755 $(DYNAMIC) $(INSTALL_LIB) ln -sfn $(DYNAMIC) $(INSTALL_LIB)/$(DYNAMIC_LINK) @echo "*** Don't forget to add $(INSTALL_LIB) to /etc/ld.so.conf, and run ldconfig as root. ***" - @$(LDCONFIG) || echo "*** Could not run ldconfig ! ***" # Install the static library install-static:: $(STATIC)