diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-03 15:14:30 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-03 15:14:30 +0100 |
commit | b9065a028d2120ee59debd784552d628133a6f31 (patch) | |
tree | 5c23a52424dd956e5287bf83d2af644f300e21e5 /wireless.c | |
parent | f7cdc6437cdbad0db06b73ba58eb84f12acf069d (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |