From: Felix Fietkau Date: Wed, 4 Jul 2007 05:05:46 +0000 (+0000) Subject: fix a race condition with broadcom wl devices in a bridge if a device is added before... X-Git-Tag: reboot~28749 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5b52ebfcb1878065f18c68edaa9a38a462ea2bdd;p=openwrt%2Fstaging%2Fxback.git fix a race condition with broadcom wl devices in a bridge if a device is added before the bridge is brought up, the wifi settings are lost SVN-Revision: 7872 --- diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 2c15b5e231..c08fd69bc8 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -98,6 +98,7 @@ prepare_interface() { } || { $DEBUG brctl addbr "br-$config" $DEBUG brctl setfd "br-$config" 0 + $DEBUG ifconfig "br-$config" up $DEBUG brctl addif "br-$config" "$iface" # Creating the bridge here will have triggered a hotplug event, which will # result in another setup_interface() call, so we simply stop processing