From: Felix Fietkau Date: Sat, 26 Sep 2015 23:15:22 +0000 (+0200) Subject: wireless: fix bogus isolate setting on unbridged configuration X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=509ffb22475ebdd5291d510a098f996473951344 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 --- 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() {