summaryrefslogtreecommitdiffhomepage
path: root/wireless.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-03 15:14:30 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-12-03 15:14:30 +0100
commitb9065a028d2120ee59debd784552d628133a6f31 (patch)
tree5c23a52424dd956e5287bf83d2af644f300e21e5 /wireless.c
parentf7cdc6437cdbad0db06b73ba58eb84f12acf069d (diff)
wireless: prepare bridge interfaces before passing them to the setup script
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'wireless.c')
-rw-r--r--wireless.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wireless.c b/wireless.c
index 6e71fc6..3c785f6 100644
--- a/wireless.c
+++ b/wireless.c
@@ -76,6 +76,9 @@ vif_config_add_bridge(struct blob_buf *buf, const char *network, bool prepare)
if (dev->type != &bridge_device_type)
return;
+ if (dev->hotplug_ops && dev->hotplug_ops->prepare)
+ dev->hotplug_ops->prepare(dev);
+
blobmsg_add_string(buf, "bridge", dev->ifname);
}