FWIW, Ubuntu has been carrying the attached patch to wireless-tools since
2006 (i.e., the time of Matthew's bug report).

Matthew, do you know if this is still needed for softmac?  There's been at
least one bug report against wireless-tools in Ubuntu complaining that it
breaks other ifupdown functionality
(https://bugs.launchpad.net/bugs/219520), so if it's safe to drop this diff
now, I'd like for us to do that.  I agree that conceptually, it's better to
set all of the wireless variables before bringing up the interface.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[EMAIL PROTECTED]                                     [EMAIL PROTECTED]
diff -Nru wireless-tools-29/debian/pre-up wireless-tools-29/debian/pre-up
--- wireless-tools-29/debian/pre-up	2008-11-14 06:30:01.000000000 +0000
+++ wireless-tools-29/debian/pre-up	2008-11-14 06:30:01.000000000 +0000
@@ -1,11 +1,16 @@
 #!/bin/sh
 
 IWCONFIG=/sbin/iwconfig
+IFCONFIG=/sbin/ifconfig
 
 if [ ! -x $IWCONFIG ]; then
   exit 0
 fi
 
+if [ -x $IFCONFIG ]; then
+  $IFCONFIG "$IFACE" up
+fi
+
 if [ -n "$IF_WIRELESS_SENS" ]; then
   $IWCONFIG "$IFACE" sens $IF_WIRELESS_SENS
 fi

Reply via email to