diff options
author | Emanuel Taube <emanuel.taube@gmail.com> | 2014-03-07 10:22:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-07 19:05:50 +0100 |
commit | 145b4bdae4e71d8d304623372cf7a1e511bfe3d4 (patch) | |
tree | 28cc507013e44600d912c845c6d8b6bcb0ebed99 | |
parent | a565ae60a2fd6aea1fb64a8a3728d101ab2357c3 (diff) |
netifd: fix bridge reloading issue
Check in the right order to decide if the bridge have to be set up.
Additionally we are consistent with setting it down.
Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
-rw-r--r-- | bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -231,10 +231,10 @@ bridge_member_cb(struct device_user *dev, enum device_event ev) bm->present = true; bst->n_present++; + if (bst->n_present == 1) + device_set_present(&bst->dev, true); if (bst->dev.active) bridge_enable_member(bm); - else if (bst->n_present == 1) - device_set_present(&bst->dev, true); break; case DEV_EVENT_REMOVE: |