Package: wpasupplicant
Version: 0.5.5-2
Severity: normal
Tags: patch

When using wpa-bridge in /etc/network/interfaces, the interface should
be added to the bridge before wpa_supplicant is started.
Relying on the bridge to be configured via /etc/network/interfaces
soon enough after the wireless interface(s) and being forced to ifdown
and ifup the whole bridge (eventually including the wired interface
over which you ssh'ed in...) does not seem right and is quite
inflexible.

The attached patch fixes this.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages wpasupplicant depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libdbus-1-3                 1.0.2-1      simple interprocess messaging syst
ii  libncurses5                 5.5-5        Shared libraries for terminal hand
ii  libreadline5                5.2-2        GNU readline and history libraries
ii  libssl0.9.8                 0.9.8c-4     SSL shared libraries
ii  lsb-base                    3.1-23.1     Linux Standard Base 3.1 init scrip

Versions of packages wpasupplicant recommends:
ii  dhcp3-client                  3.0.4-13   DHCP Client

-- no debconf information

-- 

 .'"`.                                                            /"\
| :' :   Elmar Hoffmann <[EMAIL PROTECTED]>    ASCII Ribbon Campaign  \ /
`. `'    GPG key available via pgp.net        against HTML email   X
  `-                                                    & vCards  / \
--- functions.sh.dpkg-dist	2007-05-19 15:43:00.000000000 +0200
+++ functions.sh	2007-05-25 02:27:41.000000000 +0200
@@ -179,6 +179,7 @@
 		if [ -n "$IF_WPA_BRIDGE" ]; then
 			WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -b $IF_WPA_BRIDGE"
 			wpa_msg verbose "wpa-bridge $IF_WPA_BRIDGE"
+			brctl  addif $IF_WPA_BRIDGE $IFACE
 		fi
 
 		if [ -n "$IF_WPA_DRIVER" ]; then

Attachment: signature.asc
Description: Digital signature

Reply via email to