On Sat, 9 Jun 2007 07:46:33 pm Reinhard Tartler wrote:
> Package: wpasupplicant
> Version: 0.6.0~cvs20070224-3
>
> I'm forwarding a bug from ubuntu here so that it doesn't get lost
> somewhere. It seems that we also have this in debian.

> In Edgy /usr/share/doc/wpasupplicant/README.modes.gz used to say to put:
>
>   wpa-conf managed

Gah. This is right down the fricking bottom of the document in the section 
about dealing with hidden ssid's that someone added a while back based on a 
very old configuration. This example should have been adjusted to not show 
that line at all a *long* time ago. I missed it.

For the transition to not be rocky for those few poor people who followed that 
advice and not the 5 other examples of configuring WPA via "managed" mode 
described a few paragraphs above, ugly hacks to a hot path of the ifupdown 
hook would be required.

Patch against pkg-wpa trunk is attached.

Kel.
Index: debian/ifupdown/ifupdown.sh
===================================================================
--- debian/ifupdown/ifupdown.sh	(revision 849)
+++ debian/ifupdown/ifupdown.sh	(working copy)
@@ -73,6 +73,10 @@
 # master function; determines if ifupdown.sh should do something or not
 if [ -n "$IF_WPA_CONF" ]; then
 	if [ ! -s "$IF_WPA_CONF" ]; then
+		# Bugs: #428137 LP:#119415, allow 'wpa-conf managed' to pass through
+		if [ "$IF_WPA_CONF" = "managed" ]; then
+			WPA_SUP_CONF="-C $WPA_CTRL_DIR"
+		fi
 		wpa_msg stderr "cannot read contents of $IF_WPA_CONF"
 		exit 1
 	fi	
Index: debian/README.modes
===================================================================
--- debian/README.modes	(revision 849)
+++ debian/README.modes	(working copy)
@@ -496,7 +496,6 @@
 If you are using the managed mode, you can do so by these stanzas:
 
 iface eth1 inet dhcp
-	wpa-conf managed
 	wpa-ap-scan 1
 	wpa-scan-ssid 1
 	# ... additional options for your setup

Reply via email to