1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 22:43:53 +01:00

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
This commit is contained in:
Felix Fietkau 2007-07-04 05:05:46 +00:00
parent 114b9a8fb6
commit 5b52ebfcb1

@ -98,6 +98,7 @@ prepare_interface() {
} || { } || {
$DEBUG brctl addbr "br-$config" $DEBUG brctl addbr "br-$config"
$DEBUG brctl setfd "br-$config" 0 $DEBUG brctl setfd "br-$config" 0
$DEBUG ifconfig "br-$config" up
$DEBUG brctl addif "br-$config" "$iface" $DEBUG brctl addif "br-$config" "$iface"
# Creating the bridge here will have triggered a hotplug event, which will # Creating the bridge here will have triggered a hotplug event, which will
# result in another setup_interface() call, so we simply stop processing # result in another setup_interface() call, so we simply stop processing