summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-09-27 01:15:22 +0200
committerFelix Fietkau <nbd@openwrt.org>2015-09-27 01:15:23 +0200
commit509ffb22475ebdd5291d510a098f996473951344 (patch)
tree2c403e678de87065a6f240519257a80d94998fc5
parent638c45755f5750a95a3c305a37b711bd7c580643 (diff)
wireless: fix bogus isolate setting on unbridged configuration
This was caused by a faulty test for the isolate option (arithmetic on a variable with no default) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--scripts/netifd-wireless.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh
index 83a8223..d5f3867 100644
--- a/scripts/netifd-wireless.sh
+++ b/scripts/netifd-wireless.sh
@@ -254,10 +254,8 @@ _wireless_set_brsnoop_isolation() {
json_get_var isolate isolate
- [ $isolate -gt 0 -o -z "$network_bridge" ] && return
-
- [ -z "$multicast_to_unicast" ] && multicast_to_unicast=1
- [ $multicast_to_unicast -gt 0 ] && json_add_boolean isolate 1
+ [ ${isolate:-0} -gt 0 -o -z "$network_bridge" ] && return
+ [ ${multicast_to_unicast:-1} -gt 0 ] && json_add_boolean isolate 1
}
for_each_interface() {