From: Felix Fietkau Date: Tue, 3 Dec 2013 14:14:30 +0000 (+0100) Subject: wireless: prepare bridge interfaces before passing them to the setup script X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9065a028d2120ee59debd784552d628133a6f31;p=oweals%2Fnetifd.git wireless: prepare bridge interfaces before passing them to the setup script Signed-off-by: Felix Fietkau --- 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); }